Changeset 61
- Timestamp:
- Sep 29, 2010, 9:14:55 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/Demo.lpi
r60 r61 35 35 </Item2> 36 36 </RequiredPackages> 37 <Units Count="5 2">37 <Units Count="54"> 38 38 <Unit0> 39 39 <Filename Value="Demo.lpr"/> … … 43 43 <WindowIndex Value="0"/> 44 44 <TopLine Value="1"/> 45 <CursorPos X=" 25" Y="8"/>46 <UsageCount Value="12 4"/>45 <CursorPos X="6" Y="10"/> 46 <UsageCount Value="126"/> 47 47 <Loaded Value="True"/> 48 48 <DefaultSyntaxHighlighter Value="Delphi"/> … … 54 54 <ResourceBaseClass Value="Form"/> 55 55 <UnitName Value="UMainForm"/> 56 <IsVisibleTab Value="True"/> 57 <EditorIndex Value="2"/> 58 <WindowIndex Value="0"/> 59 <TopLine Value="16"/> 60 <CursorPos X="1" Y="29"/> 61 <UsageCount Value="124"/> 56 <EditorIndex Value="4"/> 57 <WindowIndex Value="0"/> 58 <TopLine Value="79"/> 59 <CursorPos X="19" Y="92"/> 60 <UsageCount Value="126"/> 62 61 <Loaded Value="True"/> 63 62 <LoadedDesigner Value="True"/> … … 67 66 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 68 67 <UnitName Value="Controls"/> 69 <EditorIndex Value=" 16"/>70 <WindowIndex Value="0"/> 71 <TopLine Value="1 217"/>72 <CursorPos X=" 27" Y="1230"/>73 <UsageCount Value="6 1"/>68 <EditorIndex Value="21"/> 69 <WindowIndex Value="0"/> 70 <TopLine Value="1667"/> 71 <CursorPos X="14" Y="1680"/> 72 <UsageCount Value="62"/> 74 73 <Loaded Value="True"/> 75 74 </Unit2> … … 85 84 <Unit4> 86 85 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 87 <WindowIndex Value="0"/> 88 <TopLine Value="3138"/> 89 <CursorPos X="1" Y="3151"/> 90 <UsageCount Value="54"/> 86 <EditorIndex Value="22"/> 87 <WindowIndex Value="0"/> 88 <TopLine Value="71"/> 89 <CursorPos X="21" Y="83"/> 90 <UsageCount Value="55"/> 91 <Loaded Value="True"/> 91 92 </Unit4> 92 93 <Unit5> 93 94 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 94 <EditorIndex Value=" 17"/>95 <WindowIndex Value="0"/> 96 <TopLine Value="5 341"/>97 <CursorPos X=" 65" Y="5348"/>98 <UsageCount Value="6 0"/>95 <EditorIndex Value="23"/> 96 <WindowIndex Value="0"/> 97 <TopLine Value="5229"/> 98 <CursorPos X="33" Y="5245"/> 99 <UsageCount Value="61"/> 99 100 <Loaded Value="True"/> 100 101 </Unit5> … … 132 133 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 133 134 <UnitName Value="LCLProc"/> 134 <WindowIndex Value="0"/> 135 <TopLine Value="1493"/> 136 <CursorPos X="18" Y="1498"/> 137 <UsageCount Value="25"/> 135 <EditorIndex Value="5"/> 136 <WindowIndex Value="0"/> 137 <TopLine Value="1495"/> 138 <CursorPos X="1" Y="1516"/> 139 <UsageCount Value="26"/> 140 <Loaded Value="True"/> 138 141 </Unit10> 139 142 <Unit11> … … 173 176 <ResourceBaseClass Value="Form"/> 174 177 <UnitName Value="UDockForm"/> 175 <EditorIndex Value="1 4"/>176 <WindowIndex Value="0"/> 177 <TopLine Value=" 2"/>178 <CursorPos X=" 15" Y="9"/>179 <UsageCount Value="12 3"/>178 <EditorIndex Value="18"/> 179 <WindowIndex Value="0"/> 180 <TopLine Value="7"/> 181 <CursorPos X="33" Y="21"/> 182 <UsageCount Value="125"/> 180 183 <Loaded Value="True"/> 181 184 <LoadedDesigner Value="True"/> … … 185 188 <Filename Value="E:\Programy\Lazarus\lcl\graphics.pp"/> 186 189 <UnitName Value="Graphics"/> 187 <EditorIndex Value=" 9"/>190 <EditorIndex Value="12"/> 188 191 <WindowIndex Value="0"/> 189 192 <TopLine Value="1083"/> 190 193 <CursorPos X="15" Y="1096"/> 191 <UsageCount Value="1 1"/>194 <UsageCount Value="12"/> 192 195 <Loaded Value="True"/> 193 196 </Unit16> … … 229 232 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 230 233 <UnitName Value="ExtCtrls"/> 231 <EditorIndex Value=" 4"/>232 <WindowIndex Value="0"/> 233 <TopLine Value=" 292"/>234 <CursorPos X=" 24" Y="305"/>235 <UsageCount Value="2 7"/>234 <EditorIndex Value="7"/> 235 <WindowIndex Value="0"/> 236 <TopLine Value="1250"/> 237 <CursorPos X="19" Y="1263"/> 238 <UsageCount Value="28"/> 236 239 <Loaded Value="True"/> 237 240 </Unit21> … … 246 249 <Unit23> 247 250 <Filename Value="E:\Programy\Lazarus\lcl\include\dragmanager.inc"/> 248 <WindowIndex Value="0"/> 249 <TopLine Value="538"/> 250 <CursorPos X="20" Y="567"/> 251 <UsageCount Value="6"/> 251 <EditorIndex Value="2"/> 252 <WindowIndex Value="0"/> 253 <TopLine Value="553"/> 254 <CursorPos X="1" Y="566"/> 255 <UsageCount Value="11"/> 256 <Loaded Value="True"/> 252 257 </Unit23> 253 258 <Unit24> 254 259 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 255 <WindowIndex Value="0"/> 256 <TopLine Value="359"/> 257 <CursorPos X="1" Y="372"/> 258 <UsageCount Value="1"/> 260 <EditorIndex Value="20"/> 261 <WindowIndex Value="0"/> 262 <TopLine Value="1452"/> 263 <CursorPos X="5" Y="1467"/> 264 <UsageCount Value="11"/> 265 <Loaded Value="True"/> 259 266 </Unit24> 260 267 <Unit25> … … 269 276 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 270 277 <UnitName Value="ComCtrls"/> 271 <EditorIndex Value=" 3"/>278 <EditorIndex Value="6"/> 272 279 <WindowIndex Value="0"/> 273 280 <TopLine Value="398"/> 274 281 <CursorPos X="59" Y="408"/> 275 <UsageCount Value="1 1"/>282 <UsageCount Value="12"/> 276 283 <Loaded Value="True"/> 277 284 </Unit26> … … 279 286 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 280 287 <UnitName Value="Forms"/> 281 <EditorIndex Value="1 5"/>282 <WindowIndex Value="0"/> 283 <TopLine Value=" 709"/>284 <CursorPos X=" 18" Y="722"/>285 <UsageCount Value="3 4"/>288 <EditorIndex Value="19"/> 289 <WindowIndex Value="0"/> 290 <TopLine Value="529"/> 291 <CursorPos X="21" Y="541"/> 292 <UsageCount Value="35"/> 286 293 <Loaded Value="True"/> 287 294 </Unit27> … … 289 296 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 290 297 <UnitName Value="Themes"/> 291 <EditorIndex Value="1 3"/>298 <EditorIndex Value="17"/> 292 299 <WindowIndex Value="0"/> 293 300 <TopLine Value="2167"/> 294 301 <CursorPos X="21" Y="2148"/> 295 <UsageCount Value=" 29"/>302 <UsageCount Value="30"/> 296 303 <Loaded Value="True"/> 297 304 </Unit28> … … 332 339 <Filename Value="..\UCoolDocking.pas"/> 333 340 <UnitName Value="UCoolDocking"/> 341 <IsVisibleTab Value="True"/> 334 342 <EditorIndex Value="1"/> 335 343 <WindowIndex Value="0"/> 336 <TopLine Value="8 83"/>337 <CursorPos X=" 1" Y="896"/>338 <UsageCount Value="5 2"/>344 <TopLine Value="899"/> 345 <CursorPos X="76" Y="904"/> 346 <UsageCount Value="53"/> 339 347 <Loaded Value="True"/> 340 348 <DefaultSyntaxHighlighter Value="Delphi"/> … … 382 390 <ResourceBaseClass Value="Form"/> 383 391 <UnitName Value="UCoolDockCustomize"/> 384 <EditorIndex Value=" 18"/>392 <EditorIndex Value="24"/> 385 393 <WindowIndex Value="0"/> 386 394 <TopLine Value="9"/> 387 395 <CursorPos X="19" Y="17"/> 388 <UsageCount Value="5 1"/>396 <UsageCount Value="52"/> 389 397 <Loaded Value="True"/> 390 398 <LoadedDesigner Value="True"/> … … 412 420 <TopLine Value="1"/> 413 421 <CursorPos X="53" Y="2"/> 414 <UsageCount Value="6 6"/>422 <UsageCount Value="68"/> 415 423 <DefaultSyntaxHighlighter Value="Delphi"/> 416 424 </Unit41> … … 439 447 <Unit45> 440 448 <Filename Value="E:\Programy\Lazarus\lcl\include\tabcontrol.inc"/> 441 <EditorIndex Value=" 7"/>449 <EditorIndex Value="10"/> 442 450 <WindowIndex Value="0"/> 443 451 <TopLine Value="182"/> 444 452 <CursorPos X="3" Y="184"/> 445 <UsageCount Value="1 1"/>453 <UsageCount Value="12"/> 446 454 <Loaded Value="True"/> 447 455 </Unit45> 448 456 <Unit46> 449 457 <Filename Value="E:\Programy\Lazarus\lcl\include\pagecontrol.inc"/> 450 <EditorIndex Value=" 6"/>458 <EditorIndex Value="9"/> 451 459 <WindowIndex Value="0"/> 452 460 <TopLine Value="98"/> 453 461 <CursorPos X="3" Y="103"/> 454 <UsageCount Value="1 1"/>462 <UsageCount Value="12"/> 455 463 <Loaded Value="True"/> 456 464 </Unit46> 457 465 <Unit47> 458 466 <Filename Value="E:\Programy\Lazarus\lcl\include\customnotebook.inc"/> 459 <EditorIndex Value=" 5"/>467 <EditorIndex Value="8"/> 460 468 <WindowIndex Value="0"/> 461 469 <TopLine Value="885"/> 462 470 <CursorPos X="3" Y="853"/> 463 <UsageCount Value="1 1"/>471 <UsageCount Value="12"/> 464 472 <Loaded Value="True"/> 465 473 </Unit47> 466 474 <Unit48> 467 475 <Filename Value="E:\Programy\Lazarus\lcl\include\canvas.inc"/> 468 <EditorIndex Value="1 0"/>469 <WindowIndex Value="0"/> 470 <TopLine Value=" 954"/>471 <CursorPos X="1 7" Y="965"/>472 <UsageCount Value="1 1"/>476 <EditorIndex Value="13"/> 477 <WindowIndex Value="0"/> 478 <TopLine Value="1555"/> 479 <CursorPos X="1" Y="1568"/> 480 <UsageCount Value="12"/> 473 481 <Loaded Value="True"/> 474 482 </Unit48> 475 483 <Unit49> 476 484 <Filename Value="E:\Programy\Lazarus\lcl\include\lclintfh.inc"/> 477 <EditorIndex Value="1 1"/>485 <EditorIndex Value="15"/> 478 486 <WindowIndex Value="0"/> 479 487 <TopLine Value="27"/> 480 488 <CursorPos X="10" Y="40"/> 481 <UsageCount Value="1 1"/>489 <UsageCount Value="12"/> 482 490 <Loaded Value="True"/> 483 491 </Unit49> 484 492 <Unit50> 485 493 <Filename Value="E:\Programy\Lazarus\lcl\include\intfbaselcl.inc"/> 486 <EditorIndex Value="1 2"/>494 <EditorIndex Value="16"/> 487 495 <WindowIndex Value="0"/> 488 496 <TopLine Value="29"/> 489 497 <CursorPos X="3" Y="32"/> 490 <UsageCount Value="1 1"/>498 <UsageCount Value="12"/> 491 499 <Loaded Value="True"/> 492 500 </Unit50> 493 501 <Unit51> 494 502 <Filename Value="E:\Programy\Lazarus\lcl\include\winapih.inc"/> 495 <EditorIndex Value=" 8"/>503 <EditorIndex Value="11"/> 496 504 <WindowIndex Value="0"/> 497 505 <TopLine Value="306"/> 498 506 <CursorPos X="10" Y="319"/> 507 <UsageCount Value="12"/> 508 <Loaded Value="True"/> 509 </Unit51> 510 <Unit52> 511 <Filename Value="E:\Programy\Lazarus\lcl\include\controlcanvas.inc"/> 512 <EditorIndex Value="14"/> 513 <WindowIndex Value="0"/> 514 <TopLine Value="79"/> 515 <CursorPos X="1" Y="92"/> 499 516 <UsageCount Value="11"/> 500 517 <Loaded Value="True"/> 501 </Unit51> 518 </Unit52> 519 <Unit53> 520 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\sysutils\datih.inc"/> 521 <EditorIndex Value="3"/> 522 <WindowIndex Value="0"/> 523 <TopLine Value="126"/> 524 <CursorPos X="89" Y="147"/> 525 <UsageCount Value="10"/> 526 <Loaded Value="True"/> 527 </Unit53> 502 528 </Units> 503 <JumpHistory Count="30" HistoryIndex="2 9">529 <JumpHistory Count="30" HistoryIndex="27"> 504 530 <Position1> 505 <Filename Value="E:\Programy\Lazarus\lcl\ controls.pp"/>506 <Caret Line=" 1230" Column="35" TopLine="1217"/>531 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 532 <Caret Line="23" Column="67" TopLine="20"/> 507 533 </Position1> 508 534 <Position2> 509 <Filename Value=" UMainForm.pas"/>510 <Caret Line=" 84" Column="61" TopLine="71"/>535 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 536 <Caret Line="5238" Column="13" TopLine="5225"/> 511 537 </Position2> 512 538 <Position3> 513 <Filename Value=" UMainForm.pas"/>514 <Caret Line=" 85" Column="17" TopLine="71"/>539 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 540 <Caret Line="5242" Column="35" TopLine="5225"/> 515 541 </Position3> 516 542 <Position4> 517 <Filename Value=" UMainForm.pas"/>518 <Caret Line=" 84" Column="58" TopLine="71"/>543 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 544 <Caret Line="5" Column="64" TopLine="1"/> 519 545 </Position4> 520 546 <Position5> 521 <Filename Value="E:\Programy\Lazarus\lcl\ extctrls.pp"/>522 <Caret Line=" 305" Column="18" TopLine="292"/>547 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 548 <Caret Line="5238" Column="13" TopLine="5225"/> 523 549 </Position5> 524 550 <Position6> 525 <Filename Value=" UMainForm.pas"/>526 <Caret Line=" 84" Column="58" TopLine="71"/>551 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 552 <Caret Line="6" Column="55" TopLine="1"/> 527 553 </Position6> 528 554 <Position7> 529 <Filename Value=" UMainForm.pas"/>530 <Caret Line=" 85" Column="19" TopLine="72"/>555 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 556 <Caret Line="5228" Column="33" TopLine="5215"/> 531 557 </Position7> 532 558 <Position8> 533 <Filename Value=" UMainForm.pas"/>534 <Caret Line=" 43" Column="16" TopLine="32"/>559 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 560 <Caret Line="5233" Column="31" TopLine="5215"/> 535 561 </Position8> 536 562 <Position9> 537 <Filename Value=" UMainForm.pas"/>538 <Caret Line=" 84" Column="65" TopLine="72"/>563 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 564 <Caret Line="5238" Column="13" TopLine="5215"/> 539 565 </Position9> 540 566 <Position10> 541 <Filename Value=" UMainForm.pas"/>542 <Caret Line=" 85" Column="16" TopLine="72"/>567 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 568 <Caret Line="5242" Column="35" TopLine="5229"/> 543 569 </Position10> 544 570 <Position11> 545 <Filename Value=" UMainForm.pas"/>546 <Caret Line=" 45" Column="15" TopLine="32"/>571 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 572 <Caret Line="5245" Column="33" TopLine="5229"/> 547 573 </Position11> 548 574 <Position12> 549 <Filename Value=" UMainForm.pas"/>550 <Caret Line=" 85" Column="22" TopLine="72"/>575 <Filename Value="..\UCoolDocking.pas"/> 576 <Caret Line="1032" Column="39" TopLine="1017"/> 551 577 </Position12> 552 578 <Position13> 553 579 <Filename Value="UMainForm.pas"/> 554 <Caret Line=" 46" Column="30" TopLine="33"/>580 <Caret Line="62" Column="68" TopLine="60"/> 555 581 </Position13> 556 582 <Position14> 557 583 <Filename Value="UMainForm.pas"/> 558 <Caret Line=" 45" Column="50" TopLine="32"/>584 <Caret Line="95" Column="3" TopLine="92"/> 559 585 </Position14> 560 586 <Position15> 561 <Filename Value=" UMainForm.pas"/>562 <Caret Line=" 46" Column="30" TopLine="33"/>587 <Filename Value="..\UCoolDocking.pas"/> 588 <Caret Line="1020" Column="1" TopLine="1015"/> 563 589 </Position15> 564 590 <Position16> 565 <Filename Value=" UMainForm.pas"/>566 <Caret Line=" 85" Column="22" TopLine="72"/>591 <Filename Value="..\UCoolDocking.pas"/> 592 <Caret Line="1020" Column="14" TopLine="1015"/> 567 593 </Position16> 568 594 <Position17> 569 595 <Filename Value="UMainForm.pas"/> 570 <Caret Line=" 46" Column="30" TopLine="33"/>596 <Caret Line="92" Column="1" TopLine="87"/> 571 597 </Position17> 572 598 <Position18> 573 <Filename Value=" ..\UCoolDocking.pas"/>574 <Caret Line=" 195" Column="15" TopLine="182"/>599 <Filename Value="UMainForm.pas"/> 600 <Caret Line="34" Column="1" TopLine="21"/> 575 601 </Position18> 576 602 <Position19> 577 603 <Filename Value="UMainForm.pas"/> 578 <Caret Line=" 85" Column="28" TopLine="72"/>604 <Caret Line="91" Column="1" TopLine="78"/> 579 605 </Position19> 580 606 <Position20> 581 607 <Filename Value="..\UCoolDocking.pas"/> 582 <Caret Line="1 19" Column="34" TopLine="112"/>608 <Caret Line="1020" Column="49" TopLine="1007"/> 583 609 </Position20> 584 610 <Position21> 585 611 <Filename Value="..\UCoolDocking.pas"/> 586 <Caret Line=" 443" Column="18" TopLine="431"/>612 <Caret Line="1022" Column="1" TopLine="1013"/> 587 613 </Position21> 588 614 <Position22> 589 <Filename Value=" UMainForm.pas"/>590 <Caret Line=" 76" Column="24" TopLine="65"/>615 <Filename Value="..\UCoolDocking.pas"/> 616 <Caret Line="1020" Column="45" TopLine="1007"/> 591 617 </Position22> 592 618 <Position23> 593 <Filename Value=" UMainForm.pas"/>594 <Caret Line=" 75" Column="24" TopLine="64"/>619 <Filename Value="..\UCoolDocking.pas"/> 620 <Caret Line="13" Column="11" TopLine="1"/> 595 621 </Position23> 596 622 <Position24> 597 <Filename Value=" UMainForm.pas"/>598 <Caret Line=" 74" Column="24" TopLine="63"/>623 <Filename Value="..\UCoolDocking.pas"/> 624 <Caret Line="1021" Column="68" TopLine="1008"/> 599 625 </Position24> 600 626 <Position25> 601 <Filename Value=" UMainForm.pas"/>602 <Caret Line=" 73" Column="24" TopLine="62"/>627 <Filename Value="..\UCoolDocking.pas"/> 628 <Caret Line="1027" Column="1" TopLine="1008"/> 603 629 </Position25> 604 630 <Position26> 605 <Filename Value=" UMainForm.pas"/>606 <Caret Line=" 72" Column="24" TopLine="61"/>631 <Filename Value="..\UCoolDocking.pas"/> 632 <Caret Line="1024" Column="9" TopLine="1008"/> 607 633 </Position26> 608 634 <Position27> 609 <Filename Value=" UMainForm.pas"/>610 <Caret Line=" 71" Column="24" TopLine="60"/>635 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\sysutils\datih.inc"/> 636 <Caret Line="147" Column="89" TopLine="126"/> 611 637 </Position27> 612 638 <Position28> 613 <Filename Value=" UMainForm.pas"/>614 <Caret Line="9 8" Column="1" TopLine="98"/>639 <Filename Value="..\UCoolDocking.pas"/> 640 <Caret Line="904" Column="77" TopLine="899"/> 615 641 </Position28> 616 642 <Position29> 617 <Filename Value=" UMainForm.pas"/>618 <Caret Line=" 35" Column="1" TopLine="22"/>643 <Filename Value="..\UCoolDocking.pas"/> 644 <Caret Line="1027" Column="14" TopLine="1018"/> 619 645 </Position29> 620 646 <Position30> 621 <Filename Value=" UMainForm.pas"/>622 <Caret Line=" 109" Column="1" TopLine="86"/>647 <Filename Value="..\UCoolDocking.pas"/> 648 <Caret Line="70" Column="5" TopLine="57"/> 623 649 </Position30> 624 650 </JumpHistory> -
Docking/CoolDocking/Demo/UMainForm.pas
r60 r61 65 65 NewDockForm.ManualDock(Panel1); 66 66 // NewDockForm.ManualDock(Panel1); 67 ConjoinedDockForm1 := TCoolDockManager(Panel1.DockManager).CreateContainer(alRight);68 ConjoinedDockForm1.Name := 'Model';;69 TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).TabsPos := hpLeft;67 //ConjoinedDockForm1 := TCoolDockManager(Panel1.DockManager).CreateContainer(alRight); 68 //ConjoinedDockForm1.Name := 'Model';; 69 //TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).TabsPos := hpLeft; 70 70 //ConjoinedDockForm1.ManualDock(Panel1); 71 TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs;72 NewDockForm.ManualDock(ConjoinedDockForm1.Panel);71 //TCoolDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs; 72 (*NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 73 73 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 74 74 NewDockForm.ManualDock(TForm(DockForms[0])); 75 75 NewDockForm.ManualDock(TForm(DockForms[0])); 76 NewDockForm.ManualDock(TForm(DockForms[0])); 76 NewDockForm.ManualDock(TForm(DockForms[0]));*) 77 77 // TCustomDockManager(TDockForm(DockForms[0]).DockManager).DockStyle := dsTabs; 78 78 end; -
Docking/CoolDocking/UCoolDocking.pas
r60 r61 10 10 Classes, SysUtils, Controls, LCLType, LMessages, Graphics, StdCtrls, 11 11 Buttons, ExtCtrls, Contnrs, Forms, ComCtrls, Dialogs, Menus, FileUtil, 12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDockWindowList; 12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDockWindowList, 13 DateUtils; 13 14 14 15 const … … 38 39 39 40 TCoolDockHeader = class(TPanel) 41 private 42 procedure CloseButtonClick(Sender: TObject); 43 procedure DrawGrabber(Canvas: TCanvas; AControl: TControl); 44 public 40 45 CloseButton: TSpeedButton; 41 46 Title: TLabel; … … 45 50 constructor Create(TheOwner: TComponent); override; 46 51 destructor Destroy; override; 47 private48 procedure CloseButtonClick(Sender: TObject);49 procedure DrawGrabber(Canvas: TCanvas; AControl: TControl);50 52 end; 51 53 … … 158 160 FCoolDockCustomize: TCoolDockCustomize; 159 161 FDefaultHeaderPos: THeaderPos; 162 FDefaultTabsPos: THeaderPos; 160 163 FShowIcons: Boolean; 161 164 FTabsEnabled: Boolean; … … 177 180 published 178 181 property TabsEnabled: Boolean read FTabsEnabled write SetTabsEnabled; 182 property DefaultTabsPos: THeaderPos read FDefaultTabsPos 183 write FDefaultTabsPos; 179 184 property DefaultHeaderPos: THeaderPos read FDefaultHeaderPos 180 185 write FDefaultHeaderPos; … … 194 199 procedure SetFloatable(const AValue: Boolean); 195 200 procedure SetMaster(const AValue: TCoolDockMaster); 201 procedure SetPanel(const AValue: TPanel); 202 public 196 203 constructor Create(AOwner: TComponent); override; 197 204 destructor Destroy; override; 198 procedure SetPanel(const AValue: TPanel);199 205 published 200 206 property Dockable: Boolean read FDockable … … 716 722 TCoolDockClientPanel(FDockPanels[I]).ClientAreaPanel.Parent := TCoolDockClientPanel(FDockPanels[I]); 717 723 TCoolDockClientPanel(FDockPanels[I]).ClientAreaPanel.Visible := True; 724 TCoolDockClientPanel(FDockPanels[I]).Control.Visible := True; 718 725 end; 719 726 end; … … 725 732 if FMaster = AValue then Exit; 726 733 FMaster := AValue; 734 TabsPos := AValue.DefaultTabsPos; 727 735 end; 728 736 … … 792 800 for I := 0 to FDockPanels.Count - 1 do begin 793 801 TCoolDockClientPanel(FDockPanels[I]).ClientAreaPanel.Visible := False; 802 TCoolDockClientPanel(FDockPanels[I]).Control.Visible := False; 794 803 end; 795 804 if (TabControl.TabIndex <> -1) and (FDockPanels.Count > TabControl.TabIndex) then begin 796 805 with TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]), ClientAreaPanel do begin 806 Control.Show; 797 807 if AutoHide then begin 798 808 Parent := nil; … … 892 902 begin 893 903 if (Button = mbLeft) and (TabControl.TabIndex <> -1) then begin 904 TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).ClientAreaPanel.DockSite := False; 894 905 DragManager.DragStart(TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).Control, False, 1); 895 906 end; … … 911 922 912 923 procedure TCoolDockClientPanel.VisibleChange(Sender: TObject); 913 begin 914 if Assigned(Control) then begin 924 var 925 Visible: Boolean; 926 begin 927 (*if Assigned(Control) then begin 928 Visible := Control.Visible; 915 929 if Assigned(ClientAreaPanel) then 916 ClientAreaPanel.Visible := Control.Visible;930 ClientAreaPanel.Visible := Visible; 917 931 if Assigned(Splitter) then 918 Splitter.Visible := Control.Visible;932 Splitter.Visible := Visible; 919 933 OwnerDockManager.UpdateClientSize; 920 end; 934 end;*) 921 935 end; 922 936 … … 936 950 begin 937 951 inherited; 952 ShowHeader := True; 938 953 Header := TCoolDockHeader.Create(Self); 939 954 with Header do begin … … 964 979 BevelInner := bvNone; 965 980 BevelOuter := bvNone; 966 ShowHeader := True;967 981 AutoHide := False; 968 982 HeaderPos := hpTop; … … 989 1003 R: TRect; 990 1004 begin 1005 if (csDestroyingHandle in ControlState) then 991 1006 if Assigned(Control) then begin 992 1007 R := Control.ClientRect; … … 1009 1024 end; 1010 1025 if (Button = mbLeft) then begin 1011 DragManager.DragStart(Control, False, 1); 1026 //(Control as TWinControl).DockSite := False; 1027 ClientAreaPanel.DockSite := False; 1028 (Control as TWinControl).BeginDrag(True); 1029 //DragManager.DragStart(Control, False, 1); 1012 1030 end; 1013 1031 end; … … 1179 1197 1180 1198 destructor TCoolDockMaster.Destroy; 1181 begin 1199 var 1200 I: Integer; 1201 begin 1202 // Assigning nil to Client Master property cause unregistring client from list 1203 for I := FClients.Count - 1 downto 0 do 1204 TCoolDockClient(FClients[I]).Master := nil; 1182 1205 FClients.Free; 1183 1206 Customize := nil; … … 1188 1211 begin 1189 1212 if Assigned(Client) then 1190 if FClients.IndexOf(Client) <>-1 then begin1213 if FClients.IndexOf(Client) = -1 then begin 1191 1214 FClients.Add(Client); 1192 1215 Client.Master := Self; … … 1357 1380 DragKind := dkDock; 1358 1381 DragMode := dmAutomatic; 1382 DockSite := True; 1359 1383 end else begin 1360 1384 DragKind := dkDrag; 1361 1385 DragMode := dmManual; 1386 DockSite := False; 1362 1387 end; 1363 1388 end; … … 1380 1405 DragKind := dkDock; 1381 1406 DragMode := dmAutomatic; 1407 DockSite := True; 1382 1408 end; 1383 DockSite := True;1384 1409 UseDockManager := True; 1385 1410 DockManager := TCoolDockManager.Create(TWinControl(AOwner));
Note:
See TracChangeset
for help on using the changeset viewer.