Wouldn't it be neat...

Richard Gaskin ambassador at fourthworld.com
Tue Aug 23 12:20:30 EDT 2016


Bob Sneidar wrote:

 > On Aug 22, 2016, at 16:39 , Roger Guay wrote:
 >>
 >> Clicking a button should only deselect text when the button's
 >> traversalOn property is true.
 >
 > This is not true for me. I have a field and a popup menu, largely
 > because I could not get popup menus to work the way they did in LC6
 > (I never used 7). When I select text in the field, then popup the
 > menu, it deselects the text in the field. More specifically, it sets
 > the insertion point after the selected text.
 >
 > With traversal on in the popup menu, the field actually seems to lose
 > focus, because the insertion point is no longer in the field, and it
 > loses the focus border...

I use context menu frequently, so I double-checked this to see if there 
might have been a regression on that.  No luck, or only good luck, 
depending on one's bent - it only works for me.  Try this sample:

http://fourthworld.net/lc/poptest.livecode

One issue may be that in the latest IDE it's no longer possible to set 
the traversalOn from the Inspector for popup menu buttons:

http://quality.livecode.com/show_bug.cgi?id=18253

As the Inspector gets more fleshed out I find myself going back to my 
Props plugin, which shows everything (which may be overwhelming for 
some, but if you need seldom-used properties it can be handy):

http://fourthworld.net/revnet/devolution/4W_Props.rev.gz


 > ...BUT... the focusOut message does *NOT* get sent to the field!

Hmmm...bug or feature?

-- 
  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