Changeset 49 for DockManager/Lazarus
- Timestamp:
- Sep 17, 2010, 4:16:15 PM (14 years ago)
- Location:
- DockManager/Lazarus
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus/Demo/Demo.lpi
r48 r49 35 35 </Item2> 36 36 </RequiredPackages> 37 <Units Count="3 1">37 <Units Count="32"> 38 38 <Unit0> 39 39 <Filename Value="Demo.lpr"/> 40 40 <IsPartOfProject Value="True"/> 41 41 <UnitName Value="Demo"/> 42 <EditorIndex Value=" 4"/>42 <EditorIndex Value="5"/> 43 43 <WindowIndex Value="0"/> 44 44 <TopLine Value="1"/> 45 45 <CursorPos X="7" Y="3"/> 46 <UsageCount Value="3 7"/>46 <UsageCount Value="38"/> 47 47 <Loaded Value="True"/> 48 48 <DefaultSyntaxHighlighter Value="Delphi"/> … … 57 57 <WindowIndex Value="0"/> 58 58 <TopLine Value="1"/> 59 <CursorPos X="20" Y=" 17"/>60 <UsageCount Value="3 7"/>59 <CursorPos X="20" Y="5"/> 60 <UsageCount Value="38"/> 61 61 <Loaded Value="True"/> 62 62 <LoadedDesigner Value="True"/> … … 66 66 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 67 67 <UnitName Value="Controls"/> 68 <EditorIndex Value=" 9"/>68 <EditorIndex Value="10"/> 69 69 <WindowIndex Value="0"/> 70 70 <TopLine Value="3840"/> 71 71 <CursorPos X="1" Y="3853"/> 72 <UsageCount Value="1 8"/>72 <UsageCount Value="19"/> 73 73 <Loaded Value="True"/> 74 74 </Unit2> … … 84 84 <Unit4> 85 85 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 86 <EditorIndex Value="1 2"/>86 <EditorIndex Value="13"/> 87 87 <WindowIndex Value="0"/> 88 88 <TopLine Value="1035"/> 89 89 <CursorPos X="1" Y="1048"/> 90 <UsageCount Value="1 7"/>90 <UsageCount Value="18"/> 91 91 <Loaded Value="True"/> 92 92 </Unit4> 93 93 <Unit5> 94 94 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 95 <EditorIndex Value="1 0"/>95 <EditorIndex Value="11"/> 96 96 <WindowIndex Value="0"/> 97 97 <TopLine Value="7631"/> 98 98 <CursorPos X="1" Y="7644"/> 99 <UsageCount Value="1 7"/>99 <UsageCount Value="18"/> 100 100 <Loaded Value="True"/> 101 101 </Unit5> … … 174 174 <ResourceBaseClass Value="Form"/> 175 175 <UnitName Value="UDockForm"/> 176 <EditorIndex Value="1 4"/>176 <EditorIndex Value="15"/> 177 177 <WindowIndex Value="0"/> 178 178 <TopLine Value="1"/> 179 179 <CursorPos X="47" Y="8"/> 180 <UsageCount Value="3 6"/>180 <UsageCount Value="37"/> 181 181 <Loaded Value="True"/> 182 182 <LoadedDesigner Value="True"/> … … 202 202 <Filename Value="E:\Projekty jine\Lazarus\examples\anchordocking\anchordocking.pas"/> 203 203 <UnitName Value="AnchorDocking"/> 204 <EditorIndex Value="1 3"/>204 <EditorIndex Value="14"/> 205 205 <WindowIndex Value="0"/> 206 206 <TopLine Value="4754"/> 207 207 <CursorPos X="5" Y="4763"/> 208 <UsageCount Value="1 7"/>208 <UsageCount Value="18"/> 209 209 <Loaded Value="True"/> 210 210 <DefaultSyntaxHighlighter Value="Delphi"/> … … 224 224 <EditorIndex Value="1"/> 225 225 <WindowIndex Value="0"/> 226 <TopLine Value=" 1"/>227 <CursorPos X=" 39" Y="19"/>228 <UsageCount Value="3 1"/>226 <TopLine Value="216"/> 227 <CursorPos X="15" Y="218"/> 228 <UsageCount Value="32"/> 229 229 <Loaded Value="True"/> 230 230 <DefaultSyntaxHighlighter Value="Delphi"/> … … 233 233 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 234 234 <UnitName Value="ExtCtrls"/> 235 <EditorIndex Value=" 2"/>235 <EditorIndex Value="3"/> 236 236 <WindowIndex Value="0"/> 237 237 <TopLine Value="1183"/> 238 238 <CursorPos X="24" Y="1199"/> 239 <UsageCount Value="1 0"/>239 <UsageCount Value="11"/> 240 240 <Loaded Value="True"/> 241 241 </Unit21> … … 250 250 <Unit23> 251 251 <Filename Value="E:\Programy\Lazarus\lcl\include\dragmanager.inc"/> 252 <EditorIndex Value=" 7"/>252 <EditorIndex Value="8"/> 253 253 <WindowIndex Value="0"/> 254 254 <TopLine Value="553"/> 255 255 <CursorPos X="18" Y="574"/> 256 <UsageCount Value="1 3"/>256 <UsageCount Value="14"/> 257 257 <Loaded Value="True"/> 258 258 </Unit23> … … 267 267 <Filename Value="E:\Programy\Lazarus\lcl\widgetset\wscontrols.pp"/> 268 268 <UnitName Value="WSControls"/> 269 <EditorIndex Value="1 1"/>269 <EditorIndex Value="12"/> 270 270 <WindowIndex Value="0"/> 271 271 <TopLine Value="267"/> 272 272 <CursorPos X="1" Y="269"/> 273 <UsageCount Value="1 5"/>273 <UsageCount Value="16"/> 274 274 <Loaded Value="True"/> 275 275 </Unit25> … … 277 277 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 278 278 <UnitName Value="ComCtrls"/> 279 <EditorIndex Value=" 3"/>279 <EditorIndex Value="4"/> 280 280 <WindowIndex Value="0"/> 281 281 <TopLine Value="545"/> 282 282 <CursorPos X="3" Y="558"/> 283 <UsageCount Value="1 5"/>283 <UsageCount Value="16"/> 284 284 <Loaded Value="True"/> 285 285 </Unit26> … … 287 287 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 288 288 <UnitName Value="Forms"/> 289 <EditorIndex Value=" 8"/>289 <EditorIndex Value="9"/> 290 290 <WindowIndex Value="0"/> 291 291 <TopLine Value="687"/> 292 292 <CursorPos X="14" Y="700"/> 293 <UsageCount Value="1 4"/>293 <UsageCount Value="15"/> 294 294 <Loaded Value="True"/> 295 295 </Unit27> … … 297 297 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 298 298 <UnitName Value="Themes"/> 299 <EditorIndex Value=" 5"/>299 <EditorIndex Value="6"/> 300 300 <WindowIndex Value="0"/> 301 301 <TopLine Value="550"/> 302 <CursorPos X=" 13" Y="556"/>303 <UsageCount Value="1 1"/>302 <CursorPos X="31" Y="556"/> 303 <UsageCount Value="12"/> 304 304 <Loaded Value="True"/> 305 305 </Unit28> … … 315 315 <Filename Value="..\..\..\ExceptionLogger\UExceptionLogger.pas"/> 316 316 <UnitName Value="UExceptionLogger"/> 317 <EditorIndex Value=" 6"/>317 <EditorIndex Value="7"/> 318 318 <WindowIndex Value="0"/> 319 319 <TopLine Value="34"/> 320 320 <CursorPos X="1" Y="56"/> 321 <UsageCount Value="11"/> 322 <Loaded Value="True"/> 323 <DefaultSyntaxHighlighter Value="Delphi"/> 324 </Unit30> 325 <Unit31> 326 <Filename Value="E:\Programy\Lazarus\lcl\customtimer.pas"/> 327 <UnitName Value="CustomTimer"/> 328 <EditorIndex Value="2"/> 329 <WindowIndex Value="0"/> 330 <TopLine Value="68"/> 331 <CursorPos X="3" Y="77"/> 321 332 <UsageCount Value="10"/> 322 333 <Loaded Value="True"/> 323 <DefaultSyntaxHighlighter Value="Delphi"/> 324 </Unit30> 334 </Unit31> 325 335 </Units> 326 <JumpHistory Count="30" HistoryIndex="2 9">336 <JumpHistory Count="30" HistoryIndex="28"> 327 337 <Position1> 328 338 <Filename Value="..\UCustomDockManager.pas"/> 329 <Caret Line=" 360" Column="1" TopLine="354"/>339 <Caret Line="242" Column="20" TopLine="224"/> 330 340 </Position1> 331 341 <Position2> 332 <Filename Value=" ..\UCustomDockManager.pas"/>333 <Caret Line=" 361" Column="1" TopLine="354"/>342 <Filename Value="UMainForm.pas"/> 343 <Caret Line="61" Column="26" TopLine="47"/> 334 344 </Position2> 335 345 <Position3> 336 <Filename Value=" ..\UCustomDockManager.pas"/>337 <Caret Line=" 362" Column="1" TopLine="354"/>346 <Filename Value="UMainForm.pas"/> 347 <Caret Line="17" Column="18" TopLine="1"/> 338 348 </Position3> 339 349 <Position4> 340 <Filename Value=" ..\UCustomDockManager.pas"/>341 <Caret Line=" 363" Column="1" TopLine="354"/>350 <Filename Value="UMainForm.pas"/> 351 <Caret Line="18" Column="23" TopLine="1"/> 342 352 </Position4> 343 353 <Position5> 344 <Filename Value=" ..\UCustomDockManager.pas"/>345 <Caret Line=" 369" Column="1" TopLine="354"/>354 <Filename Value="UMainForm.pas"/> 355 <Caret Line="17" Column="20" TopLine="1"/> 346 356 </Position5> 347 357 <Position6> 348 358 <Filename Value="..\UCustomDockManager.pas"/> 349 <Caret Line=" 380" Column="1" TopLine="367"/>359 <Caret Line="167" Column="44" TopLine="157"/> 350 360 </Position6> 351 361 <Position7> 352 362 <Filename Value="..\UCustomDockManager.pas"/> 353 <Caret Line=" 381" Column="1" TopLine="367"/>363 <Caret Line="2" Column="52" TopLine="1"/> 354 364 </Position7> 355 365 <Position8> 356 <Filename Value=" UMainForm.pas"/>357 <Caret Line=" 61" Column="1" TopLine="47"/>366 <Filename Value="..\UCustomDockManager.pas"/> 367 <Caret Line="108" Column="5" TopLine="83"/> 358 368 </Position8> 359 369 <Position9> 360 <Filename Value=" UMainForm.pas"/>361 <Caret Line=" 62" Column="1" TopLine="47"/>370 <Filename Value="..\UCustomDockManager.pas"/> 371 <Caret Line="106" Column="45" TopLine="90"/> 362 372 </Position9> 363 373 <Position10> 364 <Filename Value=" UMainForm.pas"/>365 <Caret Line="63 " Column="1" TopLine="47"/>374 <Filename Value="..\UCustomDockManager.pas"/> 375 <Caret Line="635" Column="1" TopLine="626"/> 366 376 </Position10> 367 377 <Position11> 368 <Filename Value=" UMainForm.pas"/>369 <Caret Line=" 64" Column="1" TopLine="47"/>378 <Filename Value="..\UCustomDockManager.pas"/> 379 <Caret Line="100" Column="40" TopLine="97"/> 370 380 </Position11> 371 381 <Position12> 372 <Filename Value=" UMainForm.pas"/>373 <Caret Line=" 60" Column="64" TopLine="47"/>382 <Filename Value="..\UCustomDockManager.pas"/> 383 <Caret Line="11" Column="72" TopLine="1"/> 374 384 </Position12> 375 385 <Position13> 376 <Filename Value=" ..\UCustomDockManager.pas"/>377 <Caret Line=" 90" Column="62" TopLine="77"/>386 <Filename Value="UMainForm.pas"/> 387 <Caret Line="17" Column="20" TopLine="1"/> 378 388 </Position13> 379 389 <Position14> 380 <Filename Value=" ..\UCustomDockManager.pas"/>381 <Caret Line=" 359" Column="1" TopLine="354"/>390 <Filename Value="UMainForm.pas"/> 391 <Caret Line="5" Column="20" TopLine="1"/> 382 392 </Position14> 383 393 <Position15> 384 394 <Filename Value="..\UCustomDockManager.pas"/> 385 <Caret Line=" 360" Column="1" TopLine="354"/>395 <Caret Line="22" Column="41" TopLine="13"/> 386 396 </Position15> 387 397 <Position16> 388 398 <Filename Value="..\UCustomDockManager.pas"/> 389 <Caret Line=" 361" Column="1" TopLine="354"/>399 <Caret Line="155" Column="47" TopLine="141"/> 390 400 </Position16> 391 401 <Position17> 392 402 <Filename Value="..\UCustomDockManager.pas"/> 393 <Caret Line=" 362" Column="1" TopLine="354"/>403 <Caret Line="158" Column="21" TopLine="145"/> 394 404 </Position17> 395 405 <Position18> 396 406 <Filename Value="..\UCustomDockManager.pas"/> 397 <Caret Line=" 363" Column="1" TopLine="354"/>407 <Caret Line="152" Column="30" TopLine="145"/> 398 408 </Position18> 399 409 <Position19> 400 410 <Filename Value="..\UCustomDockManager.pas"/> 401 <Caret Line=" 242" Column="20" TopLine="224"/>411 <Caret Line="72" Column="29" TopLine="60"/> 402 412 </Position19> 403 413 <Position20> 404 <Filename Value=" UMainForm.pas"/>405 <Caret Line=" 61" Column="26" TopLine="47"/>414 <Filename Value="..\UCustomDockManager.pas"/> 415 <Caret Line="586" Column="3" TopLine="584"/> 406 416 </Position20> 407 417 <Position21> 408 <Filename Value=" UMainForm.pas"/>409 <Caret Line=" 17" Column="18" TopLine="1"/>418 <Filename Value="..\UCustomDockManager.pas"/> 419 <Caret Line="499" Column="66" TopLine="486"/> 410 420 </Position21> 411 421 <Position22> 412 <Filename Value=" UMainForm.pas"/>413 <Caret Line=" 18" Column="23" TopLine="1"/>422 <Filename Value="..\UCustomDockManager.pas"/> 423 <Caret Line="56" Column="65" TopLine="32"/> 414 424 </Position22> 415 425 <Position23> 416 <Filename Value=" UMainForm.pas"/>417 <Caret Line="1 7" Column="20" TopLine="1"/>426 <Filename Value="..\UCustomDockManager.pas"/> 427 <Caret Line="108" Column="77" TopLine="88"/> 418 428 </Position23> 419 429 <Position24> 420 430 <Filename Value="..\UCustomDockManager.pas"/> 421 <Caret Line=" 167" Column="44" TopLine="157"/>431 <Caret Line="83" Column="44" TopLine="65"/> 422 432 </Position24> 423 433 <Position25> 424 434 <Filename Value="..\UCustomDockManager.pas"/> 425 <Caret Line=" 2" Column="52" TopLine="1"/>435 <Caret Line="108" Column="20" TopLine="94"/> 426 436 </Position25> 427 437 <Position26> 428 438 <Filename Value="..\UCustomDockManager.pas"/> 429 <Caret Line=" 108" Column="5" TopLine="83"/>439 <Caret Line="515" Column="11" TopLine="501"/> 430 440 </Position26> 431 441 <Position27> 432 442 <Filename Value="..\UCustomDockManager.pas"/> 433 <Caret Line="1 06" Column="45" TopLine="90"/>443 <Caret Line="112" Column="58" TopLine="91"/> 434 444 </Position27> 435 445 <Position28> 436 <Filename Value=" ..\UCustomDockManager.pas"/>437 <Caret Line=" 635" Column="1" TopLine="626"/>446 <Filename Value="UMainForm.pas"/> 447 <Caret Line="5" Column="20" TopLine="1"/> 438 448 </Position28> 439 449 <Position29> 440 450 <Filename Value="..\UCustomDockManager.pas"/> 441 <Caret Line="1 00" Column="40" TopLine="97"/>451 <Caret Line="175" Column="24" TopLine="165"/> 442 452 </Position29> 443 453 <Position30> 444 <Filename Value=" ..\UCustomDockManager.pas"/>445 <Caret Line=" 11" Column="72" TopLine="1"/>454 <Filename Value="E:\Programy\Lazarus\lcl\customtimer.pas"/> 455 <Caret Line="77" Column="3" TopLine="68"/> 446 456 </Position30> 447 457 </JumpHistory> -
DockManager/Lazarus/Demo/UMainForm.lfm
r48 r49 27 27 Align = alBottom 28 28 Anchors = [akTop, akLeft, akRight, akBottom] 29 ClientHeight = 387 30 ClientWidth = 576 29 31 DockSite = True 30 32 TabOrder = 1 33 object TabControl1: TTabControl 34 Left = 191 35 Height = 150 36 Top = 75 37 Width = 200 38 TabOrder = 0 39 TabPosition = tpLeft 40 TabStop = False 41 end 31 42 end 32 43 object CustomDockMaster1: TCustomDockMaster -
DockManager/Lazarus/Demo/UMainForm.pas
r48 r49 17 17 CustomDockMaster1: TCustomDockMaster; 18 18 Panel1: TPanel; 19 TabControl1: TTabControl; 19 20 procedure Button1Click(Sender: TObject); 20 21 procedure FormCreate(Sender: TObject); … … 57 58 ConjoinedDockForm1 := TCustomDockManager(Panel1.DockManager).CreateContainer(alRight); 58 59 ConjoinedDockForm1.Name := 'Model';; 60 TCustomDockManager(ConjoinedDockForm1.Panel.DockManager).TabsPos := hpLeft; 59 61 //ConjoinedDockForm1.ManualDock(Panel1); 60 62 TCustomDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs; -
DockManager/Lazarus/UCustomDockManager.pas
r48 r49 33 33 TDockClientPanel = class(TPanel) 34 34 private 35 FAutoHide: Boolean; 36 FHeaderPos: THeaderPos; 35 37 FShowHeader: Boolean; 38 procedure SetAutoHide(const AValue: Boolean); 39 procedure SetHeaderPos(const AValue: THeaderPos); 36 40 procedure SetShowHeader(const AValue: Boolean); 37 41 public … … 50 54 procedure ResizeExecute(Sender: TObject); 51 55 property ShowHeader: Boolean read FShowHeader write SetShowHeader; 56 property AutoHide: Boolean read FAutoHide write SetAutoHide; 57 property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos; 52 58 end; 53 59 … … 56 62 TCustomDockManager = class(TDockManager) 57 63 private 64 FMoveDuration: Integer; 65 FTabsPos: THeaderPos; 66 Timer1: TTimer; 58 67 PopupMenu1: TPopupMenu; 59 68 FDockStyle: TDockStyle; … … 66 75 DropCtl: TControl); 67 76 procedure SetDockStyle(const AValue: TDockStyle); 77 procedure SetMoveDuration(const AValue: Integer); 78 procedure SetTabsPos(const AValue: THeaderPos); 68 79 procedure UpdateClientSize; 69 80 procedure TabControlChange(Sender: TObject); 70 81 procedure PopupMenuListClick(Sender: TObject); 71 82 procedure PopupMenuTabsClick(Sender: TObject); 83 procedure PopupMenuCloseClick(Sender: TObject); 84 procedure PopupMenuRenameClick(Sender: TObject); 85 procedure Timer1Timer(Sender: TObject); 72 86 public 73 87 constructor Create(ADockSite: TWinControl); override; … … 95 109 function CreateContainer(InsertAt: TAlign): TConjoinDockForm; 96 110 property DockStyle: TDockStyle read FDockStyle write SetDockStyle; 111 property MoveDuration: Integer read FMoveDuration write SetMoveDuration; 112 property TabsPos: THeaderPos read FTabsPos write SetTabsPos; 97 113 end; 98 114 … … 119 135 implementation 120 136 137 resourcestring 138 SDockStyle = 'Style'; 139 SDockList = 'List'; 140 SDockTabs = 'Tabs'; 141 SCloseForm = 'Close'; 142 SRenameForm = 'Rename'; 143 144 121 145 procedure Register; 122 146 begin … … 142 166 var 143 167 NewMenuItem: TMenuItem; 168 NewMenuItem2: TMenuItem; 144 169 begin 145 170 inherited Create(ADockSite); … … 147 172 FDockPanels := TObjectList.Create; 148 173 PopupMenu1 := TPopupMenu.Create(FDockSite); 174 175 Timer1 := TTimer.Create(nil); 176 Timer1.Enabled := False; 177 Timer1.OnTimer := Timer1Timer; 178 149 179 NewMenuItem := TMenuItem.Create(PopupMenu1); 150 NewMenuItem.Caption := 'List';180 NewMenuItem.Caption := SDockStyle; 151 181 PopupMenu1.Items.Add(NewMenuItem); 152 NewMenuItem.OnClick := PopupMenuListClick; 182 183 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 184 NewMenuItem2.Caption := SDockList; 185 NewMenuItem2.OnClick := PopupMenuListClick; 186 NewMenuItem.Add(NewMenuItem2); 187 188 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 189 NewMenuItem2.Caption := SDockTabs; 190 NewMenuItem2.OnClick := PopupMenuTabsClick; 191 NewMenuItem.Add(NewMenuItem2); 192 153 193 NewMenuItem := TMenuItem.Create(PopupMenu1); 154 NewMenuItem.Caption := 'Tabs';155 NewMenuItem.OnClick := PopupMenu TabsClick;194 NewMenuItem.Caption := SCloseForm; 195 NewMenuItem.OnClick := PopupMenuCloseClick; 156 196 PopupMenu1.Items.Add(NewMenuItem); 197 198 NewMenuItem := TMenuItem.Create(PopupMenu1); 199 NewMenuItem.Caption := SRenameForm; 200 NewMenuItem.OnClick := PopupMenuRenameClick; 201 PopupMenu1.Items.Add(NewMenuItem); 202 157 203 TabControl := TTabControl.Create(FDockSite); 158 204 with TabControl do begin … … 164 210 PopupMenu := PopupMenu1; 165 211 end; 212 TabsPos := hpTop; 213 MoveDuration := 1000; // ms 166 214 end; 167 215 168 216 destructor TCustomDockManager.Destroy; 169 217 begin 218 Timer1.Free; 170 219 FDockPanels.Free; 171 220 inherited Destroy; … … 431 480 end; 432 481 482 procedure TCustomDockManager.SetMoveDuration(const AValue: Integer); 483 begin 484 if FMoveDuration=AValue then exit; 485 FMoveDuration := AValue; 486 //Timer1.Interval := AValue; 487 end; 488 489 procedure TCustomDockManager.SetTabsPos(const AValue: THeaderPos); 490 begin 491 if FTabsPos=AValue then exit; 492 FTabsPos := AValue; 493 with TabControl do 494 case AValue of 495 hpAuto, hpTop: begin 496 Align := alTop; 497 TabPosition := tpTop; 498 Height := GrabberSize; 499 end; 500 hpLeft: begin 501 Align := alLeft; 502 TabPosition := tpLeft; 503 Width := GrabberSize; 504 end; 505 hpRight: begin 506 Align := alRight; 507 TabPosition := tpRight; 508 Width := GrabberSize; 509 end; 510 hpBottom: begin 511 Align := alBottom; 512 TabPosition := tpBottom; 513 Height := GrabberSize; 514 end; 515 end; 516 end; 517 433 518 procedure TCustomDockManager.UpdateClientSize; 434 519 var … … 461 546 end; 462 547 if (TabControl.TabIndex <> -1) and (FDockPanels.Count > TabControl.TabIndex) then begin 463 with TDockClientPanel(FDockPanels[TabControl.TabIndex]).ClientAreaPanel do begin 464 Parent := FDockSite; 465 Visible := True; 466 UpdateClientSize; 548 with TDockClientPanel(FDockPanels[TabControl.TabIndex]), ClientAreaPanel do begin 549 if AutoHide then begin 550 Parent := nil; 551 Visible := True; 552 Width := 0; 553 //TimerMoveForm := 554 //TimerIncrement := 1; 555 Timer1.Interval := MoveDuration div 10; 556 Timer1.Enabled := True; 557 end else begin 558 Parent := FDockSite; 559 Visible := True; 560 UpdateClientSize; 561 end; 467 562 end; 468 563 // TDockClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True; … … 473 568 begin 474 569 DockStyle := dsTabs; 570 end; 571 572 procedure TCustomDockManager.PopupMenuCloseClick(Sender: TObject); 573 begin 574 // TForm(TCustomDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close; 575 end; 576 577 procedure TCustomDockManager.PopupMenuRenameClick(Sender: TObject); 578 begin 579 580 end; 581 582 procedure TCustomDockManager.Timer1Timer(Sender: TObject); 583 begin 584 // TimerMoveForm.Width := TimerMoveForm.Width 475 585 end; 476 586 … … 487 597 FShowHeader := AValue; 488 598 DockPanelPaint(Self); 599 end; 600 601 procedure TDockClientPanel.SetAutoHide(const AValue: Boolean); 602 begin 603 if FAutoHide=AValue then exit; 604 FAutoHide:=AValue; 605 end; 606 607 procedure TDockClientPanel.SetHeaderPos(const AValue: THeaderPos); 608 begin 609 if FHeaderPos=AValue then exit; 610 FHeaderPos:=AValue; 489 611 end; 490 612 … … 527 649 BevelOuter := bvNone; 528 650 ShowHeader := True; 651 AutoHide := False; 652 HeaderPos := hpTop; 529 653 end; 530 654
Note:
See TracChangeset
for help on using the changeset viewer.