Hi
I am working in a mobile project that will run on Iphone and Ipad using LC independence resizing + MobGui controls .
On Iphone the font size works fine in Input text, but when I try to run on Ipad the control resize in terms of width and height but the font keep small.
I tried to mark Auto Fit Property, but without success.
Input Text field auto Resize
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
Re: Input Text field auto Resize
Hi,
Change the textSize of the field to a bigger value or change the textSize of the text. You can do this in the IDE or by script:
Kind regards,
Mark
Change the textSize of the field to a bigger value or change the textSize of the text. You can do this in the IDE or by script:
Code: Select all
set the textSize of fld x to 24
set the textSize of char 1 to -1 of fld x to 36
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 16
- Joined: Tue Sep 03, 2013 8:33 pm
Re: Input Text field auto Resize
Hi Mark
Thank you for the answer! but I think that isn't the solution for my issue.
Mobgui use a native text control to implement input text and the way to change the size is using mobilecontrolset.
The LC independence resolution resize automatically all controls of my card including fonts too, just mobgui text input was not resized.
Kind regards,
Donizeti
Thank you for the answer! but I think that isn't the solution for my issue.
Mobgui use a native text control to implement input text and the way to change the size is using mobilecontrolset.
The LC independence resolution resize automatically all controls of my card including fonts too, just mobgui text input was not resized.
Kind regards,
Donizeti
Re: Input Text field auto Resize
Hi Donizeti,
If you can find out which ID MobGUI uses for the text input control, you can use the following syntax to change the text size:
More useful is probably the autoFit property:
but note that this works on iOS only.
Kind regards,
Mark
If you can find out which ID MobGUI uses for the text input control, you can use the following syntax to change the text size:
Code: Select all
mobileControlSet gMobileControlID,"textSize",36
Code: Select all
mobileControlSet gMobileControlID,"autoFit",true
mobileControlSet gMobileControlID,"minimumFontSize",10
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Input Text field auto Resize
Hi Donizeti, I'm abroad until 9th August. If you follow Mark's advice, everything should work
LiveCode Development & Training : http://splash21.com