by Steegy » Wed Apr 12, 2006 5:49 pm
most of it...
The way that the WebControl works might seem a bit strange, but it's certainly not an error.
If you understand how these things work, it's quite obvious.
Now I'm trying to explain the difference between the built in WebControl and a custom web page control that you can add yourself:
WebControl: a permanent available web page control that is hidden after the tracklist, and can be made visible through a "OnNodeFocused" event. It doesn't close, it can only be shown and hidden (and it acts as any other web control).
E.g. when the tracklist is shown and you do a WebControl refresh, you can "hear" the page refreshing in the background. That means it's there and it's active (it can be loading/running a page) but just isn't made visible by MediaMonkey.
That means that you could "preload" things in the background, and then show them later by making the WebControl visible.
(To show the WebControl you are accessing, I guess you have to return value 2 from the event handling method.
So, I think the clue is, when OpenInDefaultBrowser (in your code, changed to use the WebControl) returns value 2 (this method is a Function, not a Sub !) MediaMonkey hides the tracklist and shows the WebControl.)
- When you want to close/stop a page in the WebControl, you have to do that by navigating to about:blank or by using the Stop command. The WebControl itself stays available so you can't close it.
By navigating to about:blank or to another page, you are getting rid of the previous page.
- A normal web page control you create and show yourself, can be closed (destroyed, e.g. by closing the form).
When the control is closed, of course the previous page is gone too (automaticly).
Cheers
Steegy
most of it...
The way that the WebControl works might seem a bit strange, but it's certainly not an error.
If you understand how these things work, it's quite obvious.
Now I'm trying to explain the difference between the built in WebControl and a custom web page control that you can add yourself:
[u]WebControl[/u]: a permanent available web page control that is hidden after the tracklist, and can be made visible through a "OnNodeFocused" event. It doesn't close, it can only be shown and hidden (and it acts as any other web control).
E.g. when the tracklist is shown and you do a WebControl refresh, you can "hear" the page refreshing in the background. That means it's there and it's active (it can be loading/running a page) but just isn't made visible by MediaMonkey.
That means that you could "preload" things in the background, and then show them later by making the WebControl visible.
[size=75](To show the WebControl you are accessing, I guess you have to return value 2 from the event handling method.
So, I think the clue is, when OpenInDefaultBrowser (in your code, changed to use the WebControl) returns value 2 (this method is a Function, not a Sub !) MediaMonkey hides the tracklist and shows the WebControl.)[/size]
[b][color=orange]-[/color][/b] When you want to close/stop a page in the WebControl, [u]you have to do that by navigating to about:blank or by using the Stop command[/u]. The WebControl itself stays available so you can't close it.
By navigating to about:blank or to another page, you are getting rid of the previous page.
[b][color=orange]-[/color][/b] A normal web page control you create and show yourself, can be closed (destroyed, e.g. by closing the form).
When the control is closed, of course the previous page is gone too (automaticly).
Cheers
Steegy