Popup Menus with Text Selection?

Frank D. Engel, Jr. fde101 at fjrhome.net
Mon Oct 11 17:13:00 EDT 2004


I am trying to set up a dialog box/sheet to be used for editing rich 
text (htmlText property of a selected field).  As part of the dialog, I 
am trying to include options to change the font, size, style, and color 
of selected portions of the text.

The option to change the color uses a buttion which pops up the OS' 
color picker/chooser, which works fine.

For font/size/style, I am using popup menus; however, these do not seem 
to work for me.  The selection process works fine, and my handler gets 
called...   The problem is that the text in the field I wish to edit is 
automatically deselected when I pop up the menu, and thus changing the 
attributes (set the textSize of the selectedChunk) does not work, since 
the chunk is no longer selected by the time I execute the statement.

Is there any way to keep a popup menu from deselecting text in a field 
on the same card & stack as the popup menu itself?

Thank you!

-----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$ 



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list