Thanks
> I have a text file of Delphi code to create a TColorButton component that
> is a descendant of TButton. I use CodeGear Rad Studio C++ and don't
> understand enough Delphi or component creation to convert this to C++.
Why convert it at all? C++Builder can use Delphi-written components.
Gambit
I posted a reply earlier but I don't see it so I'm sending it
again. I'm using the web based client.
That's good news (of course it won't help me to learn Delphi).
Do I just add it to a test project in C++ as a .pas file?
Nate
> Do I just add it to a test project in C++ as a .pas file?
Yes. C++Builder has a Pascal compiler included for exactly that purpose.
Gambit
> Yes. C++Builder has a Pascal compiler included for exactly that purpose.
Add the .pas file to a package and then compile just that file. An .hpp
header file will be generated that you can then #include into your C++ code
where needed.
Gambit
>
>Add the .pas file to a package and then compile just that file. An .hpp
header file will be generated that you can then #include into your C++ code
>where needed.
>
I added it to a test project to see what the button looked like and it looks like the pre 2007 buttons with a frame, shadow, etc. I sure wish the code was documented. I've changed Rectangle to RoundRect but have more to do.
Regards Horst