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
Default object sizes
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
Default object sizes
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Default object sizes
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
MobGUITheme-iOS7-Retina.zip
- Attachments
-
- MobGUITheme-iOS7-Retina.zip
- (14.19 KiB) Downloaded 244 times
LiveCode Development & Training : http://splash21.com
Re: Default object sizes
John, many thanks. The size is right but it's not displaying properly. Here's a screen shot.
Gerry
Gerry
- Attachments
-
- photo.PNG.zip
- (122.59 KiB) Downloaded 235 times
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Default object sizes
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?
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
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Default object sizes
Having another look - I think I've messed up the dimensions of the retina switch - it looks like it should have been wider
LiveCode Development & Training : http://splash21.com