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


I love YaBB 1G - SP1!

Posts: 16
Joined: Mar 26th, 2006
"custom" box or table
Mar 26th, 2006 at 4:09pm
Print Post  
hi, just spent some days trying the flowchartx pro, using VC 7 , I want to do a box or table like this:
____________________
TITLE                                              
____________________|
text text text                              
text    text       text               
____________________|

a box with a "title" and below a text, I also tried a table, the problem is that if the text is too long there are no vertical scroll bar, and I don't want the box or table to be resizable.

please can it be done?

also I tried by creating a dialog with 2 edit controls, and using "BindToControl" , but it does not seem to work, thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #1 - Mar 29th, 2006 at 1:05pm
Print Post  
Hi,

Currently there is no text scrolling supported in boxes or tables. You could use an ActiveX control hosted in a box whose style = bsAxControl. E.g. you could host a rich edit control with enabled scrollbars to enable scrolling text. BindToControl should work if you create the text boxes as children of the FlowChart window.

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 #2 - Mar 30th, 2006 at 5:24am
Print Post  
thanks, I'm trying to use BindToControl with a dialog class window but it does not seem to work, this is the code:

BoxItem cbox=FlowChartM.CreateBox(20,20,200,100);


cbox.SetStyle(bsWindow);

CWnd cwndt;

cwndt.m_hWnd=FlowChartM.m_hWnd;

CDialogTEST wtest(&cwndt);
cbox.BindToControl(  ,(long)wscene.m_hWnd);

CDIALOGTEST is a simple dialog class with a edit control.
the VARIANT parameter gives errors, I'm not fluent in VC with activex controls, may be I'm doing something wrong,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #3 - Mar 30th, 2006 at 9:04am
Print Post  
Hi,

Does that line compiles at all ?

cbox.BindToControl(  ,(long)wscene.m_hWnd);

I think you should at least create a VARIANT variable and pass it as the first argument.

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 #4 - Mar 30th, 2006 at 3:03pm
Print Post  
sorry to copy the wrong code! if I create a VARIANT variable it crashes:

CDialogTEST wtest(&cwndt);
VARIANT var;
cbox.BindToControl( var ,(long)wscene.m_hWnd);

it crashes, as said, I never used before  a VARIANT variable, of course I'm not requesting a VC tutorial Smiley, only a method to use a edit control inside a box or a table of your excellent lib.

also I tried putting before a:
VariantInit(&var);
but it crashes also,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #5 - Mar 30th, 2006 at 3:29pm
Print Post  
Hi,

Could you email me your test project ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #6 - Mar 31st, 2006 at 6:18am
Print Post  
Hi,

That wscene.m_hWnd handle is NULL when you call BindToControl. What wscene is supposed to be ?

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 #7 - Apr 8th, 2006 at 11:58pm
Print Post  

I tried with Createwindow and passing a valid hwnd handle but still don't seems to work, may be you have a sample code for doing that.

it works with an activeX so I'm trying that way

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 #8 - Apr 10th, 2006 at 4:21am
Print Post  
I'm using the AxNodes sample provided, when using an activeX generated via ATL wizard it works fine , but when I create it using  the MFC ActiveX wizard I get the error "activeX control not instasnciated", is there any comptibility issues with a MFC activex?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #9 - Apr 10th, 2006 at 5:10am
Print Post  
If the MFC control requires a runtime- license key, you must assign that key to the FlowChart.AxLicenseKeys collection. E.g. in VB

fc.AxLicenseKeys("MFC.Control") = "MFC.Control key"
aBox.AxControlId = "MFC.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 #10 - Apr 11th, 2006 at 2:07am
Print Post  
I'm not using the runtime-license feature, just in vc 7.1:
-new project-> MFC activeX Control
-options: all default with no runtime license,

after compiling the default code generated, and registering, it works fine in the "activeX control test container" but with FlowchartX I get the error "activeX control not instanstiated", as said if I do the same with an ATL control wizard it works, but I need the MFC

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #11 - Apr 11th, 2006 at 6:05am
Print Post  
It seems ActiveX controls created with the new MFC no longer support IOleWindow, which is required by FlowChartX. Try implementing that yourself; here is an article that could help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_m...

The IOleWindow methods are already implemented by IOleInPlaceActiveObject which is supported by MFC controls, so you only need to add an INTERFACE_PART macro referring to IOleWindow as explained above.

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 #12 - Apr 14th, 2006 at 1:56am
Print Post  

will try, but my knowlege of activex, IOleWindow and so on in almost NULL,  I only have used asm,c,c++ and mfc. Using an activeX mfc control I can program in 2 days an activeX that is exactly what I need to use with yout lib.

I been looking to msnd page you pointed but sincerely understood nothing,  I tried to add something but got a lot of errors, so you mean that after creating the control using the MFC activex wizard, what macros should I add and where? do you have any base example?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #13 - Apr 14th, 2006 at 6:50am
Print Post  
A developer of ours will play with that. It might be easier FlowChartX to get the MFC control's HWND by querying for both IOleWindow and IOleInPlaceActiveObject instead of fixing the control. We'will send you an updated flowchart.dll in that case.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "custom" box or table
Reply #14 - Apr 14th, 2006 at 7:48am
Print Post  
Try this updated flowchart dll; it should be able to instantiate MFC ActiveX controls made with the new VS versions:

https://mindfusion.org/_temp/FlowChartPro.zip
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint