ISDBApplication::WebControl: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
m (added link to sample script)
 
(One intermediate revision by one other user not shown)
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.
 
For the full list of available methods, events and properties, see MS documentation at http://msdn.microsoft.com/en-us/library/aa752085(v=vs.85).aspx


===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}}]]

Latest revision as of 09:18, 7 January 2012

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.

For the full list of available methods, events and properties, see MS documentation at http://msdn.microsoft.com/en-us/library/aa752085(v=vs.85).aspx

Example code

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