File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ TDelphiAIDevDefaultsQuestionsPopupMenu = class
28
28
procedure ClickFromString (const AStringClick: String);
29
29
procedure CreateItemCustomize ;
30
30
procedure CustomizeClick (Sender: TObject);
31
+ procedure AddSeparator ;
31
32
public
32
33
function ProcessClickInItem (AProc: TProc<Boolean, string>): TDelphiAIDevDefaultsQuestionsPopupMenu;
33
34
procedure CreateMenus (const APopupMenu: TPopupMenu);
@@ -121,6 +122,9 @@ procedure TDelphiAIDevDefaultsQuestionsPopupMenu.CreateMenuItemsList;
121
122
if FList.Count <= 0 then
122
123
Exit;
123
124
125
+ // SEPARATOR AFTER ITEM CUSTOMIZE
126
+ Self.AddSeparator;
127
+
124
128
LListOrder := TList<Integer>.Create;
125
129
try
126
130
for LItem in FList do
@@ -255,4 +259,17 @@ procedure TDelphiAIDevDefaultsQuestionsPopupMenu.ClickFromString(const AStringCl
255
259
FProcessClickInItem(StrToBoolDef(LCodeOnly, False), LQuestion);
256
260
end ;
257
261
262
+ procedure TDelphiAIDevDefaultsQuestionsPopupMenu.AddSeparator ;
263
+ var
264
+ LMenuItem: TMenuItem;
265
+ begin
266
+ LMenuItem := TMenuItem.Create(FPopupMenu);
267
+ LMenuItem.Name := ' C4DDefaultsQuestionsSeparator' + TUtils.IncInt(FCont).ToString;
268
+ LMenuItem.Caption := ' -' ;
269
+ LMenuItem.OnClick := nil ;
270
+ LMenuItem.Hint := ' ' ;
271
+ LMenuItem.ImageIndex := -1 ;
272
+ FPopupMenu.Items.Add(LMenuItem);
273
+ end ;
274
+
258
275
end .
You can’t perform that action at this time.
0 commit comments