- Timestamp:
- Jan 14, 2007, 2:30:12 AM (18 years ago)
- Location:
- oup/current
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Main.dfm
r82 r83 70 70 Caption = 'Open level-&db ...' 71 71 ImageIndex = 1 72 ShortCut = 1645273 72 OnClick = menu_loaddbClick 74 73 end … … 109 108 end 110 109 object menu_binedit: TTBItem 111 Caption = ' &Binary .dat editor ...'110 Caption = 'Binary .&dat editor ...' 112 111 ImageIndex = 5 113 ShortCut = 1645 0112 ShortCut = 16452 114 113 OnClick = menu_bineditClick 115 114 end … … 332 331 ShowOnChange = True 333 332 TabOrder = 0 333 OnMouseMove = MDITabMouseMove 334 334 OnMouseUp = MDITabMouseUp 335 335 end -
oup/current/Main.pas
r82 r83 111 111 procedure ToolbarDockChanged(Sender: TObject); 112 112 procedure menu_loaddbClick(Sender: TObject); 113 procedure MDITabMouseMove(Sender: TObject; Shift: TShiftState; X, 114 Y: Integer); 113 115 private 114 116 public … … 213 215 214 216 215 216 217 217 procedure TForm_Main.MDITabMouseMove(Sender: TObject; Shift: TShiftState; X, 218 Y: Integer); 219 var 220 pt: TPoint; 221 tabIndex: Integer; 222 hint: String; 223 begin 224 pt.X := X; 225 pt.Y := Y; 226 tabIndex := MDITab.GetTabAtPos(pt); 227 228 if tabIndex >= 0 then 229 begin 230 if MDITab.MDIChildren[tabIndex] is TForm_ToolTemplate then 231 hint := 'Window: ' + MDITab.MDIChildren[tabIndex].Caption + #13+#10 + 232 'Selected File: ' + 233 TForm_ToolTemplate(MDITab.MDIChildren[tabIndex]).SelectedFile.FileName 234 else 235 hint := 'Window: ' + MDITab.MDIChildren[tabIndex].Caption; 236 if hint <> MDITab.Hint then 237 begin 238 MDITab.Hint := hint; 239 MDITab.ShowHint := True; 240 end; 241 end 242 else 243 begin 244 MDITab.ShowHint := False; 245 MDITab.Hint := ''; 246 end; 247 end; 218 248 219 249 procedure TForm_Main.MDITabMouseUp(Sender: TObject; Button: TMouseButton; … … 242 272 end; 243 273 end; 274 275 276 244 277 245 278 procedure TForm_Main.FormClose(Sender: TObject; var Action: TCloseAction); -
oup/current/Tools/Template.pas
r70 r83 61 61 FAllowedExts: String; 62 62 FAllowMultiSelect: Boolean; 63 FSelectedFile: TFileInfo; 63 64 procedure SetAllowedExts(exts: String); 64 65 procedure SetMultiSelect(allow: Boolean); … … 70 71 property AllowedExts: String read FAllowedExts write SetAllowedExts; 71 72 property AllowMultiSelect: Boolean read FAllowMultiSelect write SetMultiSelect; 73 property SelectedFile: TFileInfo read FSelectedFile; 72 74 end; 73 75 … … 203 205 inherited; 204 206 RecreateList; 207 FSelectedFile.ID := -1; 208 FSelectedFile.FileName := ''; 209 FSelectedFile.FileNameHex := ''; 205 210 if Length(ToolList) > 0 then 206 211 begin … … 267 272 fileid := OniDataConnection.ExtractFileID( 268 273 filelist.Items.Strings[filelist.ItemIndex]); 274 FSelectedFile := OniDataConnection.GetFileInfo(fileid); 269 275 if Assigned(FOnNewFileSelected) then 270 FOnNewFileSelected( OniDataConnection.GetFileInfo(fileid));276 FOnNewFileSelected(FSelectedFile); 271 277 end; 272 278 end;
Note:
See TracChangeset
for help on using the changeset viewer.