Hi, there seems to be a fundamental problem with B4J/A, in that the GUI cant reliably update its appearance while work is inprogress.
eg, I want to have a Button that when clicked:
- disables itself & grays its text colour (to give the user a visual sign that work is under way)
- does some work (several seconds elapsed)
- resets its text colour to black & re-enables itself
Unfortunately this doesnt work as the GUI doesnt update while the program is busy !
This seems like a significant omission compared to Visual Basic which the B4 apps are a substitute for.
I see many similar discussions about DoEvents, Progress Bars, and other problems updating the GUI while work is in-progress.
Is there anything that can be done to resolve this fundamental problem !? (eg. a command to force updates / Refresh the GUI)
One of the joys of VB was the ability to update the GUI while the app was running without having to code complicated workarounds like Timers, or support threads !
eg, I want to have a Button that when clicked:
- disables itself & grays its text colour (to give the user a visual sign that work is under way)
- does some work (several seconds elapsed)
- resets its text colour to black & re-enables itself
Unfortunately this doesnt work as the GUI doesnt update while the program is busy !
This seems like a significant omission compared to Visual Basic which the B4 apps are a substitute for.
I see many similar discussions about DoEvents, Progress Bars, and other problems updating the GUI while work is in-progress.
Is there anything that can be done to resolve this fundamental problem !? (eg. a command to force updates / Refresh the GUI)
One of the joys of VB was the ability to update the GUI while the app was running without having to code complicated workarounds like Timers, or support threads !