[PD] editmode-only menubar plugin WAS: call for testers for L2Ork iteration of pd-extended (based on 0.42.x branch)
Hans-Christoph Steiner
hans at at.or.at
Tue Nov 30 05:55:43 CET 2010
On Nov 29, 2010, at 4:16 PM, Jonathan Wilkes wrote:
> --- On Mon, 11/29/10, Ivica Ico Bukvic <ico at vt.edu> wrote:
>
>> From: Ivica Ico Bukvic <ico at vt.edu>
>> Subject: Re: [PD] call for testers for L2Ork iteration of pd-
>> extended (based on 0.42.x branch)
>> To: "Jonathan Wilkes" <jancsika at yahoo.com>
>> Cc: pd-list at iem.at
>> Date: Monday, November 29, 2010, 9:11 PM
>>
>>> I think 1 and 3 worked fine in osx.
>>>
>>> Actually I also tried a fourth thing:
>>> Destroy the menubar when in 'Run mode'. (Not
>> sure how that would
>>> work on osx, but in Gnome it sure makes an obvious
>> distinction
>>> between modes!)
>>>
>>> -Jonathan
>>
>> In L2Ork iteration this functionality is available
>> per-canvas and is
>> toggled via l2ork_toggle_menubar abstraction. This way one
>> can have a
>> mix of guis having one and/or the other.
>>
>> Cheers!
>>
>> Ico
>
> Yes, I've been using a msg + [toxy] to do the same thing--
> unfortunately
> you can see the menu getting deleted when you open the patch or make
> it
> visible again.
I think you'll enjoy my two 0.43 plugins then, check out the
screenshot for "remove_menubar_from_canvases and canvas_menu_in_popup
plugins on Ubuntu"
http://puredata.info/dev/PdGuiRewriteScreenshots/
On Mac OS X, you shouldn't remove the menubar, because it then reverts
to the Wish.app menubar, which will only be confusing. But here's a
GUI plugin to remove the menubar for edit mode without it flashing (I
hope):
----------------
# this GUI plugin removes the menubars from any patch window that is
# not in Edit Mode. Also, if a patch is switched to Run Mode, the
# menubar will be removed.
proc setmenu_for_editmode {mytoplevel} {
if {$::editmode($mytoplevel)} {
$mytoplevel configure -menu $::patch_menubar
} else {
$mytoplevel configure -menu ""
}
}
# on Mac OS X, no windows have menubars, so no need to remove for 'aqua'
if {$::windowingsystem ne "aqua"} {
bind PatchWindow <FocusIn> {+setmenu_for_editmode %W}
bind PatchWindow <<EditMode>> {+setmenu_for_editmode %W}
}
pdtk_post "Finished loading menubar_only_in_editmode-plugin.tcl"
-------------
.hc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menubar_only_in_editmode-plugin.tcl
Type: application/octet-stream
Size: 651 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20101129/96502752/attachment.obj>
-------------- next part --------------
----------------------------------------------------------------------------
"We have nothing to fear from love and commitment." - New York Senator
Diane Savino, trying to convince the NY Senate to pass a gay marriage
bill
More information about the Pd-list
mailing list