home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!gatech!concert!accura_nc!news
- From: richard@aisg.com (Richard)
- Subject: single and double click
- Message-ID: <1992Sep9.192750.21036@aisg.com>
- Keywords: mouse singleclick doubleclick
- Sender: news@aisg.com
- Reply-To: richard@aisg.com (Richard)
- Organization: Accura Innovative Services Inc.
- Date: Wed, 9 Sep 92 19:27:50 GMT
- Lines: 48
-
- I used DevGuide to generate a list panel. I need to do a call back when
- the user
- did a single click and another call back when then user did a double click.
-
- I used doubleclick() from DevGuide to check if the event is a double
- click in the
- following codes
-
- int
- SOlistitem(item, string, client_data, op, row)
- Panel_item item;
- char *string;
- Xv_opaque client_data;
- Panel_list_op op;
- Event *event;
- int row;
- {
-
- .
- .
- .
- case PANEL_LIST_OP_SELECT:
- if (doubleclick(event))
- fputs("doubleclick\n", stderr);
- else
- fputs("singleclick\n", stderr);
- break;
- .
- .
- .
- }
-
- When a user did a double click, this function will get a single click
- event then
- a double click event.
-
- single click output:
- singleclick
-
- double click output:
- singleclick
- doubleclick
-
- Is there a way to distinquish double click from a single click.
-
- Any help is appreciated
-
- Richard Ching
-