[PD] pd.tk: how to get rid of scrollbars and menus?

Mathieu Bouchard matju at artengine.ca
Fri Jun 20 22:17:10 CEST 2008


On Thu, 12 Jun 2008, patrick wrote:

> in pdmtl abstractions the 1.browser.pd doesn't have any menu or scrollbar. 
> this hack is done without editing pd.tk - also disabling ctrl+e.
> tof did it, so i don't know the detail about this little hack. but i think he 
> used toxy to do it.

Most likely using a tk command like [pack forget .x%x.whatever] or 
[destroy .x%x.whatever]. Most likely [pack forget], because then the 
scrollbar still exists, so that things that are interacting with the 
scrollbar don't get an error trying to interact with a dead object.

The menu bar is a special thing. ten years ago, people were using normal 
tk widgets and layouts to make a menu bar. However, to integrate better 
with the Mac, the [pack forget .x%x.whatever] command can't be used, as 
the layout is handled by the window itself; therefore it has to be done 
using [.x%x configure -menubar something].

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec


More information about the Pd-list mailing list