spktoolbar: Improved handling of DoubleBuffered.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6203 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-02-16 16:46:53 +00:00
parent 235da117a9
commit cbd182c93d

View File

@ -558,7 +558,6 @@ begin
// Initialization of inherited property
Align := alTop;
DoubleBuffered := true; // required after Laz 1.9
//todo: not found in lcl
//inherited AlignWithMargins:=true;
@ -706,6 +705,10 @@ procedure TSpkToolbar.Loaded;
begin
inherited;
if not (csDesigning in ComponentState) then
DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0);
// force DoubleBuffered if not used in remote session
InternalBeginUpdate;
if FTabs.ListState = lsNeedsProcessing then