iphoneControlSet fontSize not working as before

PystCat pystcat at gmail.com
Wed Oct 16 15:35:05 CEST 2013


Hmmm.... Yeah.  I'm going to have to agree with you on this one.... It looks like if you set the font size before the text then it ignores the size.  If you setup the control, then set the text and THEN set the font then everything works as expected.  Is this a bug or something new in iOS7...? Do we have to now do the control properties in a certain order..?

Paul

> On Oct 15, 2013, at 10:57 AM, Thomas McGrath III <mcgrath3 at mac.com> wrote:
> 
> I have a stack that uses 
>     iphoneControlSet "NameInput", "fontSize", "16"
> 
> But now it is not executing like it used to. It seems that if I put this in after creating all of my controls and setting their attributes and populating the multiline fields then it is executed and the text sizes are set accordingly. This was working fine the way it was in previous versions.
> 
> I have my code set up like this for about 15 cards:
> 
> on openCard
>     inputCreate -- creates all controls
>     readInputFields -- reads text from files
>     loadInputFields -- loads text into created fields from inputCreate
> end openCard
> 
> on inputCreate
>     inputDelete -- Check if already exist and if so delete so we are creating anew
>     iphoneControlCreate "multiline", "OneNameInput"
>     iphoneControlCreate "multiline", "TwoNameInput"
>     iphoneControlCreate "multiline", "ThreeNameInput"
>     iphoneControlCreate "multiline", "FourNameInput"
>     iphoneControlCreate "multiline", "FiveNameInput"
>     iphoneControlCreate "multiline", "SixNameInput"
>     iphoneControlCreate "multiline", "SevenNameInput"
>     iphoneControlCreate "multiline", "EightNameInput"
> 
> 
>     iphoneControlSet "OneNameInput", "rect", the rect of field "OneName"of this card
>     iphoneControlSet "OneNameInput", "visible", true
>     iphoneControlSet "OneNameInput", "fontSize", "16"
>     -- iphoneControlSet "OneNameInput", "fontName", "Arial Rounded MT Bold"
>     iphoneControlSet "OneNameInput", "clearButtonMode", "always"
>     iphoneControlSet "OneNameInput", "keyboardType", "default"
>     iphoneControlSet "OneNameInput", "returnKeyType", "default"
>     iphoneControlSet "OneNameInput", "autoCorrectionType", "yes"
>     iphoneControlSet "OneNameInput", "autoCapitalizationType", "sentences"
>     iphoneControlSet "OneNameInput", "scrollingEnabled", true
>     iphoneControlSet "OneNameInput", "vIndicator", true
>     iphoneControlSet "OneNameInput", "manageReturnKey", true
> 
>     -- etc. until all eight fields are created and their attributes are set.
> end inputCreate
> 
> 
> ------------
> Now if I add the fontSize 'again' after all the setup for each card then it is executed correctly like this:
> 
> on openCard
>     inputCreate -- creates all controls
>     readInputFields -- reads text from files
>     loadInputFields -- loads text into created fields from inputCreate
>     iphoneControlSet "OneNameInput", "fontSize", "16"
>     iphoneControlSet "TwoNameInput", "fontSize", "16"
>     iphoneControlSet "ThreeNameInput", "fontSize", "16"
>     iphoneControlSet "FourNameInput", "fontSize", "16" -- etc. until all Eight fields are accounted for
> end openCard
> 
> 
> This workaround was not necessary before in the 5 series or 6.0 but now it is not respected. Is it possible that multiline fields 'need' to have text in them first before the fontSize can be applied?
> 
> Has anyone else seen this behavior in LC 6.1.2 ???
> 
> Thank you,
> 
> Tom
> 
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> mcgrath3 at mac.com
> 
> 
> _______________________________________________
> 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