Page 1 of 1
Setting resizable to true causes flickering
Posted: Wed Feb 12, 2014 12:14 am
by Mag
I'm using this code (on OS X) to have the stack resizable when an option is activated:
Code: Select all
set the resizable of this stack to true
Unfortunately every time I switch from false to true I get a sort of flickering when the windows disappears for a moment, some of you LC gurus know how to avoid this?

Re: Setting resizable to true causes flickering
Posted: Wed Feb 12, 2014 6:36 am
by dunbarx
Dunno.
Locking the screen does not help.
Craig
Re: Setting resizable to true causes flickering
Posted: Thu Feb 13, 2014 2:10 am
by Mag
Thank you Craig, I will go with code in a "resize" button then...

Re: Setting resizable to true causes flickering
Posted: Thu Feb 13, 2014 3:40 am
by bn
Hi Mag,
here is a little stack that reduces the flicker to an occasional "blink"
It uses a substack to cover up the main stack while the mainstack is changed. To make it look like the mainstack it makes a screenshot first.
Have a look, all the code is in the button. It is more a test how one could "hack" this. The flicker I think is due to the fact that the system draws the little handle at the bottom right for resizing.
I don't know if it is worth going through this, but here it is:
Kind regards
Bernd
Re: Setting resizable to true causes flickering
Posted: Thu Feb 13, 2014 4:38 pm
by bn
Hi Mag,
I get it, you did not like the previous version and rightly so.
Here is an improved version which now handles if your stack has a title or more than one card.
Kind regards
Bernd
Re: Setting resizable to true causes flickering
Posted: Thu Feb 13, 2014 5:08 pm
by Mag
Hi Bernd! Wow, very impressed about the technique you used, great work indeed! Thank you.
PS
Very nice (and useful) also the first stack.