For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > March 2005 > Panedwindow/sashPlace









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Panedwindow/sashPlace
bob

2005-03-09, 3:58 am

Hi:
Does anyone know if sashPlace works and does anyone have a piece of sample
code of setting the sash location with sashPlace?
Thanks
Bob


Steve Lidie

2005-03-09, 3:58 am

bob <buonopane@comcast.net> wrote:
> Hi:
> Does anyone know if sashPlace works


It seems to work ;)

and does anyone have a piece of sample
> code of setting the sash location with sashPlace?


My Perl/Tk rendition of the Tcl/Tk Panedwindow code uses sashPlace(). So,
in Panedwindow.pm, look at subroutines DragSash() and ReleaseSash().

> Thanks
> Bob
>
>

bob

2005-03-09, 3:58 am

Sorry - I should have been more specific.
My main app is a panedwindow with 3 horizontal sashes. After the main window
is sized I want to place the sashes at specific locations, proportional to
the main window size. ($x,$y) = $widget->sashCoord(0) will give me the x.y
locations of the first sash and then I want to move that sash. If I do
$widget->sashPlace(0, $x, $y + 20), the sash does not move. Am I off in my
thinking here?



"Steve Lidie" <lusol@Dragonfly.cc.lehigh.edu> wrote in message
news:d0ljpa$4m0c$2@ws2.cc.lehigh.edu...[color=darkred]
> bob <buonopane@comcast.net> wrote:
>
> It seems to work ;)
>
> and does anyone have a piece of sample
>
> My Perl/Tk rendition of the Tcl/Tk Panedwindow code uses sashPlace(). So,
> in Panedwindow.pm, look at subroutines DragSash() and ReleaseSash().
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com