I'm using Win32::GUI version 0.0.434, and I've encountered a bug with the
DialogBox.  I created a dialogbox with a style that includes a maximize
button in the top right corner of the window (WS_MAXIMIZEBOX).  Once the
window is maximized, the maximize button is replaced by a restore button, as
it should be.  The problem is that the restore button doesn't do anything,
so it's impossible to restore the window to its original size.  Does anyone
know of a workaround for this?  I realize that the normal Win32::GUI window
doesn't have this bug, but I'm using the DialogBox because of the ability to
tab between controls.

Here's an example of a DialogBox with the problem I described.  Maximize the
window, and then try to restore it.

use Win32::GUI;
my $window1 = new Win32::GUI::DialogBox(
    -name => Window1,
    -text => Window1,
    -height => 310,
    -width => 453,
    -left => 283.4667,
    -top => 182,
    -style => WS_CAPTION | WS_SYSMENU | WS_VISIBLE | WS_MAXIMIZEBOX |
WS_MINIMIZEBOX | WS_THICKFRAME,
);
Win32::GUI::Dialog();

Regards,
Ravi Singh
[EMAIL PROTECTED]
http://www.windows-shareware.com


Reply via email to