auvdeso@auvc15.tamu.edu (John DeSoi) (12/05/90)
I am trying to write my own event handler for a scrolling list widget. If it worked as expected, all I should have to do is provide a PANEL_EVENT_PROC. For example: list_item = xv_create(panel, PANEL_LIST, PANEL_LIST_STRINGS, "one", "two", NULL, PANEL_EVENT_PROC, list_item_event_proc, NULL); /* Handle events directed at the panel list */ void list_item_event_proc(Panel_item item, Event *event) { switch (event_action(event)) { case ACTION_SELECT: printf("action_select\n"); panel_default_handle_event(item, event); etc... With this configuration, list_item_event_proc does get called ("action_select" is printed), but the panel does not perform the default action (selecting the item of the list). Other panel objects work properly when handled this way, which is described on page 179 of the XView Programming Manual. The OpenWindows 2.0 mailtool does not use the default PANEL_LIST event-to-action mappings, so there must be some way to do this. Any insight would be greatly appreciated. +--------------+ Department of Computer Science | | (409) 845-9979, 845-4306 Texas A&M University | John DeSoi | INTERNET: desoi@cs.tamu.edu College Station, TX 77843-3112 | | BITNET: jfd5947@tamvenus +--------------+ -- +--------------+ Department of Computer Science | | (409) 845-9979, 845-4306 Texas A&M University | John DeSoi | INTERNET: desoi@cs.tamu.edu College Station, TX 77843-3112 | | BITNET: jfd5947@tamvenus +--------------+