hi pat and andre
thank you, guys, for your suggestions. i actually want to have my patch windows without menus/sb and i don't want to make my patches have no m/sb on other peoples computers, that is why i would like to avoid the toxy approach.
however, meanwhile i could solve it with a little help from #tcl.
to get rid of the menu, i uncommented the whole section from:
# the file menu line 939 in pd.tk of pd-vanilla 0.41.4
to:
# WM protocol line 1203
in order to remove the scrollbars, i changed the section:
<start section>
wm geometry $name $geometry
canvas $name.c -width $width -height $height -background white
-yscrollcommand "$name.scrollvert set"
-xscrollcommand "$name.scrollhort set"
-scrollregion [concat 0 0 $width $height]
scrollbar $name.scrollvert -command "$name.c yview"
scrollbar $name.scrollhort -command "$name.c xview" \
-orient horizontal
pack $name.scrollhort -side bottom -fill x
pack $name.scrollvert -side right -fill y
pack $name.c -side left -expand 1 -fill both
<end section>
to:
<start section>
wm geometry $name $geometry
canvas $name.c -width $width -height $height -background white
# -yscrollcommand "$name.scrollvert set"
# -xscrollcommand "$name.scrollhort set"
# -scrollregion [concat 0 0 $width $height]
# scrollbar $name.scrollvert -command "$name.c yview"
# scrollbar $name.scrollhort -command "$name.c xview"
# -orient horizontal
# pack $name.scrollhort -side bottom -fill x # pack $name.scrollvert -side right -fill y pack $name.c -side left -expand 1 -fill both
<end section>
those changes seem to work, while they most likely are a very ugly kludge. i get a en error from time to time (e.g. 'invalid command name ".x8277008.m.windows"') in stderr, but they don't seem to cause any harm.
roman
On Thu, 2008-06-12 at 12:43 -0400, patrick wrote:
hi roman,
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.
see the screenshot.
pat
Roman Haefeli wrote:
hi all
without any specific tk knowledge, i still once managed to tweak the pd.tk file, so that there weren't any menus and scrollbards anymore in the patcher windows. it took me a while to find what needs to be skipped and needs to to be kept in order to work correctly. now, after switching to a newer pd version, i realized, that i cannot just re-use my work done in the previous pd.tk.
if possible, can anyone explain in few words what needs to be done in order to get rid of those? wouldn't it also be nice to have simply a switch in the file to turn those on and off?
roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de