Lee Jenkins wrote: > Felipe Monteiro de Carvalho wrote: >> On Sat, Apr 12, 2008 at 8:18 PM, Lee Jenkins <[EMAIL PROTECTED]> wrote: >> I would usually go for either having a fully custom drawn component, >> where I manage all paint, like here: >> >> http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Create_a_custom_control_which_draws_itself > > Won't I still run into the DrawText problem whether I am having whether I am > trying to draw on a TImage or the canvas of a descendant of TCustomControl? >
Nope, TCustomControl provides a canvas for you to draw everything your way and your style. TImage is a widgetset specific GTKImage or QtImage or Carbon Image or Win32 Image control (contained in comctrls.dll) component that renders itself according to the rules of the widgetset it belongs to. So some widgetset's TImage doesn't have some capabilities that some other widgetset's TImage have. In these cases its better to draw it yourself with a TCustomControl. I do many exotic and non-conventional controls by descending from TCustomControl since Delphi2 days. It obeys you 100% and not the widgetset it binds with. Its the same concept of fpGUI widgets. HTH, Funky Beast _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
