[perl-win32-gui-users] How to disable a window and/or dialogbox?

2004-08-27 Thread Eric Hansen
I have a program that has dialogbox with 2 listboxes, 4, comboboxes,

And 6 buttons.  When the user hits a search button (a button used to

Do a sql lookup and bring data back) I want the dialogbox to be

Disabled so that the user can't mouse click the widgets on the 

Dialogbox.  I use the disable method   $D->Disable();  but that

Does not work.  I have even tried disabling each individual

Widget and that does not work.  What happens is that while

The program is searching the database, the user can click

Around the dialogbox and nothing appears to happen. But when the

Sql search procedure is done, the user sees the effect of their

Mouse clicks. Everything they did then becomes evident.

What gives??

Eric, Texas



Re: [perl-win32-gui-users] How to disable a window and/or dialogbox?

2004-08-27 Thread Glenn Linderman
On approximately 8/27/2004 2:36 PM, came the following characters from 
the keyboard of Eric Hansen:



I have a program that has dialogbox with 2 listboxes, 4, comboboxes,

And 6 buttons.  When the user hits a search button (a button used to

Do a sql lookup and bring data back) I want the dialogbox to be

Disabled so that the user can’t mouse click the widgets on the

Dialogbox.  I use the disable method   $D->Disable();  but that

Does not work.  I have even tried disabling each individual

Widget and that does not work.  What happens is that while

The program is searching the database, the user can click

Around the dialogbox and nothing appears to happen. But when the

Sql search procedure is done, the user sees the effect of their

Mouse clicks. Everything they did then becomes evident.

What gives??

Eric, Texas


Hard to say without some code to play with, but maybe you should 
DoEvents before you re-enable the widgets?


--
Glenn -- http://nevcal.com/
===
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.