How do you scale a DataGrid template for Retina?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
donryan
Posts: 32
Joined: Mon Jul 23, 2012 1:09 pm

How do you scale a DataGrid template for Retina?

Post by donryan » Mon Aug 13, 2012 8:17 pm

I'm currently using tmControls to help with some iOS development. I'm building an app for the iPhone and need to support the standard and the retina resolutions. I've built a scaling routine the properly scales a DataGrid form object based on the device resolution. The problem is that the DataGrid Form Template does not scale with it.

I'm assuming I need to scale and position each of the template objects individually .... but I don't know how to do this. The basic object is called "Row Template", but when I issue the following commands, the simulator throws errors on all 4 lines:

Code: Select all

      set the width of group "Row Template" of me to tWidth
      set the height of group "Row Template" of me to 122
      set the top of group "Row Template" of me to 0
      set the left of group "Row Template" of me to 0
The "Row Template" object also contains additional fields that need to be scaled and repositioned (i.e. field1, field2, etc). But I can't get any of it to work. Any suggestions???
LiveCode 5.5.3 -- OS X 10.8.2

Post Reply