File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ TUIRibbon = class(TWinControl, IUIApplication)
195195 procedure SetTextColor (const Value : TColor);
196196 protected
197197 procedure CreateWnd (); override;
198+ procedure DestroyWnd (); override;
198199 procedure AddCommand (const Command: TUICommand);
199200 function GetColor (const PropKey: TUIPropertyKey): TUIHsbColor;
200201 procedure SetColor (const PropKey: TUIPropertyKey; const Value : TUIHsbColor);
@@ -996,9 +997,18 @@ procedure TUIRibbon.Load();
996997procedure TUIRibbon.CreateWnd ;
997998begin
998999 inherited ;
1000+ if csRecreating in ControlState then
1001+ FFramework.Initialize(Parent.Handle, Self);
9991002 Load();
10001003end ;
10011004
1005+ procedure TUIRibbon.DestroyWnd ;
1006+ begin
1007+ inherited ;
1008+ FFramework.Destroy();
1009+ fLoaded := False;
1010+ end ;
1011+
10021012function TUIRibbon.LoadRibbonSettings (): boolean;
10031013var
10041014 lSettingsFileFullPath: string;
You can’t perform that action at this time.
0 commit comments