I found that there is a difference with the drawing of a custom bitmap brush, when I subclass TGraphicControl versus TCustomControl. The expected behaviour occurs when using the TCustomControl descendant. Each paint starts with the brush in the same position, no matter the location of the control (top-left). When using TGraphicControl however, it appears that the brush is always drawn relative to the top-left of the form. Same behaviour on D5 and DXE2. I hope anybody can offer a reasonable explanation, as to WHY this is happening. (Please note that I am NOT looking for a work-around, I have one.) …

Member Avatar
Member Avatar
+0 forum 1

The End.