Hi,
I think I need to create my own component based on TPageControl but not so sure of that
I'm writing tabs based text editor and I think it would be convinient to add to TTabSheet few custom properties i.e. :
FileName for storing file name of TSynEdit placed on current tab
IsSaved for storing information about state of TSynEdit placed on TabSheet (was it saved or not)
and maybe few other properties in future:)
Or maybe there is other solution? I'm not sure if I have to create custom TPageControl component or custom TTabSheet (never tried to create custom components either from scratch or based on existing one). And how to connect this things?
Well, I've created custom TTabSheet and added to it mentioned above properties, it compiled and it was succesfully added to Component Palatte, but that is no use since I can't add TTabSheet alone to the form
and I don't know how to test it.
How can I add my TMyTabSheet to TPageControl?
As I'm writing this post I'm also looking into TPageControl code. Now I think that I need to create TMyPageControl AND ALSO TMyTabSheet and add to TMyPageControl additional function AddMyTabSheet. Am I right?
Could anyone kindly point me what I need to look for? Or how to aproach this problem?