change textFont and TextSize of text

Serge Ségu serge.segu at gmail.com
Wed May 10 05:21:49 EDT 2006


Hello

Whan I convert a stack from  HyperCard to Revolution, size and font of 
fields are not always adapted
with the script below,  size and font of fields  are modified
but sometimes not the font and the size of text _inside_ the field, the 
  appearance of the text is the same
What is the just way  ?

go to stack myStack
   repeat with n=1 to the number of cds
     go to cd n
     repeat with i=1 to the number of controls
       put the name of control i into controlName
       if "field" is in controlName then
         set the textFont of control i to theFont
         set the textsize of control i to theSize
       end if
     end repeat
   end repeat

Thanks

Serge
-- 
Mac OS 10.3.9 Dreamcard 2.5.1




More information about the use-livecode mailing list