Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
Mag
- VIP Livecode Opensource Backer

- Posts: 802
- Joined: Fri Nov 16, 2012 10:51 pm
Post
by Mag » Wed Feb 12, 2014 12:14 am
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?

-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10333
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Wed Feb 12, 2014 6:36 am
Dunno.
Locking the screen does not help.
Craig
-
Mag
- VIP Livecode Opensource Backer

- Posts: 802
- Joined: Fri Nov 16, 2012 10:51 pm
Post
by Mag » Thu Feb 13, 2014 2:10 am
Thank you Craig, I will go with code in a "resize" button then...

-
bn
- VIP Livecode Opensource Backer

- Posts: 4174
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Thu Feb 13, 2014 3:40 am
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
-
Attachments
-
- screenflickeringOnLiveResize.livecode.zip
- (3.45 KiB) Downloaded 149 times
-
bn
- VIP Livecode Opensource Backer

- Posts: 4174
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Thu Feb 13, 2014 4:38 pm
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
-
Attachments
-
- screenflickeringOnResizable.livecode.zip
- (24.74 KiB) Downloaded 155 times
-
Mag
- VIP Livecode Opensource Backer

- Posts: 802
- Joined: Fri Nov 16, 2012 10:51 pm
Post
by Mag » Thu Feb 13, 2014 5:08 pm
Hi Bernd! Wow, very impressed about the technique you used, great work indeed! Thank you.
PS
Very nice (and useful) also the first stack.