change font size

rev at armbase.com rev at armbase.com
Thu Jul 7 14:19:12 EDT 2005


Quoting Eric Chatonet <eric.chatonet at sosmartsoftware.com>:

> Hi "armbase" :-),

Hi Eric

Have you been over there? :-)

Thanks for the idea. I think I'll make a preferences pane for label size, font
and textsize now. Then an insert button for the user.

Certainly your tip will be usefull.

Cheers
Bob; Sunny Scotland
>
> Probably the text size of your field is already set.
> So you could try this:
>
> set the textsize of char 1 to -1 of field LabelName of stack tFileName \
> to field LabelNewTextsize of stack "Armbase"
>
> Hope this helps.
>
> Le 7 juil. 05 à 19:56, rev at armbase.com a écrit :
>
> > Hi All
> > I have a sript that inserts the name of a label on one stack, to
> > that of the
> > contents of a field on another stack. This works OK.
> >
> > I would like to change the font size (just like rev does in the
> > text size bit of
> > the inspector. I have a textfield (LabelNewTextsize) that the user
> > can type in a
> > value, I tried 24, and hoped that he text size would change to
> > 24pt. But no
> > luck.
> >
> > Any Ideas
> > Regards
> > Bob
> >
> > The script is below
> >
> > on mouseUp
> >   global tFileName
> >   set the text of field LabelName of stack tFileName to field
> > LabelNewName of
> > stack "Armbase"
> >   set the name of field LabelName of stack tFileName to field
> > LabelNewName of
> > stack "Armbase"
> >   set the textsize of field LabelName of stack tFileName to field
> > LabelNewTextsize of stack "Armbase"
> >   --the above is OK and copies the label and changes its name to
> > the contents of
> > a field  but the resize doesn't work
> > end mouseUp
>
> Best Regards from Paris,
>
> Eric Chatonet.
> ----------------------------------------------------------------
> So Smart Software
>
> For institutions, companies and associations
> Built-to-order applications: management, multimedia, internet, etc.
> Windows, Mac OS and Linux... With the French touch
>
> Free plugins and tutorials on my website
> ----------------------------------------------------------------
> Web site        http://www.sosmartsoftware.com/
> Email        eric.chatonet at sosmartsoftware.com/
> Phone        33 (0)1 43 31 77 62
> Mobile        33 (0)6 20 74 50 86
> ----------------------------------------------------------------
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>







More information about the use-livecode mailing list