James Chandler Jr wrote:
[skip]
I'm having trouble just finding a temporary workaround for this behavior
in Carbon LCL. My LineTo drawing into the TPaintBox, tracking the mouse,
is just not showing up at all, in spite of numerous experiments.
Ordinary drawing inside the TPaintBox.OnPaint is working fine, but the
'arbitrary drawing' during a Mouse Down or Mouse Move never makes it to
the screen.
If I can get 'arbitrary drawing' to work in the MouseDown/MouseMove
events, it might provide info about how to change LCL to more easily
show the drawing.
Here is the kind of simple drawing that is done in the TPaintBox.MouseMove:
NotesPB.Canvas.Pen.Mode := pmXOr;
NotesPB.Canvas.Pen.Style := psDot;
NotesPB.Canvas.Pen.Color := clBlack;
NotesPB.Canvas.Brush.Color := clwhite;
NotesPB.Canvas.MoveTo(CurMouseMoveBarTrackPixel, 0); //erase old line
[skip]
LCL supports drawing only on paint event. Yes, 'arbitrary drawing' is
possible with win32 and gtk widgetsets, but not with carbon and qt. The
only legal way for you is to move all that Canvas calls to OnPaint.
Best regards,
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives