New Stack Preset Sizes

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
vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

New Stack Preset Sizes

Post by vizualDevelop » Wed Jan 20, 2021 8:40 am

Is Livecode meant primarily for mobile devices?
File> New Stack>...all you see are iPhone and iPad preset sizes.
Why not desktop sizes?

David R.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: New Stack Preset Sizes

Post by bogs » Wed Jan 20, 2021 11:10 am

Heh, that is a 'feature' that was added after the last major redesign of the IDE. Personal opinion, I don't think it was too well thought out.
aPic_I-dontWannaPhone.png
Phone home? ME ??
if you ignore all the 'i-phone' stuff, the resolutions would work out in desktop sizes. For instance, the first 4 are approximately the size of utility windows. The last 2 would be the size of, say, a text editor you might open.

Me personally, I ignore all of that and just open a default size and size it how I want or, alternately, open blank default stacks I've setup as templates.

I should add that I am rarely in the new IDE, and when I am I am more likely to have M.W.'s excellent Power Tools plugin open than not.
aPic_MWTools.png
Where is that screwdriver...
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: New Stack Preset Sizes

Post by dunbarx » Wed Jan 20, 2021 2:42 pm

Hi.

Know you can set the properties of the "templateStack" to whatever you wish, and any new stack will look just like that one.

Craig

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: New Stack Preset Sizes

Post by bogs » Wed Jan 20, 2021 3:03 pm

Yep, there are a lot of ways to make new stacks, but setting the template is most useful if your only shooting for one particular size over a lot of stacks.
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: New Stack Preset Sizes

Post by dunbarx » Wed Jan 20, 2021 5:27 pm

Bogs.

Yep. You can even have a bunch of rects stored somewhere, and choose among them to set the rect of the templateStack ad hoc. I am not sure this is faster or easier than just resizing the default, which, like you, is what I always do.

Craig

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

Re: New Stack Preset Sizes

Post by FourthWorld » Wed Jan 20, 2021 5:30 pm

Desktop apps have windows in many sizes: documents are resizable, some of fixed width less than the monitor width; About boxes are relatively small, and in a variety of sizes; dialogs vary according to what they display...

So many sizes, just make a stack and set it up as you need.

If you need any tips on adjusting content for resizable windows there are many, don't be shy.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: New Stack Preset Sizes

Post by bogs » Wed Jan 20, 2021 5:40 pm

Hee hee, I'm not sure I'd say *always*, but close enough heh. I don't usually work with sizing requirements, but sometimes I do.

Other than those times, my stack size is only dictated by looks, which changes depending on what is on it :D
Image

vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

Re: New Stack Preset Sizes

Post by vizualDevelop » Mon Jan 25, 2021 5:03 pm

I asked because it seems curious that LiveCode targets many platforms but only has presets for Iphone and Ipad. Seemed weird.
I am still getting my way around and following the "ABC Courses" tutorials which are fantastic, so as I go along I will definitely need some guidance. Thanks a lot for the great help!

David R.

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

Re: New Stack Preset Sizes

Post by FourthWorld » Mon Jan 25, 2021 5:17 pm

vizualDevelop wrote:
Mon Jan 25, 2021 5:03 pm
I asked because it seems curious that LiveCode targets many platforms but only has presets for Iphone and Ipad. Seemed weird.
Very. For so many reasons. That menu really needs to be cleaned up.

When I finish the "New Stack" tool in my devolution plugin I may also distribute that as a separate UI upgrade for LC, addressing the issue you raised and several others.
I am still getting my way around and following the "ABC Courses" tutorials which are fantastic, so as I go along I will definitely need some guidance. Thanks a lot for the great help!
Glad you're off to a good start. Keep us posted as you come up with more questions.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply