Stack resizable

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

Post Reply
antrax13
Posts: 39
Joined: Mon Jun 01, 2015 11:38 am

Stack resizable

Post by antrax13 » Tue Sep 22, 2015 2:22 pm

Hi how would you solve this?

if the stack width is less than 1024 I want to basically stop resizing.

Code: Select all

on resizeStack pNewWidth, pNewHeight
   if pNewWidth < 1024 or pNewHeight < 740 then
      -- will set always the width of stack to 1024 but then when width of stack is set to 1024 stack is shifting to left - this issue is with windows
      -- on Mac it will not even stop resizing and I was able still resize or set the width less than 1024
      set the width of stack "Design" to 1024
   else
      set the width of graphic "RectangleBottom" to pNewWidth+20
      set the topLeft of graphic "RectangleBottom" to -10,pNewHeight-60
   end if
end resizeStack
Works on Windows but when size is less then 1024 stack will shift to left

Does not work on Mac will not stop resizing.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Stack resizable

Post by FourthWorld » Tue Sep 22, 2015 4:09 pm

Why not just set the minWidth property of the stack to 1024?

Post Reply