ISDBApplication::WebControl: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
m (added link to sample script)
mNo edit summary
Line 3: Line 3:
===Property description===
===Property description===


This property returns web browser window as is shown on the main MediaMonkey panel. In order to show the browser on tree node focus change, use [[ISDBTreeNodeEvents::OnNodeFocused]] event (see the complete [[Sample Internal Webbrowser script|sample script]]).
This property returns the built-in web browser window shown over the main MediaMonkey panel. In order to show the browser on tree node focus change, use [[ISDBTreeNodeEvents::OnNodeFocused]] event (see the complete [[Sample Internal Webbrowser script|sample script]]). Only by handling this event and returning value 2, the web browser window will be shown over the main tracks window. Otherwise it will just stay hidden, but it is existing.


===Example code===                     
===Example code===                     
<source lang="vb">SDB.WebControl.Navigate "http://www.mediamonkey.com"</source>
<source lang="vb">
Function NodeFocus(Node)
  NodeFocus = 2
  SDB.WebControl.Navigate "http://www.mediamonkey.com"  
End Function
</source>


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Revision as of 15:26, 4 November 2007

CoClass SDBApplication, Interface ISDBApplication

Property Get WebControl As Object


Property description

This property returns the built-in web browser window shown over the main MediaMonkey panel. In order to show the browser on tree node focus change, use ISDBTreeNodeEvents::OnNodeFocused event (see the complete sample script). Only by handling this event and returning value 2, the web browser window will be shown over the main tracks window. Otherwise it will just stay hidden, but it is existing.

Example code

Function NodeFocus(Node) 
  NodeFocus = 2 
  SDB.WebControl.Navigate "http://www.mediamonkey.com" 
End Function