Board index » cppbuilder » component member control manipulation
Craig
![]() CBuilder Developer |
Craig
![]() CBuilder Developer |
component member control manipulation2004-06-23 04:07:36 PM cppbuilder18 I have a pretty simple component that has a panel containing a groupbox with radio buttons within it. I would like to surface the groupboxes height and width properties so they can be changed in the object inspector. Whats the best way to do this? I can't find anything about this in the component writers guide. Craig |
Ralph Kazemier
![]() CBuilder Developer |
2004-06-23 04:37:31 PM
Re:component member control manipulation
"Craig" < XXXX@XXXXX.COM >wrote in message
QuoteI would like to surface the groupboxes class TMyControl: public TWhatEverBase { protected: void __fastcall SetGroupBoxHeight(int Value); int __fastcall GetGroupBoxHeight(); void __fastcall SetGroupBoxWidth(int Value); int __fastcall GetGroupBoxWidth(); __published: __property int GroupBoxHeight={ read=GetGroupBoxHeight, write=SetGroupBoxHeight }; __property int GroupBoxWidth={ read=GetGroupBoxWidth, write=SetGroupBoxWidth }; }; QuoteI can't find anything about this in the Ralph |
Craig
![]() CBuilder Developer |
2004-06-23 05:37:27 PM
Re:component member control manipulation
Cheers Ralph,
What I meant was I couldn't find anywhere it describes publishing nested components properties. Craig {smallsort} |
Ralph Kazemier
![]() CBuilder Developer |
2004-06-23 06:10:19 PM
Re:component member control manipulation
"Craig" < XXXX@XXXXX.COM >wrote in message
QuoteWhat I meant was I couldn't find anywhere it describes publishing nested class TMyControl: public TWhatEverBase { protected: TGroupBox* FGroupBox; TPersistent* __fastcall GetGroupBox() { return FGroupBox; } void __fastcall SetGroupBox(TPersistent* Value) { // not implemented } public: __fastcall TMyControl(TComponent* Owner); inherited(Owner), FGroupBox(new TGroupBox(this)) { } __published: __property TPersistent* GroupBox={read=GetGroupBox,write=SetGroupBox}; }; Ralph |