ask dialog removes selectedChunk in field

J. Landman Gay jacque at hyperactivesw.com
Wed Mar 1 16:11:03 EST 2006


Garrett Hylltun wrote:

> When I use the ask dialog to get some user input on changing some  
> hilighted text in a field, the ask dialog removes the focus from the  
> field, thus losing the ability to use the selectedChunk after the  
> dialog has been dismissed.
> 
> I did not know if there was any way within any of the properties to  
> stop this, such as setting traversalOn, so I put the selectedChunk  into 
> a variable before the ask dialog.
> 
> Other than what I have done to resolve this, is there some property  
> dealing with the ask dialog that might bypass the need to record the  
> selectedChunk before the ask dialog?

I think you've solved the problem in the best way. When a dialog is 
shown, the focus is removed from the original stack and the selection is 
lost; the workaround is exactly what you've done.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list