BUG#5129 Hide Titlebar on Panels added by Scripts

Any ideas about how to improve MediaMonkey? Let us know!

Moderator: Gurus

nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by nohitter151 » Sat Jan 24, 2009 11:16 am

Yes, and Embedded Minilyrics embeds another program (Minilyrics), so a right-click brings up the Minilyrics context window.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.

ZvezdanD
Posts: 3101
Joined: Thu Jun 08, 2006 7:40 pm

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by ZvezdanD » Sat Jan 24, 2009 11:29 am

Well, menus could be inherited. Just add one more option to the existing one. Even if they could not do that, there are many other scripts which have empty area not covered by some control where you could right click and get pop-up menu. If we, script developers need to use some strange methods (Options dialog, inconvenient menus,...) just because of two or three scripts which could not get pop-up menu, then I don't know what to say. It is most intuitive for me as user to enable/disable title bar by the right-click. First thing which I tried when I created my first script with dockable panel was to check if it have similar pop-up menu with Show Titlebar option as other built-in panels and I think that many users think in same way.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

DaledeSilva
Posts: 893
Joined: Sun May 28, 2006 4:22 am
Location: Australia
Contact:

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by DaledeSilva » Sat Jan 24, 2009 7:40 pm

I agree that that is how it should work.
But the scripts which can't do that still need to be addressed.

That's why I suggested the view menu option in my solution a few posts above.
My Plugins: PrettyPictures [v0.9.2], Forget Crossfade [v1.0], Behind Titlebars [v0.9], Filter Nodes [v1.0.1], View Mode [1.0], BPM.tapper [v1.0]
My Site: http://www.ublik-om.net

ZvezdanD
Posts: 3101
Joined: Thu Jun 08, 2006 7:40 pm

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by ZvezdanD » Sun Jan 25, 2009 12:55 am

gege wrote:LV and MR, for example, are embedded IE instances. If you right-click inside them, you're in fact getting IE context menu.
Here is the first link which you get in Google when you type "ie contex menu add": Adding Entries to the Standard Context Menu
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

ZvezdanD
Posts: 3101
Joined: Thu Jun 08, 2006 7:40 pm

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by ZvezdanD » Sun Jan 25, 2009 1:07 am

DaledeSilva wrote:But the scripts which can't do that still need to be addressed.
I don't care about those scripts. It is up to their authors to resolve this. But I care about all remaining scripts (existing and succeeding) which (will) have a possibility to get context menu directly by MM itself without any modification from the script's author.

I have the next proposal:
1. MM developers should add display of the context menu by the right-click on the dockable panel with the Show Titlebar option. This would work with all scripts which have at least some little part of area uncovered by MM controls.
2. Authors of scripts which don't have any part of panel uncovered by MM controls should find their way to toggle visibility of the title bar. Solution with scripts which use Web Browser ActiveX to add option to the context menu is very simple, as I pointed in the previous post.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

DaledeSilva
Posts: 893
Joined: Sun May 28, 2006 4:22 am
Location: Australia
Contact:

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by DaledeSilva » Sun Jan 25, 2009 7:31 am

It's easy to say you don't care about those scripts now... but if your favourite script writer doesn't update his/her script, then you would care.
The point is, the solution you suggest, and the solution I expected are not mutually exclusive.

That is;
- yes, right clicking on the titlebar should give the option to hide it - and it would be good if right clicking within the window did the same where possible (with option for unhide too).
- The view menu should also have an option to show / hide all titlebars

This would cover all possibilities


(Still, if anyone knows how it might be possible to access a list of active dockable panels, I would be able to write a script)
Dale.
My Plugins: PrettyPictures [v0.9.2], Forget Crossfade [v1.0], Behind Titlebars [v0.9], Filter Nodes [v1.0.1], View Mode [1.0], BPM.tapper [v1.0]
My Site: http://www.ublik-om.net

ZvezdanD
Posts: 3101
Joined: Thu Jun 08, 2006 7:40 pm

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by ZvezdanD » Sun Jan 25, 2009 9:32 am

DaledeSilva wrote:if anyone knows how it might be possible to access a list of active dockable panels,
I know how it might be possible to access a list of active dockable panels, but I suppose this is not what you want. Hint: try to find TTBXDockablePanelTransp class :)
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

Fraxav
Posts: 369
Joined: Fri Nov 02, 2007 5:19 pm
Location: Italia

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by Fraxav » Sun Jan 25, 2009 2:59 pm

I'm sorry, I don't understand enough about scripts to post a really useful idea, but reading your posts I see you've got some tools and I think there are basically two ways:

- Scripts are embedded in a program, that is MM, and MM adds the titlebars to the scripts. In this case, MM shoud add the possibility to hide the titlebar he added. Or, change the way scripts are embedded: no more titlebars and mouse (or mouse + keyboard) gestures to move the scripts, wich is basically what people need titlebars for.

- MM embeds scripts but it's the scripter that adds the titlebar (or options for it, if MM has still some part in that). Well in this case I read it's (gonna be) possible for the scripter to add context menus to hide the titlebar, so he should do so. If the scripter doesn't update his script, another scripter could. The guy that is editing the script for all of us users, should only underline that he's just editing the product, and he's not the creator.
Or, a titlebar hiding script could be done as a workaround for those not updated scripts.

Am I missing something?
I don't have no time for no MediaMonkey buisness...

Fraxav uses a Windows XP Home Edition SP2 on an Acer Aspire 5670 laptop with an Intel Core Duo T2300 (1.66 GHz) processor, ATI Mobility Radeon X1400 512 MB, 100 GB Hard Disc and 1 GB DDR2 Ram.

jespervdw
Posts: 12
Joined: Fri Sep 19, 2008 7:01 am

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by jespervdw » Fri Jan 30, 2009 10:50 am

raybeau528 wrote:I just tested this with .1209 and works as advertised, ie mydockablepanel.showcaption = false, removes the titlebar completely.

Thanks!

Ray
Where can I find that line?

nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by nohitter151 » Fri Jan 30, 2009 12:49 pm

jespervdw wrote:
raybeau528 wrote:I just tested this with .1209 and works as advertised, ie mydockablepanel.showcaption = false, removes the titlebar completely.

Thanks!

Ray
Where can I find that line?
In Ray's script...
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.

DaledeSilva
Posts: 893
Joined: Sun May 28, 2006 4:22 am
Location: Australia
Contact:

Re: BUG#5129 Hide Titlebar on Panels added by Scripts

Post by DaledeSilva » Sat Feb 07, 2009 11:14 am

Hey guys,
I was following along and I've created a script to address this issue:
I've uploaded it here:
http://www.mediamonkey.com/forum/viewto ... =2&t=37082

don't forget to use the shortcut key!
enjoy

Dale.
My Plugins: PrettyPictures [v0.9.2], Forget Crossfade [v1.0], Behind Titlebars [v0.9], Filter Nodes [v1.0.1], View Mode [1.0], BPM.tapper [v1.0]
My Site: http://www.ublik-om.net

Post Reply