Changeset 98 for Docking/CoolDocking/UCoolDockStyleTabs.pas
- Timestamp:
- Dec 9, 2010, 2:51:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockStyleTabs.pas
r97 r98 19 19 TabControl: TTabControl; 20 20 TabImageList: TImageList; 21 PopupMenuTabs: TPopupMenu;22 21 procedure TabControlMouseLeave(Sender: TObject); 23 22 procedure TabControlChange(Sender: TObject); … … 127 126 inherited; 128 127 129 (*// Tabs popup130 131 PopupMenuTabs := TPopupMenu.Create(Manager.DockSite);132 133 NewMenuItem := TMenuItem.Create(PopupMenuTabs);134 NewMenuItem.Caption := SDockStyle;135 PopupMenuTabs.Items.Add(NewMenuItem);136 137 NewMenuItem2 := TMenuItem.Create(NewMenuItem);138 NewMenuItem2.Caption := SDockList;139 NewMenuItem2.OnClick := PopupMenuListClick;140 NewMenuItem.Add(NewMenuItem2);141 142 NewMenuItem2 := TMenuItem.Create(NewMenuItem);143 NewMenuItem2.Caption := SDockTabs;144 NewMenuItem2.OnClick := PopupMenuTabsClick;145 NewMenuItem.Add(NewMenuItem2);146 147 NewMenuItem := TMenuItem.Create(PopupMenuTabs);148 NewMenuItem.Caption := SPosition;149 PopupMenuTabs.Items.Add(NewMenuItem);150 151 NewMenuItem2 := TMenuItem.Create(NewMenuItem);152 NewMenuItem2.Caption := SPositionAuto;153 NewMenuItem2.OnClick := PopupMenuPositionAutoClick;154 NewMenuItem.Add(NewMenuItem2);155 156 NewMenuItem2 := TMenuItem.Create(NewMenuItem);157 NewMenuItem2.Caption := SPositionTop;158 NewMenuItem2.OnClick := PopupMenuPositionTopClick;159 NewMenuItem.Add(NewMenuItem2);160 161 NewMenuItem2 := TMenuItem.Create(NewMenuItem);162 NewMenuItem2.Caption := SPositionLeft;163 NewMenuItem2.OnClick := PopupMenuPositionLeftClick;164 NewMenuItem.Add(NewMenuItem2);165 166 NewMenuItem2 := TMenuItem.Create(NewMenuItem);167 NewMenuItem2.Caption := SPositionBottom;168 NewMenuItem2.OnClick := PopupMenuPositionBottomClick;169 NewMenuItem.Add(NewMenuItem2);170 171 NewMenuItem2 := TMenuItem.Create(NewMenuItem);172 NewMenuItem2.Caption := SPositionRight;173 NewMenuItem2.OnClick := PopupMenuPositionRightClick;174 NewMenuItem.Add(NewMenuItem2);175 176 NewMenuItem := TMenuItem.Create(PopupMenuTabs);177 NewMenuItem.Caption := SCloseForm;178 NewMenuItem.OnClick := PopupMenuCloseClick;179 PopupMenuTabs.Items.Add(NewMenuItem);180 181 NewMenuItem := TMenuItem.Create(PopupMenuTabs);182 NewMenuItem.Caption := SRenameForm;183 NewMenuItem.OnClick := PopupMenuRenameClick;184 PopupMenuTabs.Items.Add(NewMenuItem);185 186 NewMenuItem := TMenuItem.Create(PopupMenuTabs);187 NewMenuItem.Caption := SUndock;188 NewMenuItem.OnClick := PopupMenuUndockClick;189 PopupMenuTabs.Items.Add(NewMenuItem);190 191 NewMenuItem := TMenuItem.Create(PopupMenuTabs);192 NewMenuItem.Caption := SCustomize;193 NewMenuItem.OnClick := PopupMenuCustomizeClick;194 PopupMenuTabs.Items.Add(NewMenuItem); *)195 196 128 TabImageList := TImageList.Create(TCoolDockManager(AManager).DockSite); //FDockSite); 197 129 with TabImageList do begin … … 206 138 Height := 24; 207 139 OnChange := TabControlChange; 208 PopupMenu := PopupMenuTabs;140 PopupMenu := TCoolDockManager(Manager).PopupMenu; 209 141 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseLeave := TabControlMouseLeave; 210 142 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseDown := TabControlMouseDown;
Note:
See TracChangeset
for help on using the changeset viewer.