in reply to Win32::GUI::grid set max window size
sub Window_Resize { if($Window->Height() >= ($Grid->GetVirtualHeight)){ $Window->Height($Grid->GetVirtualHeight + 38); } if($Window->Width() >= ($Grid->GetVirtualWidth)){ $Window->Width($Grid->GetVirtualWidth + 12); } my ($width, $height) = ($Window->GetClientRect)[2..3]; $Grid->Resize($Window->Width(), $Window->Height()); }
|
|---|