boucher@ireq.hydro.qc.ca (S.Boucher (8458)) (06/28/90)
I just started programming in Xview (X11R3, Openwindows 1.0)
a few weeks ago and I ran into problem with the scrolling list item.
The problem is that I have the O'Reilly & Associates vol 7, and the
subject of editing scrolling lists is not covered. In Appendix F it
is said that this feature is not currently supported in Xview. On the
other hand, when I create a scrolling list there is an editing
menu for the scrolling list.
What I would like to do is to get rid of the editing menu
while keeping the ability to select items in the list. I would
apreciate any hint that will help me get over my problem. Thank's
in advance.
Here's what I tried without any success:
.
.
.
/* Creation of a list */
list_item_L=(Panel_item)xv_create(panel, PANEL_LIST,
PANEL_NEXT_ROW, -1,
PANEL_LIST_DISPLAY_ROWS, 5,
PANEL_NOTIFY_PROC, tmp,
PANEL_EVENT_PROC, pep,
NULL);
.
.
.
Notify_value pep(item, event)
Panel_item item;
Event *event;
{
/* If event = ACTION_MENU then don't do anithing, return*/
if (event_action(event)==ACTION_MENU)
return XV_OK;
/*Else call the default event function */
panel_default_handle_event(item, event);
printf("item: %d event: %d\n", item, (int)event_action(event));
return XV_OK;
}
.
.
Email your answer directely to me, I will summarize and post
if enough people ask me to do so.
Stephane Boucher
Institut de Recherche d'Hydro-Quebec (IREQ)
1800 Montee Ste-Julie, Varennes
P. Quebec, Canada, J3X 1S1
boucher@ireq.hydro.qc.ca
--
Stephane Boucher
Institut de Recherche d'Hydro-Quebec
boucher@ireq.hydro.qc.ca