Charles Szasz wrote:

> set the styledText of customProperties["uMyLabel"] of button
> "check1ps" to “bold"
>
> But that doesn’t not work.

The textStyle is a property of objects, or of chunks of text in a field, but the values stored in custom properties are just raw data, so they have no properties of any kind.

What you might consider instead is using custom property sets rather than properties, where each set is named after a button and contains a property named "bold", e.g.:

  set the customPropertySet of button "check1ps" to "My Button Name"
  set the uBold of this stack to true

To set the button's textStyle to bold:

  set the customPropertySet of button "check1ps" to tMyButtonVar
  set the textStyle of btn tMyButtonVar to (the uBold of btn "check1ps")

But unless the data must be physically bound to the button, it would be simpler to just use a multi-level array in a variable:

   put true into MyButtVarsA[tMyButtonName]["bold"]

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to