Page 1 of 1

Differing object positions between PCs

Posted: Sat Apr 13, 2013 6:40 pm
by user#606
The IDE views of my application is the same on either PC 1920x1200 & 1920x1080 resolution, but are significantly different in exe form. Also no problem in either state on a Mac.
The big issue is that Label fields are partly covered by adjacent controls and it is a right mess!
Yes, I can reposition them by trial and error, but this should not be necessary.
Does anyone have a solution to this frustrating issue?

Re: Differing object positions between PCs

Posted: Sat Apr 13, 2013 9:42 pm
by Simon
Can you remove the stack resizable? As in make your stack a fixed size?
If you have to have the stack resizable then look into the geometry manager in the object inspector or use "on resizeStack" handler to position your objects programmatically.
http://runrev.com/developers/documentat ... rs-course/
lesson 4.

Simon

Re: Differing object positions between PCs

Posted: Mon Apr 15, 2013 9:49 am
by user#606
All the objects are locked into position and the Stack is not resizeable.
The resulting font size is bigger in the EXE than in theStack. I can compare this by having both the exe and the Stack in view at the same time.

Re: Differing object positions between PCs

Posted: Mon Apr 15, 2013 12:37 pm
by Klaus
Hi,

did you actually SET the font size etc. for your mainstack/standalone?

Re: Differing object positions between PCs

Posted: Mon Apr 15, 2013 12:47 pm
by user#606
I used the Livecode system font and size, whatever that is.
The Text Formatting properties always shows a blank box for font and size, when I use the Livecode system.
I am not sure from your question if that means it is not SET. Or to put it another way, do you have to chose a font and size, regardless of the Livecode system to SET the font and size.
If I look at the Text menu item in the Livecode toolbar, it states "Use Owners font"

I await your comment.

Re: Differing object positions between PCs

Posted: Mon Apr 15, 2013 3:07 pm
by Klaus
Hi user#606,

if you do not set any text property for your stack (font and size will be enough!), it will inherit whatever has been
"factory" set for the "home" stack. Not sure what font etc. exactly on what platform.

Problems arise when you create a standalone, where there is no "home" stack and thus results are unpredictable 8)
Just set the textfont property for your stack, I do this "on preopenstack for the current platform, and there shouldn't
be any more surprises.


Best

Klaus

Re: Differing object positions between PCs

Posted: Mon Apr 15, 2013 4:18 pm
by user#606
Hi Klaus,
Well, that fixed it!
I have set all objects to Arial , from the preopen stack, but because of a few different font sizes, I have not set them.
I also selected the objects and made sure they were all showing Arial and the actual font size.
I think the font name and font size set at object level is my best option for future, because the setting from the Preopen might get complex if I ever mix font names and size.

Thank you for your advice, I has enabled me to move on.