[PD] Menu bar height (differences across platforms)

Roman Haefeli reduzent at gmail.com
Thu Feb 16 15:26:44 CET 2017


Thanks for the clarification, especially for menubarsize. It all makes
a bit more sense to me now.

Roman


On Don, 2017-02-16 at 15:18 +0100, IOhannes m zmoelnig wrote:
> On 2017-02-16 14:39, Lucas Cordiviola wrote:
> > 
> > Here`s the backup:
> > 
> > line 306
> > 
> > # some platforms have a menubar on the top, so place below them
> >             set ::menubarsize 0
> >             # Tk handles the window placement differently on each
> >             # platform. With X11, the x,y placement refers to the
> > window
> >             # frame's upper left corner. http://wiki.tcl.tk/11502
> >             set ::windowframex 3
> >             set ::windowframey 53
> > # TODO add wm iconphoto/iconbitmap here if it makes sense
> > 
> > 
> > 
> > Try changing these:
> > 
> > set ::windowframex 3
> > set ::windowframey 53
> > 
> > try both to 0
> ???
> 
> it seems like you are changing some random variables to achieve an
> unrelated goal.
> the windowfram{xy} vars have nothing to do with the size of Pd's
> menu.
> 
> just for reference:
> 
> $::menubarsize
> is the size of the OSX menubar on top of the screen.
> this is the menubar with spotlight and whatnot; it has a fixed size
> (unchangable by any application, including Pd).
> this is totally unrelated to the size of Pd's menu on systems that
> don't
> have a menubar.
> 
> $::windowframex
> this is the width of the window decoration (the tiny border left to
> the
> actual window content.
> 
> $::windowframey
> similar to $::windowframex, this is the height of the window
> decoration
> (including any window title)
> 
> all those variables are used for window placement.
> as the comments suggest, tcl/tk handles window positioning different
> on
> various platforms. sometimes the window position includes the window
> decoration, and sometimes not. these variables are an attempt to open
> the window at the same place where you closed them.
> as mentioned in the comment, there's more info in http://wiki.tcl.tk/
> 11502
> 
> if you want to change the size of the Pd-menu, you have to look
> somewhere else...
> 
> fgamsdr
> IOhannes
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/lis
> tinfo/pd-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170216/00266fd9/attachment.sig>


More information about the Pd-list mailing list