Changeset 32 for trunk/Forms/UMainForm.pas
- Timestamp:
- Nov 24, 2011, 10:31:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r31 r32 326 326 if Assigned(TreeView1.Selected) then begin 327 327 NewItemListForm := TItemListForm.Create(Self); 328 NewItemListForm.SelectedObject.Id := Integer(TreeView1.Selected.Data); 328 NewItemListForm.SelectedObject.Load(Integer(TreeView1.Selected.Data)); 329 NewItemListForm.Caption := NewItemListForm.Caption + ' ' + NewItemListForm.SelectedObject.Name; 329 330 AddTabForm(NewItemListForm); 330 331 end; … … 384 385 NewTabSheet.UseDockManager := True; 385 386 NewTabSheet.Caption := Form.Caption; 387 PageControl1.TabIndex := PageControl1.PageCount - 1; 386 388 Form.DragKind := dkDock; 387 389 Form.DragMode := dmAutomatic; 390 Form.ManualDock(NewTabSheet); 388 391 Form.Show; 389 Form.ManualDock(NewTabSheet); 390 PageControl1.TabIndex := PageControl1.PageCount - 1; 392 393 // Workaround for not showing content of first tab after docking 394 NewTabSheet.Visible := False; 395 NewTabSheet.Visible := True; 391 396 end; 392 397
Note:
See TracChangeset
for help on using the changeset viewer.