Setting more than 1 textStyle
With the following script it obviously sets the hilited word of a field to the 
chosen style. Select another style and it resets the word to plain text before 
applying the new style! 
How can I set the hilited word to more than one textStyle.... e.g Bold, Italic  
& Underlined or what ever combination?
Is there a way to lock the text first or ???????????????

on menuPick pWhich
  set the label of me to pWhich
  switch pWhich
  case "Plain"
    set the textStyle of the hilitedText to "plain"
    break
  case "Bold"
    set the textStyle of the hilitedText to "bold"
    break
  case "Italic"
    set the textStyle of the hilitedText to "italic"
    break
  case "Underline"
    set the textStyle of the hilitedText to "underline"
    break
  end switch
end menuPick

Thanx to all replies......Dwayne R

p.s 1 other question, why does the text overflow onto the selection arrow of an 
option menu if the text is longer than the button is wide? Try it out, load 
your fonts into a option menu (width 100). Yeah sure you can make the button 
wider but some imported font names are ridiculously long e.g (Do Not Eat This 
Fat Italic).

Cheers...
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to