StatusBarText() produces flicker if update it with same text
Posted: Fri Jun 06, 2014 10:23 am
To reduce flickering, I use functions like that to update gadgets:
But in StatusBar I have no access to the current text. If I update with the same text, then it flickers.
Code: Select all
Procedure SetGadgetStateIf(gadget, state)
If GetGadgetState(gadget) <> state: SetGadgetState(gadget, state): EndIf
EndProcedure
Procedure SetGadgetTextIf(gadget, text$)
If GetGadgetText(gadget) <> text$: SetGadgetText(gadget, text$): EndIf
EndProcedure