Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic C++Builder6,change default shape (Read 3629 times)
jerfly
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jan 29th, 2007
C++Builder6,change default shape
Jan 29th, 2007 at 4:23am
Print Post  
c++builder6
want change default shape
like:
wfFlowChart->DefaultShape=myshape

the code compile error:
[C++ Error] Unit1.cpp(132): E2247 'TFlowChart:CheesyefaultShape' is not accessible

how can i do?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: C++Builder6,change default shape
Reply #1 - Jan 29th, 2007 at 5:58am
Print Post  
Does C++ Builder support property syntax? In MFC the properties are imported as Get/Set method pairs - it might be the same in C++ Builder. I.e. try calling flowChart->SetDefaultShape().

Stoyan
  
Back to top
 
IP Logged
 
jerfly
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jan 29th, 2007
Re: C++Builder6,change default shape
Reply #2 - Jan 29th, 2007 at 6:06am
Print Post  
calling flowChart->SetDefaultShape() ????
SetDefaultShape() function not found.
  
Back to top
 
IP Logged
 
jerfly
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jan 29th, 2007
Re: C++Builder6,change default shape
Reply #3 - Jan 29th, 2007 at 6:09am
Print Post  
in  flowchartlib_ocx.h, found:
  __property Flowchartlib_tlb::IShapeTemplatePtr DefaultShape={ read=get_DefaultShape, stored=false };
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: C++Builder6,change default shape
Reply #4 - Jan 29th, 2007 at 6:33am
Print Post  
So C++ builder does not generate a setter for the DefaultShape property? Is there one for the Box.Shape property?
  
Back to top
 
IP Logged
 
jerfly
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jan 29th, 2007
Re: C++Builder6,change default shape
Reply #5 - Jan 29th, 2007 at 6:58am
Print Post  
the Box.Shape property is right,
but i want to set default shape for new  box.
in class PACKAGE TFlowChart , found

private:  void            __fastcall set_DefaultShape(Flowchartlib_tlb::IShapeTemplate* pVal/*[in]*/);
but i can not visit it.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: C++Builder6,change default shape
Reply #6 - Jan 29th, 2007 at 7:27am
Print Post  
I can't see a reason why it should be private. Try moving the method declaration to the public section of the header. And copy the Box.Shape property declaration to the FlowChart.DefaultShape one, so that C++ Builder lets you use the property assignment syntax.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint