Popup Menus with Text Selection?

Frank D. Engel, Jr. fde101 at fjrhome.net
Tue Oct 12 15:26:35 EDT 2004


This is not from a menu group, just a simple popup button.  There are 
three of them, and they are located below the edit field on the form.  
Roughly like this:

---------------------------------------
[                                     ]
[                                     ]
[                                     ]
[                                     ]
[                                     ]
---------------------------------------
Courier         10      plain     [---]    <-- a button for displaying 
a color picker

                          <Cancel>  <OK>

On Oct 12, 2004, at 3:21 PM, Mark Talluto wrote:

>
> On Oct 12, 2004, at 12:14 PM, Richard Gaskin wrote:
>
>> Frank D. Engel, Jr. wrote:
>>> On Oct 12, 2004, at 1:41 PM, Richard Gaskin wrote:
>>>>
>>>> I came in late on this thread:  what was the reason for turning off 
>>>> traversalOn?  Maybe there's another way to handle that which won't 
>>>> cripple your Win version if you're making one.
>>> Leaving traversalOn on causes text in a field to be deselected when 
>>> the menu is opened.  The whole purpose of the menu is to apply 
>>> font/size/style settings to the selected text.  Since the text is 
>>> deselected, there is no longer a selection to apply a 
>>> font/size/style to by the time the user selects a font/size/style to 
>>> apply.
>>> Also, the program is a graphical report editor; if users are blind, 
>>> then they will not be able to use the program anyway.
>>
>> Tabbing between controls is not just for blind people.  While the 
>> blind have no alternative, most proficient Win users are in the habit 
>> of doing that as a convenience (it minimizes the mouse-to-keyboard 
>> and keyboard-to-mouse time, which can be especially useful for apps 
>> that are heavy in text input).  Mac OS will eventually catch up in 
>> this regard. Steps have already been taking in this direction (see 
>> the "Turn on full keyboard access" option in the Keyboard & Mouse 
>> control panel in Panther).
>>
>> As far as traversalOn affecting text selection, this does prevent a 
>> good many useful application designs and should be flagged as a bug.  
>> I thought it had been.  Anyone have the Bugzilla number?
>>
>> The interim workaround is to trap mouseEnter in the menu control to 
>> store the selectedChunk, and restore it in the menuPick handler.
>>
>
> I have logged a bug that might be related to this: 
> <http://support.runrev.com/bugdatabase/show_bug.cgi?id=2210>
> This might be related to your issue.  Is your menu group located in 
> another stack (meaning it is not in the mainstack)?
>
> -- 
> Best regards,
> Mark Talluto
> http://www.canelasoftware.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-----------------------------------------------------------
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.
$


More information about the use-livecode mailing list