[MaxGUI] How to force gadget refresh?

BlitzMax Forums/BlitzMax Beginners Area/[MaxGUI] How to force gadget refresh?

Jake L.(Posted 2006) [#1]
Hi,

While doing some tasks, I fill a textarea with lines each time a single task is done. But all lines are drawn after the last task. Anyone knows how I can force MaxGUI to refresh it's gadgets?


Grisu(Posted 2006) [#2]
"RedrawGadget"

But it is buggy and doesn't always work!


Jake L.(Posted 2006) [#3]
Thanks, I'll give this a try!


Jake L.(Posted 2006) [#4]
Made a progress on this one:

RedrawGadget doesn't work at all (not even sometimes), but this works under Win32:



Maybe anyone with Mac or Linux-knowledge can provide a solution working on this platforms?


TomToad(Posted 2006) [#5]
Are you using hooks in your program? If not, try rewriting your program to use hook. Sometimes it'll solve problems with windows not updating when you want them to.