Force a redraw or refresh of the screen...[Solved]
Posted: Fri Mar 01, 2019 3:26 pm
I was wondering if there was a keyword, command, or function in Lc I am unable to find to force a screen refresh or redraw.
I wrote a handler to scale controls in a program which is called from the resizeStack handler/message.
One of the things I noticed running it is that when I resize the stack, sometimes the controls don't *look* like they finished, but if I then move the window, they *are* in fact correctly set.
I initially thought of lock/unlock screen, but on reading the comments in the reiszeStack entry it says
As a work around for now, I simply have the resizing handler call another handler that runs it one extra time, but obviously this isn't ideal, least not in my opinion
I wrote a handler to scale controls in a program which is called from the resizeStack handler/message.
One of the things I noticed running it is that when I resize the stack, sometimes the controls don't *look* like they finished, but if I then move the window, they *are* in fact correctly set.
I initially thought of lock/unlock screen, but on reading the comments in the reiszeStack entry it says
Then I looked for redraw/refresh, but only found references for mobile or the browser.The screen is locked while a resizeStack handler is running, so it is not necessary to use the lock screen command to prevent changes from being seen. (However, the lockScreen property is not set to true.)
As a work around for now, I simply have the resizing handler call another handler that runs it one extra time, but obviously this isn't ideal, least not in my opinion
