Article # 643, added by Geoworks, historical record
| first | previous | index | next | last |

Keypresses don't reach triggers from TextWithList object.



Q. I have the following dialog in my application and all the keypresses
   are eaten by the text object such that the triggers no longer work.
   What could be wrong here?

   @object TextWithListClass SearchBox = {
      GTXI_attrs = @default | GTA_SINGLE_LINE_TEXT;
      GTXI_maxLength = 100;
      HINT_DEFAULT_FOCUS;
      HINT_EXPAND_WIDTH_TO_FIT_PARENT;
      ATTR_GEN_TEXT_CUSTOM_FILTER = @SEARCH_TEXT_FILTER;
   }

   If I add a GenDynamicList to the dialog then the whole thing works
   fine. Taking out the text filter doesn't help. Taking out the text
   object does. Why?

A. Because you're using a TextWithListClass object and those needs to
   point to a list object. Otherwise it will throw away the keypresses
   that it doesn't want, rather than forwarding them on to the list.