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

Minimize size on item group loses keypresses.



Q. If I use HINT_ITEM_GROUP_MINIMIZE_SIZE in the MainHotList below, all
   trigger keypresses are lost. How can I minimize the list size and
   still use triggers? This is on the Responder.

   @object GenDynamicListClass MainHotlist = {
        GIGI_destination = @MainHotlist;
        GDLI_numItems = 0;
   // this hint causes the problem
        HINT_ITEM_GROUP_MINIMIZE_SIZE;
        HINT_ITEM_GROUP_SCROLLABLE;
        HINT_ITEM_GROUP_SHOW_SELECTION_EVEN_WHEN_NOT_FOCUS;
   }

   @chunk TCHAR titleMainUrl[] = "Address";
   @object ComplexMonikerClass MainUrl = {
        ComplexMoniker = WWWGreyFrameClass;
        CMI_topText = @titleMainUrl;
        GI_comp = @MainUrlBox;
        HINT_EXPAND_WIDTH_TO_FIT_PARENT;
        HINT_PLACE_MONIKER_TO_RIGHT;
   }

   @object TextWithListClass MainUrlBox = {
        GTXI_attrs = @default | GTA_SINGLE_LINE_TEXT;
        GTXI_maxLength = GD_MAX_LEN_URL;
        TWLC_listObj = MainHotlist;
        HINT_DEFAULT_FOCUS;
        HINT_EXPAND_WIDTH_TO_FIT_PARENT;
   }
 
   Removing the hint makes the command triggers (F1-F4) work again. I 
   watched for MSG_META_KBD_CHAR and it goes to all the same objects with or 
   without the hint. It seems to be something in the way the dynamic list 
   handles the keypresses based on the hint.

A. MINIMIZE_SIZE causes dynamic lists to turn into popup lists, not to
   make them smaller, which sounds like what you're trying to do. When a
   list becomes a popup list it will eat the keypresses.