Jim,
I am unsure if this will help you but, what I do is:
I create a property.
llgenerate
Then, in my clickevent of one of my buttons, I put:
thisform.llgenerate = .t.
In the refresh of the button:
IF thisform.llgenerate = .t.
this.enabled = .f.
ELSE
this.enabled = .t.
ENDIF
That way when the llgenerate button is pushed, it will appear depressed and stay that way.
You can put those commands in the refresh of your labels too. So a visible/invisible label might go something like this:
(Make sure you have the "visible" field set to .f. as a default)
IF thisform.llgenerate = .t.
this.visible = .t.
ELSE
this.visible = .f.
ENDIF
That way when the button is pressed it looks pressed and stays that way. Then your "searching" label instantly appears while the program appears in the background.
Does that help?
>I have always battled this problem, so I'm going to the experts for the final say so on how to fix this. I have buttons that I want to set enabled to FALSE when a button is pressed and have hidden text become visible that says somthing like "Searching..." to let the user know that something is happening. I was told to use DOEVENTS after the code in the CLICK event that I reset the states of the buttons and the visible text, but the rest of the code in the CLICK event completes before the visual changes are made. How can I force the visual changes to happen before the rest of the code is executed?
>
>Thanks!
>Colombo.
Thanks,
Chad