I've never seen the window problem, but the label thing may happen if the
label width is too short for the new text.
See the following example:

####################
use Win32::GUI;

@files=('c:\config.sys','c:\windows\terminal.exe','c:\autoexec.bat');

$W=new Win32::GUI::Window(-width=>260,-height=>160);

$W->AddLabel(
             -name     => "TEST",
             -text     => "Deleting file:",
             -pos      => [40,20],
             -width    => 260,
#            -width    => 160    # uncomment this line and
                                 # see what happens
             );

$W->AddButton(-name=>"NEXT",-text=>"Next",-pos=>[100,100]);
$W->Show;
Win32::GUI::Dialog();

sub NEXT_Click {
    $W->TEST->Text("Deleting file: ".$files[$i++%($#files+1)]);
}

############

                        Alan Mizrahi
                        Universidad Simon Bolivar
                        CESMA
                        [EMAIL PROTECTED]

On Thu, 9 Aug 2001, Gross, Stephan wrote:

> I'm writing an application where data is input in a first window, then the
> user hits a button which calls a second window.  Sometimes the second window
> pops right up, but at other times it starts minimized, so I have to click it
> twice on the task bar to see it.  Can anyone suggest why this happens?  I
> also notice this effect even when I am designing a window; if I make a label
> a certain length and the data in the label changes, I may see the same
> thing.  I am not using any IsVisible or OnTop methods.
>
> _______________________________________________________
> Stephan Gross       Loral Skynet     908-470-2388     [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
>
>



Reply via email to