BUG#5129 Hide Titlebar on Panels added by Scripts

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: BUG#5129 Hide Titlebar on Panels added by Scripts

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

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.

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

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...

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

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?

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

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?

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

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 :)

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

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.

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

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.

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

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

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

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.

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

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.

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

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.

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

by gege » Sat Jan 24, 2009 11:13 am

LV and MR, for example, are embedded IE instances. If you right-click inside them, you're in fact getting IE context menu.

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

by ZvezdanD » Sat Jan 24, 2009 11:02 am

gege wrote:Yeah! But then we would have this problem nohitter mentioned
I don't know where is a problem. Please nohitter, could you elaborate this? What do you mean by "the right click options are for another program"?

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

by gege » Sat Jan 24, 2009 9:29 am

ZvezdanD wrote:I think that MM developers should add right-click pop-up menu for all dockable panels with Show Titlebar option, without a need for script developers to add such thing in their scripts. It should pop-up anywhere you click in the panel, same as we get with built-in MM panels.
Yeah! But then we would have this problem nohitter mentioned:
nohitter151 wrote:It might be convenient, but there would not be any way to right click to enable the titlebar in many scripts (MonkeyRok, lyrics&comments viewer, Minilyrics embedder) because the right click options are for another program. I just don't see how a right click option is possible.

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

by ZvezdanD » Sat Jan 24, 2009 4:09 am

I think that MM developers should add right-click pop-up menu for all dockable panels with Show Titlebar option, without a need for script developers to add such thing in their scripts. It should pop-up anywhere you click in the panel, same as we get with built-in MM panels.

Top