Page Index Toggle Pages: 1 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) "custom" box or table (Read 18922 times)
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #15 - Apr 17th, 2006 at 3:55am
Print Post  

I've downloaded it but it does not seem to work, I've tried with controls generated with VC6 and VC7.1 wizard, just compiling the default code generated by the wizard,

the wizard generated activex controls work with the "activex test container" so they are properly compiled and registered

regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #16 - Apr 17th, 2006 at 6:26am
Print Post  
Have you registered the upated dll ? Make sure this registry key refers to the correct dll file path:

HKEY_CLASSES_ROOT\CLSID\{F025BF4E-4081-4c02-86E6-6602AEE846F6}\InprocServer32
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #17 - Apr 17th, 2006 at 7:35pm
Print Post  

I owerwrote the old flowchartx dll in Windows\system32 with the new ,  let me check if there is another copy anywhere


regards
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #18 - Apr 18th, 2006 at 6:29pm
Print Post  
hi,

finally it works, the problem was the ".1" at the end of the control name, the rest of the controls worked without that, don't know what, my activex experience is almost null as said,

fcx.SetAxControlId("AAXMFCT01.aaxmfct01Ctrl.1");

regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #19 - Apr 19th, 2006 at 5:57am
Print Post  
Hi,

Usually controls add to the registry a version independent ProgID, e.g.

AAXMFCT01.aaxmfct01Ctrl

which refers to the latest version ProgID, e.g.

AAXMFCT01.aaxmfct01Ctrl.1

Your .reg file might be missing that feature - try copying the registry structure from an ATL-wizard generated control.

Stoyan
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #20 - May 31st, 2006 at 5:17am
Print Post  
hi again, sorry for the delay, I've been very busy last weeks, it is a very good idea your lib does not have a time limited evaluation period, all the other libs I've tried did not work now due to evaluation period over.

I've tried the mfc activex with your demo application axnodes and another mfc dialog app I created. and works perfectly,

but I began the program which will use your lib in SDI mode, adding the control to the cview class, the mfc ax control is instantiated ok, but and as soon as I click on the mfc ax control the program freezes. Also I've tried used your demo app Net Sample MFC, simply adding a box with the mfc axtivex and it also freezes, should I check something?


thanks in advance

regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #21 - May 31st, 2006 at 9:39am
Print Post  
Could you run the project in Visual Studio, break it when it freezes and see what's there in the call stack ?

Stoyan
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #22 - Jun 1st, 2006 at 2:31am
Print Post  
the problem seems to be this funciont in the axcontrol that activates when clicking on the control:

OnMouseActivate(){
GetParent()->SendMessage(WM_MOUSEACTIVATE);

access violation sending that msg to GetParent window. In dialog mode there is no error but the function does not seem to do anything.

if I remove the function all is ok, but I'm trying that when clicking on the activex the box get selected , now to select it, I have to click exactly in the small border,


regards

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #23 - Jun 1st, 2006 at 5:31am
Print Post  
Try assigning a different value to the ControlActivation property. FlowChartX can subclass ActiveX controls hosted in boxes and detects mouse clicks in their top-most windows, as set in that property. If you have child windows in your control, you might re-post the mouse-down messages from child windows to the parent one to let FlowChartX detect them.

regards
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #24 - Jun 2nd, 2006 at 4:06am
Print Post  
this is what apears in Spy window, flowchartx creates a window of AtlAxWin71 class for each box with an activex, with the sampleax.axnode it does appear only this window with no child, but with the mfc activex it does apear with this two child:
AtlAxWin71
  |--> AfxOleControl70sd
                         |-->AfxWnd70sd

comparing the behaviour with sampleax, it seems your control window AtlAxWin71 is receiving the WM_MOUSEACTIVATE from the AfxOleControl70sd, but not the WM_SETFOCUS.

I'm trying to send the SETFOCUS msg to see if this is the problem, but the problems seems to be that I cannot get access to AfxOleControl70sd window in the mfc activex source

regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #25 - Jun 2nd, 2006 at 6:09am
Print Post  
FlowChartX does not handle the WM_SETFOCUS message posted to hosted controls. What do you need to do with it, change the selected box ?
  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #26 - Jun 3rd, 2006 at 6:02am
Print Post  
the problem is that when clickin on a unselected box hosting the mfc activex, the box does not get selected automatically by flowchart (with the ATL ax it does).  So to select it with the mouse you have to click exactly in the small box border. With spy the only difference I saw between the MFC and ATL ax controls was the WM_SETFOCUS msg.

Should I fire an event when clicking the ax and select the box with AddToSelection()? if so, plese do you have any c++ sample code of how to get event sink from an ax inside a flowchart box? thanks


  
Back to top
 
IP Logged
 
drevel
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
Re: "custom" box or table
Reply #27 - Jun 4th, 2006 at 6:22pm
Print Post  

all the issues are resolved , now the mfc ax seems to be working perfectly,

thank you for your support,

regards
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint