I have several questions about component creation
1.How do I overload the +-/* operators for components? I tried
ComponentName __fastcall operator+(ComponentName Value);
ComponentName* __fastcall operator+(ComponentName* Value);
ComponentName& __fastcall operator+(ComponentName& Value);
But when I test it I get the compile time error:Invalid Pointer Addition or something like that.
2.I have a property editor class that is registering fine but I still don't know how to get the actual values of the property being edited into the property editor.
3.My property editor class registers fine and I have overriden the Edit method right, but how do I make a dialog appear when Edit is invoked? I've managed to use the designer parameter that is passed to the constructor and use it's ContainerWindow property to add components to the form but I would have to run the program in order to make use of these components.
4.Is it possible to create events with extra parameters other than the Sender parameter?
5.Can someone help me specify the bitmap that is displayed
on the component pallette? There is only a half page of info int the help section and it still doesn't work when I follow everything it says. Any info would be appreciated.
Thanx in advance.
1.How do I overload the +-/* operators for components? I tried
ComponentName __fastcall operator+(ComponentName Value);
ComponentName* __fastcall operator+(ComponentName* Value);
ComponentName& __fastcall operator+(ComponentName& Value);
But when I test it I get the compile time error:Invalid Pointer Addition or something like that.
2.I have a property editor class that is registering fine but I still don't know how to get the actual values of the property being edited into the property editor.
3.My property editor class registers fine and I have overriden the Edit method right, but how do I make a dialog appear when Edit is invoked? I've managed to use the designer parameter that is passed to the constructor and use it's ContainerWindow property to add components to the form but I would have to run the program in order to make use of these components.
4.Is it possible to create events with extra parameters other than the Sender parameter?
5.Can someone help me specify the bitmap that is displayed
on the component pallette? There is only a half page of info int the help section and it still doesn't work when I follow everything it says. Any info would be appreciated.
Thanx in advance.