Changeset 16 for trunk/UFormList.pas


Ignore:
Timestamp:
Jan 8, 2016, 5:09:58 PM (8 years ago)
Author:
chronos
Message:
  • Added: Preparation for filtering of non visible nodes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UFormList.pas

    r4 r16  
    1313
    1414  TFormList = class(TForm)
     15    CheckBoxAccessible: TCheckBox;
    1516    Label1: TLabel;
    1617    Memo1: TMemo;
     
    2829
    2930uses
    30   UFormMain;
     31  UFormMain, UKConfig;
    3132
    3233{$R *.lfm}
     
    3738var
    3839  List: TStringList;
     40  I: Integer;
    3941begin
    4042  try
     
    4345    Memo1.Lines.Clear;
    4446    FormMain.Config.TopNode.SaveToList(List);
     47    if CheckBoxAccessible.Checked then
     48    for I := List.Count - 1 to 0 do
     49      if not TMenuNode(List.Objects[I]).CanBeVisible then
     50        List.Delete(I);
    4551    List.Sort;
    4652    Memo1.Lines.Assign(List);
Note: See TracChangeset for help on using the changeset viewer.