File tree Expand file tree Collapse file tree 2 files changed +6
-22
lines changed
Expand file tree Collapse file tree 2 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ object FormPreview: TFormPreview
2323 TabOrder = 0
2424 object TabSheetAppModes: TTabSheet
2525 Caption = ' Application Modes'
26- ExplicitLeft = 0
27- ExplicitTop = 0
28- ExplicitWidth = 0
29- ExplicitHeight = 0
3026 object LabelAppModes: TLabel
3127 Left = 0
3228 Top = 0
@@ -55,10 +51,6 @@ object FormPreview: TFormPreview
5551 object TabSheetContextTabs: TTabSheet
5652 Caption = ' Contextual Tabs'
5753 ImageIndex = 1
58- ExplicitLeft = 0
59- ExplicitTop = 0
60- ExplicitWidth = 0
61- ExplicitHeight = 0
6254 object LabelContextTabs: TLabel
6355 Left = 0
6456 Top = 0
@@ -87,10 +79,6 @@ object FormPreview: TFormPreview
8779 object TabSheetContextPopups: TTabSheet
8880 Caption = ' Context Popups'
8981 ImageIndex = 2
90- ExplicitLeft = 0
91- ExplicitTop = 0
92- ExplicitWidth = 0
93- ExplicitHeight = 0
9482 object LabelContextPopups: TLabel
9583 Left = 0
9684 Top = 0
@@ -119,10 +107,6 @@ object FormPreview: TFormPreview
119107 object TabSheetColorize: TTabSheet
120108 Caption = ' Colorize'
121109 ImageIndex = 3
122- ExplicitLeft = 0
123- ExplicitTop = 0
124- ExplicitWidth = 0
125- ExplicitHeight = 0
126110 object GroupBoxSamples: TGroupBox
127111 Left = 3
128112 Top = 3
Original file line number Diff line number Diff line change @@ -134,23 +134,23 @@ implementation
134134procedure TFormPreview.CheckListBoxAppModesClickCheck (Sender: TObject);
135135var
136136 I, J: Integer;
137- AppModes: Cardinal ;
137+ AppModes: TRibbonApplicationModes ;
138138begin
139- AppModes := 0 ;
139+ AppModes := [] ;
140140 for I := 0 to CheckListBoxAppModes.Count - 1 do
141141 if (CheckListBoxAppModes.Checked[I]) then
142142 begin
143143 J := Integer(CheckListBoxAppModes.Items.Objects[I]);
144- AppModes := AppModes or ( 1 shl J);
144+ Include(AppModes, J);
145145 end ;
146146
147- if (AppModes = 0 ) then
147+ if (AppModes = [] ) then
148148 begin
149- AppModes := 1 ;
149+ Include( AppModes, 1 ) ;
150150 CheckListBoxAppModes.Checked[0 ] := True;
151151 end ;
152152
153- Ribbon.SetApplicationModes( AppModes) ;
153+ Ribbon.ApplicationModes := AppModes;
154154end ;
155155
156156procedure TFormPreview.CheckListBoxContextTabsClickCheck (Sender: TObject);
You can’t perform that action at this time.
0 commit comments