[perl-win32-gui-users] fix GridLayout.pm

2005-05-27 Thread Alexander Romanenko
t;, -text => "Label 1", -width => $grid->width(35), -height => $grid->height(11), -left => $grid->col(1, "left"), -top=> $grid->row(1, "top"), ); =item draw() Draws the GridLayout in the associated window (may be useful for debugging); is only meaningful if the GridLayout was created with the apply() constructor. =item height(N) Sets the height of the control for subsequent alignment; this can be feed to a C<-height> option when creating a control. Example: see col(). =item recalc() Recalculates the grid and repositions all the add()ed controls, taking into account the actual window and controls sizes; is only meaningful if the GridLayout was created with the apply() constructor. Example: sub Window_Resize { $grid->recalc(); } =item row(N, ALIGN) Positions the control at the Nth row in the grid, optionally with an ALIGN; this can be feed to a C<-top> option when creating a control. ALIGN can be C, C or C (can be shortened to t, c, b); default is top. Note that for alignment to work properly, the width() and height() methods must have been previously called. Example: see col(). =item width(N) Sets the width of the control for subsequent alignment; this can be feed to a C<-width> option when creating a control. Example: see col(). =back =head1 VERSION Win32::GUI::GridLayout version 0.04, 06 April 2005. Win32::GUI::GridLayout version 0.03, 13 April 1999. =head1 AUTHOR Mike Kangas ( C<[EMAIL PROTECTED]> ); additional coding by Aldo Calpini ( C<[EMAIL PROTECTED]> ). additional coding Alexander Romanenko ( C<[EMAIL PROTECTED]> ). =cut

Re[2]: [perl-win32-gui-users] New GridLayout.pm

2005-04-03 Thread Alexander Romanenko
How you change a position and sizes of controls when the window changes the sizes? If to use "New GridLayout.pm" that a position and sizes change automatically. JW> I never knew this object was part of Win32::GUI:) JW> I've never used it, so I can't test it - but I can check it in - is this OK

[perl-win32-gui-users] New GridLayout.pm

2005-03-30 Thread Alexander Romanenko
Hello, I have corrected and have modified module GridLayout.pm. Now cells of a grid can have absolute and relative size. Controls can be expanded (justify) on some cells. The module supports old job, but methods apply() and add() can be called with new parameters. Please, check up correctness of j

Re[2]: [win32gui] [perl-win32-gui-users] How to draw GridLayout?

2005-02-20 Thread Alexander Romanenko
Grid Lines", RM> -size => [400,400], RM> -pos => [100,100], RM> -onPaint => sub { $grid->recalc(); $grid->draw() }, RM> ); RM> $grid = Win32::GUI::GridLayout->apply($win,3,3,0,0); $grid->>recalc(); $win->>Show(); $grid->>draw(); RM> Win

[perl-win32-gui-users] How to draw GridLayout?

2005-02-19 Thread Alexander Romanenko
Hi, I use Win32::GUI::GridLayout, but the method draw draws nothing. I have Windows XP SP2.