[PD] Menu bar height (differences across platforms)

IOhannes m zmoelnig zmoelnig at iem.at
Thu Feb 16 15:18:07 CET 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170216/82cce733/attachment.sig>


More information about the Pd-list mailing list