AndrewMozley
Programmer
Hope I am not trying to run before I can walk.
I would like to define a class (to be made available in my Form Controls Window) which would result in two controls being displayed on the form where they are placed. Perhaps a text box and a check box.
So, having placed this new control on the form, at run time I would like both the text box and the check box to appear on the form.
I have rather optimistically tried to do this by subclassing the text box, putting it into my baseclasses.vcx, and then opening the .vcx file and editing the methods memo field to create a Checkbox object and call its Init() method. How naive can I be - It does not work!
Has anyone successfully done this?
Thanks. Andrew
I would like to define a class (to be made available in my Form Controls Window) which would result in two controls being displayed on the form where they are placed. Perhaps a text box and a check box.
So, having placed this new control on the form, at run time I would like both the text box and the check box to appear on the form.
I have rather optimistically tried to do this by subclassing the text box, putting it into my baseclasses.vcx, and then opening the .vcx file and editing the methods memo field to create a Checkbox object and call its Init() method. How naive can I be - It does not work!
Has anyone successfully done this?
Thanks. Andrew