> QUESTION:
>   Are the widgets and the window both measured in pixels?
>   Because when i declared the the window was 400x300 to
>   the gridLayout and made the window 400x300 in the Win32::GUI
>   my bottom row cell rolled off the bottom. I played with the window
>   width and height and found that the widget pixels seem larger than the
>   window pixels.
>   Is this true or is my algebra off?

The thing is that you specify the outer size of the window, so to get 
the size of client area you have to subtract the border, title bar 
and  menu.

BTW: I've been playing with something similar on top of GD.pm, It 
allows things like :

$table = new GD::Table [100,100,100,100],[45,45,45];
$table->AddRows($height, 5);
$table->SetPadding(4,3);

$table->String(&gdSmallFont,'0:-6',1,"test -6",$black,
 &GD_JUSTIFY_LEFT | &GD_JUSTIFY_MIDDLE);

(The '0:-6' means print it to the first column moved 6 points to the 
left from the base position specified by the options and by padding 
for the table.)

You may even construct the whole table, intermixing ->String and 
->AddRows/AddColumns and THEN at last ask for the total size and 
create a gif and draw the table with all the notes and other stuff on 
it.

It may be found at http://Jenda.Krynicky.cz/perl/GDPlus.pm
and an example at http://Jenda.Krynicky.cz/perl/zkGDPlus.txt

Maybe it would be good to port this to Win32::GUI as well :-)

Jenda
================ [EMAIL PROTECTED] ================
 The phenomenon of UFO doesn't say anything about
    the presence of intelligence in the space.
  It just shows how rare is it here on the earth.
                                    A.C.Clarke

Reply via email to