Default object sizes

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Default object sizes

Post by Jellicle » Thu Jan 30, 2014 4:48 am

When I drag e.g. a switch to my stack it is smaller than it should be. I'm building for retina screens only - what magic do i do so that the switches appear at their normal iOS 7 size?

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Default object sizes

Post by splash21 » Thu Jan 30, 2014 10:39 am

Hi, Gerry. I've been designing at the smaller scale and letting LC's resolution independence kick in, but here's a retina theme with some supersized controls - does it work for your setup?

MobGUITheme-iOS7-Retina.zip
SuperSized.png
Attachments
MobGUITheme-iOS7-Retina.zip
(14.19 KiB) Downloaded 244 times
LiveCode Development & Training : http://splash21.com

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Default object sizes

Post by Jellicle » Thu Jan 30, 2014 10:56 am

John, many thanks. The size is right but it's not displaying properly. Here's a screen shot.

Gerry
Attachments
photo.PNG.zip
(122.59 KiB) Downloaded 235 times
14" MacBook Pro
Former LiveCode developer.
Now recovering.

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Default object sizes

Post by splash21 » Thu Jan 30, 2014 11:38 am

I never tried applying the retina theme to existing controls - is that how the switch ended up displaying incorrectly? Trying it on my machine, the results aren't quite as bad as your screen shot, so here's a possible fix;

With the switch on the on position, edit the group and change the width of the graphic 'mgcBg2' to 58. Then change it's left property to match the graphic 'mgcButton' left property. (This works on my machine, but your image looks different).

Or - dragging on a switch when the retina theme is already active should result in a properly drawn control - if that works, the new control can be used instead.

The switch doesn't have a resize handler that redraws the control, so I'll add one and test switching between retina and non retina - hopefully that will solve the problem!

Do the other controls switch between retina / non retina OK on your machine?
LiveCode Development & Training : http://splash21.com

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Default object sizes

Post by splash21 » Thu Jan 30, 2014 11:47 am

Having another look - I think I've messed up the dimensions of the retina switch - it looks like it should have been wider :shock:
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “MobGUI”