TIP: Using Unicode chars as icons

stephen barncard stephenREVOLUTION2 at barncard.com
Fri Oct 28 13:56:28 EDT 2011


Another trick is to create a polygon in script, I created a disclosure
triangle that requires no icon image. (looks good when rotated, too)

On 28 October 2011 09:54, Pete <pete at mollysrevenge.com> wrote:

> Thanks for reminding me of that Devin.  I had just started using characters
> from symbol fonts as button labels and turning them into images removes my
> last concern about doing that.
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
>
>
>
>
> On Fri, Oct 28, 2011 at 8:24 AM, Devin Asay <devin_asay at byu.edu> wrote:
>
> >
> > On Oct 28, 2011, at 3:48 AM, Michael Kristensen wrote:
> >
> > > Hi there
> > >
> > > Icons can be quite space-saving and also pleasing to the eye.
> > >
> > > But somtimes the hazzle of making the icon in a paint app and import it
> > into Livecode and keep it in a hidden place is to much.
> > >
> > > On a Mac there is a palette calle "Keyboard".
> > >
> > > It can show the thousands of chars/symbols in a Unicode font.
> > >
> > > Im sure you can find a symbol there that suits you.
> > >
> > > The trick is to add the char to the label of the button, not the name.
> > >
> > > Scale the char/icon by ajusting the textsize and color it as you
> please.
> >
> > Thanks for a nice tip, Michael. It is possible to take this one step
> > further, to address the possibility that the end user of your stack does
> not
> > have the same fonts installed on their system as you do. You can easily
> turn
> > any character from any font into an image without leaving LiveCode.
> Simply
> > create the character in a field, make it transparent and turn off its
> > border. Then issue the command:
> >
> >    import snapshot from field "whereTheSymbolIs"
> >
> > This creates an image object on the card that looks exactly like the
> field,
> > no third party image editor needed!
> >
> > Regards,
> >
> > Devin
> >
> >
> > Devin Asay
> > Humanities Technology and Research Support Center
> > Brigham Young University
> >
> >
> >
> >
> > _______________________________________________
> > 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>



More information about the use-livecode mailing list