Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoxDblClicked vs. BoxClicked event (Read 2560 times)
sebastian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 22nd, 2010
BoxDblClicked vs. BoxClicked event
Mar 22nd, 2010 at 6:33pm
Print Post  
Hi,

we are using FlowchartX V4.2.1 together with MFC.

We are experiencing the problem that both events (BoxDblClicked and BoxClicked) are called when the user double clicks on a box of the flowchart.

We map the events by:
[code]ON_EVENT(CMyView, AFX_IDW_PANE_FIRST, 20, CMyView::OnBoxClicked, VTS_DISPATCH VTS_I4 VTS_I4 VTS_I4)

ON_EVENT(CMyView, AFX_IDW_PANE_FIRST, 21, CMyView::OnBoxDblClicked, VTS_DISPATCH VTS_I4 VTS_I4 VTS_I4)[/code]

Is there a way to prevent flowchart from raising the BoxClicked event when a double-click is performed ?

Thanks,
Sebastian
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: BoxDblClicked vs. BoxClicked event
Reply #1 - Mar 22nd, 2010 at 7:06pm
Print Post  
Hi,

There isn't any way to prevent raising the event. You might differentiate the cases using a mouse button or modifier key. Otherwise you could run the click code from a timer started from the BoxClicked handler, and stop the timer if BoxDblClicked happens in the mean time.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sebastian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 22nd, 2010
Re: BoxDblClicked vs. BoxClicked event
Reply #2 - Mar 22nd, 2010 at 7:40pm
Print Post  
Thanks for the reply. The timer seems the only solution then.

Sebastian
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint