Print Page | Close Window

MouseDown vs Click Event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13731
Printed Date: 17 May 2024 at 1:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MouseDown vs Click Event
Posted By: Auge_Ohr
Subject: MouseDown vs Click Event
Date Posted: 18 March 2009 at 11:14pm
hi,

Codejock does "fire" MouseDown(Button, Shift, x , y ) and have a Click Event

so now if i have both which are 1st ? or how to handle both Events ?

if Button = vbLeftButton .AND. myClick() = true
if Button = vbLeftButton .OR.   myClick() = true
if Button = vbLeftButton .AND. .NOT. myClick() = true

... and DblClick Event -> 2x MouseDown -> 4x action ?

-------------
greetings by OHR
Jimmy



Replies:
Posted By: Oleg
Date Posted: 19 March 2009 at 2:30am
Hi,
 
You have strange questions. to determine first - guess its easy to run and check it :)
You don't need both events. MouseDown in most cases is extended Click with points and shift information.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Auge_Ohr
Date Posted: 20 March 2009 at 5:17am
Hi,
Originally posted by oleg oleg wrote:

You have strange questions. to determine first - guess its easy to run and check it :)

... when both "fire" a Event "i" can not say which are 1st with my Xbase++ Debugger.
Originally posted by oleg oleg wrote:

You don't need both events. MouseDown in most cases is extended Click with points and shift information.

ok so Button = 1 are "left"-click -> Click Event ... and how DblClick Event ( <- 2x Button = 1) ?

i agree that my Question are "basic", but Xbase++ support for Codejock
have still a "leak" in activeX so i must find workaround for my "wrapper"

thx for support, i will come back with more Question


-------------
greetings by OHR
Jimmy


Posted By: Oleg
Date Posted: 20 March 2009 at 6:15am
Yeap DblClick is 2 left button click. 
if you need mouse down even better use MouseDown event. Sometimes Click also means some selection is changed by keyboard also.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net