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
hi,
i once did a patch for removing scrollbars if content is smaller than canvas (pretty standard feature in any app, no?): http://sourceforge.net/tracker/index.php?func=detail&aid=1551825&gro...
but miller seemed to have bugs with it, and i (no one?) could not reproduce... http://lists.puredata.info/pipermail/pd-dev/2008-01/010554.html
and as the need for it seems very low, i dont care anymore...
and for removing menubar, the only thing i got as answer was use "forgot the name tcl/tk external"...
.andre
On Thu, 2008-06-12 at 12:02 +0200, 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
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
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
You can send Tcl directly to the GUI using [hcs/sys_gui]. Therefore,
you could do anything to the GUI that is possible with Tcl/Tk. It
would probably be a hack though, to do more complicated things this way.
.hc
On Jun 12, 2008, at 6:43 PM, 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
<pdmtl.jpg>_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
You can't steal a gift. Bird gave the world his music, and if you can
hear it, you can have it. - Dizzy Gillespie
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