mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 00:39:26 +02:00
LCL: TControlCanvas: do not flood terminal about painting outside of paint event for widgetsets which actually supports painting outside of paint event.
git-svn-id: trunk@43443 -
This commit is contained in:
parent
0d9f12f364
commit
a54cbc502f
@ -79,7 +79,8 @@ begin
|
|||||||
inherited CreateHandle
|
inherited CreateHandle
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if ControlIsPainting then
|
if ControlIsPainting and
|
||||||
|
(WidgetSet.GetLCLCapability(lcCanDrawOutsideOnPaint) = LCL_CAPABILITY_NO) then
|
||||||
debugln(['TControlCanvas.CreateHandle WARNING: accessing the canvas of '+DbgSName(FControl)+' is not supported outside of paint message']);
|
debugln(['TControlCanvas.CreateHandle WARNING: accessing the canvas of '+DbgSName(FControl)+' is not supported outside of paint message']);
|
||||||
if (FDeviceContext = 0) then
|
if (FDeviceContext = 0) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user