On approximately 6/26/2003 5:57 AM, came the following characters from
the keyboard of Frazier, Joe Jr:
> See the attached file. The "X" icon is about 50% smaller than normal
 > on my Win2k system (not tested elsewhere) using GUI .668 and
 > Perl 5.0.1.

> use Win32::GUI;
> use strict;
> use warnings;
>
> package main;
>
>
> my $Window = new Win32::GUI::Window (
>    -name   => "Window",
>    -topmost => 1,
>    -left   => 300,
>    -dialogui => 1,
>    -top    => 400,
>    -width  => 258,
>    -height => 280, #235,
>    -maxsize  => [258,280],#[258,235],
>    -minsize  => [258,280],#[258,235],
>    -text   => "No Tool Window",
>    -maximizebox => 0,
>    -minimizebox =>1,
>    -helpbutton => 0,
>    -resizable =>0,
> );
>
> my $Window2 = new Win32::GUI::Window (
>    -name   => "Window2",
>    -topmost => 1,
>    -toolwindow => 1

Oops, you left out the ending  , (comma).  Only affected the -left
position, though, so not a big deal.

>    -left   => 600,
>    -dialogui => 1,
>    -top    => 400,
>    -width  => 258,
>    -height => 280, #235,
>    -maxsize  => [258,280],#[258,235],
>    -minsize  => [258,280],#[258,235],
>    -text   => "With the ToolWindow",
>    -maximizebox => 0,
>    -minimizebox =>1,
>    -helpbutton => 0,
>    -resizable =>0,
> );
>
> sub Window_Terminate
> {
>    return -1;
> }
> sub Window2_Terminate
> {
>    return -1;
> }
> $Window2->Enable();
> $Window2->Show();
> $Window->Enable();
> $Window->Show();
>
> Win32::GUI::Dialog();
>
> Note that as of yet, I have not played with the various settings for
 > minimizebox, etc. It does look kind of cool with the small button, but
 > I would just like to know why....

I got the same results with your test program as I did with mine.  Perhaps
the close box is a little smaller, but certainly not as smaller as
yours.  Perhaps this has something to do with other system settings....

I changed the window labels, and added the commas, to make it easier to
do another experiment, but basically this screen shot uses the same
parameters as your program.

I note that the "system icon" is also gone on the toolwindow -- no
camel.  So the -sysmenu option becomes overridden as well!

So I guess -toolwindow is pretty powerful.  Not all of its effects are
necessarily desirable to all applications.  The more complex, deleted
parent window method may be more appropriate for applications that
actually want a full-function window when it is displayed.

--
Glenn -- http://nevcal.com/
===========================
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick.  It's ridiculous.
-- Bill Gates

<<attachment: iviewcapture_date_26_06_2003_time_10_19_07.gif>>

Reply via email to