| View previous topic :: View next topic |
| Author |
Message |
jjiv Newbie
Joined: 11 Jan 2005 Posts: 4 Location: philadelphia
|
Posted: Mon Jan 31, 2005 6:54 pm Post subject: Help with DBLCLICK and CLICK Styles |
|
|
I’m having difficulty getting a bitlist item to differentiate between a click and dblclick event. It will recognize the bitlist click event, but not the dblclick. Is there additional code required to get the program to recognize a double click event?
Thanks for the assistance,
DIALOG ADD,BITLIST,MSTR1,32,56,424,72,,CLICK,DBLCLICK
:MSTR1DBLCLICK
info DBLCLICK
goto evloop
:MSTR1CLICK
info CLICK
goto evloop
The help documentation implies that multiple styles can be applied - CAN This Be done or is there a bug?
[/code] |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Feb 01, 2005 4:21 am Post subject: |
|
|
No it's not a bug, but a glitch in the messaging API. The left CLICK event is
generated twice and sent before the left DBLCLICK event is generated and
since VDS doesn't have a message que some of the messages get
bypassed. It is not, in my opinion, a good idea to use the CLICK and
DBLCLICK events together on the same control because of this behavior. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Feb 01, 2005 9:45 am Post subject: |
|
|
I don't in fact have a problem receiving both CLICK and DBLCLICK events. The main problem is, as you state Bill, that you get the CLICK event as well as (and before) the DBLCLICK event. In some cases, I have found it better to implement a test for double-click myself by doing a "wait 0.2" and then testing for a second click event. But in that case you need to be aware that with list elements a succession of click events can be generated if you scroll down the list, so it may be a good idea to test the index value. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
jjiv Newbie
Joined: 11 Jan 2005 Posts: 4 Location: philadelphia
|
Posted: Tue Feb 01, 2005 4:26 pm Post subject: |
|
|
| Thanks for the responses - It's a bit more complicated than I'd hoped(I'm new to VDS). And rather than spend time developing the logic for recognizing the difference between click and double click I'll change the gui usage. |
|
| Back to top |
|
 |
|