Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

Advancing the cursor and focus.......

 [1/2] from: jfdutcher1958::yahoo::com at: 18-Jun-2004 11:09

Anton.....the latter of those two ideas shows great promise....consider this interesting behavior when implemented (I added a print statement for gaining knowledge): The focus advances upon keying the third character for any face (it requires a second keypress to actually place that character into the new face). The print statement shows a face/text value of two characters and a length also of two.......BUT...if one uses the tab key and moves through the faces (all are the same style) the displayed text in expands to 'three' characters as the tab comes to rest on them. Apparently the keystroke that caused the advance was 'lurking' in the background somewhere and records itself when the tab key retouches the field. Kind of bizarre ?? ********************************************************************** if 2 = length? face/text [ print [face/text length? face/text] focus ctx-text/next-field face ]

 [2/2] from: antonr:lexicon at: 21-Jun-2004 1:39

For that I recommend "eating" the event. That is, do not allow it to continue down the event handling chain to other faces. To do that, return none when tabbing, instead of return event from the engage function. Anton.