iOS input field

Chipp Walters chipp at chipp.com
Thu Apr 18 23:10:30 EDT 2013


Yes and thanks. The challenge is making all this work for all platforms and
screensizes with one codebase WHILE taking advantage of Retina. So far, my
mobile resizer library is performing well for this.

Chipp Walters



On Thu, Apr 18, 2013 at 9:50 PM, Ralph DiMola <rdimola at evergreeninfo.net>wrote:

> On Android it is on top. On iOS it is on the bottom(another x-platform
> got-yah Tom, add to your list). I set the appropriate field control colors
> when I'm not in development mode to hide the LC field control(thanks to
> Jacque for the dev function) except for the border in my case. Don't need
> to
> do it for Android but I wanted one code base so I do it for both Android
> and
> iOS. I also put the native input control's data into the LC field object
> and
> use the field control for examining/processing the inputted data. This
> makes
> testing in development easy. Like you I make the native control name the
> same as the LC field control. This makes handlers in either a library or a
> behavior generic.
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On
> Behalf
> Of Chipp Walters
> Sent: Thursday, April 18, 2013 10:27 PM
> To: How to use LiveCode
> Subject: iOS input field
>
> Hey guys. I'm using the iOS input field and the following code...
>
>
> *if* gIsMobile *then*
>
>       *--> SET UP NATIVE CONTROLS*
>
>       *--> USERNAME FLD*
>
>       *answer* the rect of fld "fldUsername"
>
>       mobileControlCreate "input","mUsername"
>
>       mobileControlSet "mUsername","rect",the rect of fld "fldUsername"
>
>       mobileControlSet "mUsername","visible","true"
>
>       mobileControlSet "mUsername","fontSize","22"
>
> end if
>
>
> But the native input field is NOT on top of the fld "fldUsername" (which is
> disabled) but is many pixels below. Anyone know why this is?
>
> This happens on my device, but displays properly in the simulator. Both
> devices are Retina devices. Thanks for any help.
>
> I'm using LC 5.5.4
>
> Would it be better to use 6.0?
>
> Chipp Walters
> SVP, General Manager, IdeaWorks
>
> 512.577.9258 cell
> chipp at agilixIdeaWorks.com
> skype: chippwalters
>
> http://youtu.be/PZuK5_u2eyI
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list