RE: [perl-win32-gui] How to show a label?

1999-12-03 Thread Eric C. Hansen

Thomas,

I think your problem might be that you define your label text as solid
white. [0,0,0].  Try commenting out the -foreground property and see what
happens.

Eric

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Thomas_M
Sent: Friday, December 03, 1999 12:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [perl-win32-gui] How to show a label?


Eric C. Hansen [mailto:[EMAIL PROTECTED]] replied:
 you need GUI::Dialog() to activate the EVENT LOGIC;

Thanks, and I've tried that, but it stops and waits for
an event. I need something that will let me continue
processing.

In my actual program I have a progress bar in the window
which displays just fine. It redraws every time the bar
value is incremented. The label that doesn't show up is a
"Please wait..." label above the progress bar.

When the progress bar is complete, I hide the progress
bar (actually moving it past the edge of the window until
I find a better way), and display some information and an
exit button. At that point I use GUI::Dialog to wait for
the user interaction. Everything works except the label
never shows up.

Isn't there any way to show a label for a progress bar,
which (of course) doesn't block the perl program to wait
for user input? Or is there a better way to do what I want?

--
Mark Thomas
[EMAIL PROTECTED]





Re: [perl-win32-gui] How to show a label?

1999-12-03 Thread David Hiltz

 Eric C. Hansen [mailto:[EMAIL PROTECTED]] replied:
  you need GUI::Dialog() to activate the EVENT LOGIC;
 
 Thanks, and I've tried that, but it stops and waits for
 an event. I need something that will let me continue
 processing. 

  You can use a Timer to do a 'one-time' call a subroutine which will  
  continue on with the processing.

 In my actual program I have a progress bar in the window
 which displays just fine. It redraws every time the bar
 value is incremented. The label that doesn't show up is a
 "Please wait..." label above the progress bar.
 
 When the progress bar is complete, I hide the progress
 bar (actually moving it past the edge of the window until
 I find a better way), and display some information and an
 exit button.

  Try the Hide() method.





Re: [perl-win32-gui] How to show a label?

1999-12-03 Thread David Hiltz

 
 I'm just getting started with Win32::GUI. I have a basic question. I create
 a window, but can't get a Label to show up. Is there another way to put text
 in the window?
 
 Can you spot what I'm doing wrong? Code is below:

  Add this...

 Win32::GUI::Dialog();

  after the $M-Show;

  -dhiltz