Hello
Hello,
I want to use a custom frame with only TGraphicControls on it...but It could be usefull to have a parent relationship between some of them...is there any existing project that add such a property to TGraphicControl ?
Thanks.
I want to use a custom frame with only TGraphicControls on it...but It could be usefull to have a parent relationship between some of them...is there any existing project that add such a property to TGraphicControl ?
Thanks.
Nope. You have to embed them in a TWinControl
ReplyDeleteYou can take TEsCustomControl for
ReplyDeletefor best results. github.com - FreeEsVclComponents
Peter Sokolov well, it's a TWinControl, I want to put some TGraphicControl in a doublebuffered TWinControl. So at Windows level there's only one HWnd and HDC.
ReplyDeleteit's probably possible to add a Parent property with TCustomControl.SetParentControl, then the Top/Left properties have to be relative to the parent, and the Paint method should fix the HDC with SetViewportOrgEx and IntersectClipRect ... but I dont think that it's possible on the existing component...to bad :)