mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +02:00
clean up
git-svn-id: trunk@57268 -
This commit is contained in:
parent
90e098228c
commit
16b7c2ba09
@ -25,20 +25,6 @@ begin
|
||||
|
||||
FCanvas := TControlCanvas.Create;
|
||||
TControlCanvas(FCanvas).Control := Self;
|
||||
// ----PREVIOUS COMMENT-----
|
||||
// custom controls are painted by the LCL, not the interface, so enable
|
||||
// double buffering. It's up to the interface to do the actual
|
||||
// doublebuffering.
|
||||
// ----Micha's comment----
|
||||
// If double buffering has to be enabled before LCL can draw anything,
|
||||
// something is wrong. In the overridden Paint method you should always be
|
||||
// able to draw, independent of DoubleBuffered setting.
|
||||
//
|
||||
// Disable the switch by default:
|
||||
// 1) it greatly improves resizing speed (it doesn't feel like java then ;) )
|
||||
// 2) VCL compatible
|
||||
// 3) users of LCL should enable switch per control if they so desire
|
||||
DoubleBuffered:=false;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user