forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with DBLCLICK and CLICK Styles

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
jjiv
Newbie


Joined: 11 Jan 2005
Posts: 4
Location: philadelphia

PostPosted: Mon Jan 31, 2005 6:54 pm    Post subject: Help with DBLCLICK and CLICK Styles Reply with quote

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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Feb 01, 2005 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Feb 01, 2005 9:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jjiv
Newbie


Joined: 11 Jan 2005
Posts: 4
Location: philadelphia

PostPosted: Tue Feb 01, 2005 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group