Palettes and the selectedObject

Richard Gaskin ambassador at fourthworld.com
Mon Nov 3 10:26:30 EST 2014


Graham Samuel wrote:
 > If I am keying in a field in an ordinary stack window and I stop
 > to do something on a palette, I had hoped that the focusedObject
 > would remain in the ordinary stack - however it turns out that
 > the focusedObject is now the visible card of the palette. Does
 > this mean that the previous focusedObject is lost and thus I
 > can't use a palette to do an insertion in the field in the ordinary
 > stack? Looks like it.

Are you using an editable text field in your palette, or just clicking 
buttons?

If just buttons remember to turn off the traversalOn property and you 
should be fine.

For editable fields it's a different story, since LiveCode currently 
maintains the xTalk tradition of allowing only one editable field at a 
time.  Would be nice to see that changed, but I imagine it's tricky, not 
just in engineering but in syntax.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list