Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hosted ActiveX Controls (Read 1985 times)
alan_wood
YaBB Newbies
*
Offline



Posts: 16
Joined: Jul 17th, 2007
Hosted ActiveX Controls
Jul 23rd, 2007 at 5:24pm
Print Post  
Hi there.

I'm trying to get multiple ActiveX controls to be hosted in a flowchart and allow arrows to be drawn between them.  While it seems to be working, I've hit a bit of a snag.

I'm using the bhFlowChart behavior for the FlowChart, and it does exactly what I want to do for normal boxes.  However, for a hosted activex control, the mouse button seems to be trapped by the control and no arrow is allowed to be drawn to another activex control.

Is this something I have to fix in the control itself or is this expected behavior?

If it is expected, is there any combination of flags that I can set to make a hosted active x control work like a normal 'box'?

I tried setting the HostedAxActivation property, but that didn't seem to have any effect.

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hosted ActiveX Controls
Reply #1 - Jul 24th, 2007 at 5:33am
Print Post  
Hi,

FlowChartX subclasses only the top-most window of a hosted control, and processes WM_MOUSEDOWN messages sent to that top-most window. If your ActiveX control contains a child window that covers the parent one, you won't be able to draw arrows from inside the control. You can still start drawing arrows from outside the control, near the node borders.

You might try handling WM_MOUSEDOWN messages sent to the child windows and forward them to the parent; that will let FlowchartX detect them.

In addition, if your control captures the mouse, try how arrow drawing will work without capturing the mouse.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint