Changeset 199
- Timestamp:
- Mar 16, 2011, 2:17:54 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r197 r199 24 24 </Other> 25 25 </CompilerOptions> 26 <Description Value="Set of components for docking of windows."/>26 <Description Value="Set of components for forms docking for Lazarus."/> 27 27 <License Value="GNU/GPL"/> 28 28 <Version Minor="3"/> -
Docking/CoolDocking/Demo/IDE/IDE.lpi
r198 r199 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="5 6">49 <Units Count="57"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 63 63 <ResourceBaseClass Value="Form"/> 64 64 <UnitName Value="UMainForm"/> 65 <EditorIndex Value=" 5"/>65 <EditorIndex Value="4"/> 66 66 <WindowIndex Value="0"/> 67 67 <TopLine Value="158"/> 68 <CursorPos X="1" Y="165"/> 69 <UsageCount Value="314"/> 70 <Loaded Value="True"/> 68 <CursorPos X="23" Y="166"/> 69 <UsageCount Value="314"/> 70 <Loaded Value="True"/> 71 <LoadedDesigner Value="True"/> 71 72 </Unit1> 72 73 <Unit2> … … 105 106 <Unit5> 106 107 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 107 <WindowIndex Value="0"/> 108 <TopLine Value="1296"/> 109 <CursorPos X="1" Y="1309"/> 108 <EditorIndex Value="3"/> 109 <WindowIndex Value="0"/> 110 <TopLine Value="579"/> 111 <CursorPos X="3" Y="584"/> 110 112 <UsageCount Value="60"/> 113 <Loaded Value="True"/> 111 114 </Unit5> 112 115 <Unit6> … … 219 222 <TopLine Value="1"/> 220 223 <CursorPos X="22" Y="16"/> 221 <UsageCount Value="6 7"/>224 <UsageCount Value="66"/> 222 225 </Unit16> 223 226 <Unit17> 224 227 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 225 228 <WindowIndex Value="0"/> 226 <TopLine Value="1 524"/>227 <CursorPos X=" 5" Y="1537"/>229 <TopLine Value="19"/> 230 <CursorPos X="4" Y="32"/> 228 231 <UsageCount Value="16"/> 229 232 </Unit17> … … 234 237 <TopLine Value="110"/> 235 238 <CursorPos X="18" Y="126"/> 236 <UsageCount Value="3 2"/>239 <UsageCount Value="31"/> 237 240 </Unit18> 238 241 <Unit19> … … 240 243 <UnitName Value="Forms"/> 241 244 <WindowIndex Value="0"/> 242 <TopLine Value="7 70"/>243 <CursorPos X="22" Y="7 83"/>244 <UsageCount Value="1 1"/>245 <TopLine Value="702"/> 246 <CursorPos X="22" Y="715"/> 247 <UsageCount Value="12"/> 245 248 </Unit19> 246 249 <Unit20> … … 256 259 <EditorIndex Value="1"/> 257 260 <WindowIndex Value="0"/> 258 <TopLine Value="1 270"/>259 <CursorPos X="1 5" Y="1283"/>260 <UsageCount Value="3 7"/>261 <TopLine Value="1416"/> 262 <CursorPos X="14" Y="1429"/> 263 <UsageCount Value="39"/> 261 264 <Loaded Value="True"/> 262 265 </Unit21> 263 266 <Unit22> 264 267 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 265 <EditorIndex Value="4"/> 266 <WindowIndex Value="0"/> 267 <TopLine Value="7225"/> 268 <CursorPos X="31" Y="7250"/> 268 <WindowIndex Value="0"/> 269 <TopLine Value="7779"/> 270 <CursorPos X="1" Y="7812"/> 269 271 <UsageCount Value="115"/> 270 <Loaded Value="True"/>271 272 </Unit22> 272 273 <Unit23> … … 291 292 <Filename Value="..\..\UCDCommon.pas"/> 292 293 <UnitName Value="UCDCommon"/> 293 <EditorIndex Value="8"/>294 294 <WindowIndex Value="0"/> 295 295 <TopLine Value="3"/> 296 296 <CursorPos X="44" Y="11"/> 297 297 <UsageCount Value="61"/> 298 <Loaded Value="True"/>299 298 </Unit25> 300 299 <Unit26> 301 300 <Filename Value="..\..\UCDPopupMenu.pas"/> 302 301 <UnitName Value="UCDPopupMenu"/> 303 <EditorIndex Value=" 10"/>302 <EditorIndex Value="8"/> 304 303 <WindowIndex Value="0"/> 305 304 <TopLine Value="159"/> … … 311 310 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/> 312 311 <UnitName Value="LCLClasses"/> 313 <EditorIndex Value="11"/>314 312 <WindowIndex Value="0"/> 315 313 <TopLine Value="81"/> 316 314 <CursorPos X="20" Y="94"/> 317 <UsageCount Value="10"/> 318 <Loaded Value="True"/> 315 <UsageCount Value="11"/> 319 316 </Unit27> 320 317 <Unit28> … … 337 334 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 338 335 <UnitName Value="UCDManagerTabs"/> 339 <EditorIndex Value=" 9"/>340 <WindowIndex Value="0"/> 341 <TopLine Value=" 95"/>342 <CursorPos X=" 54" Y="98"/>336 <EditorIndex Value="7"/> 337 <WindowIndex Value="0"/> 338 <TopLine Value="284"/> 339 <CursorPos X="1" Y="297"/> 343 340 <UsageCount Value="130"/> 344 341 <Loaded Value="True"/> … … 347 344 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 348 345 <UnitName Value="UCDManagerRegions"/> 349 <IsVisibleTab Value="True"/> 350 <EditorIndex Value="7"/> 346 <EditorIndex Value="6"/> 351 347 <WindowIndex Value="0"/> 352 348 <TopLine Value="61"/> … … 358 354 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 359 355 <UnitName Value="UCDManagerTabsPopup"/> 356 <IsVisibleTab Value="True"/> 360 357 <EditorIndex Value="0"/> 361 358 <WindowIndex Value="0"/> 362 <TopLine Value=" 36"/>363 <CursorPos X=" 40" Y="49"/>359 <TopLine Value="80"/> 360 <CursorPos X="9" Y="90"/> 364 361 <UsageCount Value="120"/> 365 362 <Loaded Value="True"/> … … 396 393 <Filename Value="..\..\ReadMe.txt"/> 397 394 <WindowIndex Value="0"/> 398 <TopLine Value=" 2"/>399 <CursorPos X=" 40" Y="3"/>400 <UsageCount Value=" 2"/>395 <TopLine Value="1"/> 396 <CursorPos X="22" Y="16"/> 397 <UsageCount Value="10"/> 401 398 <DefaultSyntaxHighlighter Value="None"/> 402 399 </Unit37> … … 416 413 <Filename Value="..\..\UCDManager.pas"/> 417 414 <UnitName Value="UCDManager"/> 418 <EditorIndex Value=" 6"/>419 <WindowIndex Value="0"/> 420 <TopLine Value=" 40"/>421 <CursorPos X=" 27" Y="57"/>415 <EditorIndex Value="5"/> 416 <WindowIndex Value="0"/> 417 <TopLine Value="529"/> 418 <CursorPos X="1" Y="543"/> 422 419 <UsageCount Value="105"/> 423 420 <Loaded Value="True"/> … … 434 431 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 435 432 <UnitName Value="ExtCtrls"/> 436 <EditorIndex Value="2"/>437 433 <WindowIndex Value="0"/> 438 434 <TopLine Value="111"/> 439 435 <CursorPos X="3" Y="124"/> 440 436 <UsageCount Value="100"/> 441 <Loaded Value="True"/>442 437 </Unit41> 443 438 <Unit42> 444 439 <Filename Value="..\..\UCDMaster.pas"/> 445 440 <UnitName Value="UCDMaster"/> 446 <EditorIndex Value=" 12"/>441 <EditorIndex Value="9"/> 447 442 <WindowIndex Value="0"/> 448 443 <TopLine Value="11"/> … … 483 478 <TopLine Value="33"/> 484 479 <CursorPos X="1" Y="47"/> 485 <UsageCount Value=" 30"/>480 <UsageCount Value="29"/> 486 481 </Unit46> 487 482 <Unit47> … … 508 503 <TopLine Value="13"/> 509 504 <CursorPos X="40" Y="31"/> 510 <UsageCount Value="2 7"/>505 <UsageCount Value="26"/> 511 506 </Unit49> 512 507 <Unit50> … … 516 511 <TopLine Value="165"/> 517 512 <CursorPos X="15" Y="178"/> 518 <UsageCount Value="2 7"/>513 <UsageCount Value="26"/> 519 514 </Unit50> 520 515 <Unit51> … … 523 518 <TopLine Value="554"/> 524 519 <CursorPos X="9" Y="564"/> 525 <UsageCount Value="2 7"/>520 <UsageCount Value="26"/> 526 521 </Unit51> 527 522 <Unit52> … … 535 530 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\customtimer.pas"/> 536 531 <UnitName Value="CustomTimer"/> 537 <EditorIndex Value="3"/>538 532 <WindowIndex Value="0"/> 539 533 <TopLine Value="169"/> 540 534 <CursorPos X="1" Y="182"/> 541 <UsageCount Value="11"/> 542 <Loaded Value="True"/> 535 <UsageCount Value="12"/> 543 536 </Unit53> 544 537 <Unit54> … … 557 550 <UsageCount Value="10"/> 558 551 </Unit55> 552 <Unit56> 553 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lcltype.pp"/> 554 <UnitName Value="LCLType"/> 555 <EditorIndex Value="2"/> 556 <WindowIndex Value="0"/> 557 <TopLine Value="70"/> 558 <CursorPos X="3" Y="83"/> 559 <UsageCount Value="11"/> 560 <Loaded Value="True"/> 561 </Unit56> 559 562 </Units> 560 <JumpHistory Count=" 27" HistoryIndex="26">563 <JumpHistory Count="30" HistoryIndex="29"> 561 564 <Position1> 562 <Filename Value="..\..\ UCDPopupMenu.pas"/>563 <Caret Line=" 22" Column="11" TopLine="9"/>565 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 566 <Caret Line="197" Column="13" TopLine="184"/> 564 567 </Position1> 565 568 <Position2> 566 <Filename Value="..\..\ UCDPopupMenu.pas"/>567 <Caret Line=" 82" Column="30" TopLine="76"/>569 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 570 <Caret Line="227" Column="14" TopLine="207"/> 568 571 </Position2> 569 572 <Position3> 570 <Filename Value="..\..\ UCDPopupMenu.pas"/>571 <Caret Line=" 38" Column="30" TopLine="25"/>573 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 574 <Caret Line="223" Column="68" TopLine="201"/> 572 575 </Position3> 573 576 <Position4> 574 <Filename Value="..\..\ UCDPopupMenu.pas"/>575 <Caret Line="2 5" Column="15" TopLine="12"/>577 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 578 <Caret Line="211" Column="99" TopLine="198"/> 576 579 </Position4> 577 580 <Position5> 578 <Filename Value=" ..\..\UCDManager.pas"/>579 <Caret Line=" 251" Column="1" TopLine="240"/>581 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 582 <Caret Line="1413" Column="54" TopLine="1400"/> 580 583 </Position5> 581 584 <Position6> 582 <Filename Value=" ..\..\UCDManager.pas"/>583 <Caret Line=" 243" Column="1" TopLine="238"/>585 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 586 <Caret Line="1430" Column="30" TopLine="1412"/> 584 587 </Position6> 585 588 <Position7> 586 <Filename Value=" ..\..\UCDManager.pas"/>587 <Caret Line=" 244" Column="1" TopLine="238"/>589 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 590 <Caret Line="1411" Column="45" TopLine="1403"/> 588 591 </Position7> 589 592 <Position8> 590 <Filename Value="..\..\ UCDManager.pas"/>591 <Caret Line="2 45" Column="1" TopLine="238"/>593 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 594 <Caret Line="227" Column="17" TopLine="210"/> 592 595 </Position8> 593 596 <Position9> 594 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>595 <Caret Line=" 63" Column="1" TopLine="50"/>597 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 598 <Caret Line="215" Column="101" TopLine="200"/> 596 599 </Position9> 597 600 <Position10> 598 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>599 <Caret Line=" 64" Column="1" TopLine="50"/>601 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 602 <Caret Line="221" Column="31" TopLine="205"/> 600 603 </Position10> 601 604 <Position11> 602 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>603 <Caret Line=" 65" Column="1" TopLine="50"/>605 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 606 <Caret Line="220" Column="44" TopLine="205"/> 604 607 </Position11> 605 608 <Position12> 606 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>607 <Caret Line=" 66" Column="1" TopLine="50"/>609 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 610 <Caret Line="224" Column="40" TopLine="205"/> 608 611 </Position12> 609 612 <Position13> 610 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>611 <Caret Line=" 69" Column="1" TopLine="50"/>613 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 614 <Caret Line="229" Column="17" TopLine="211"/> 612 615 </Position13> 613 616 <Position14> 614 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>615 <Caret Line=" 70" Column="1" TopLine="50"/>617 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 618 <Caret Line="238" Column="1" TopLine="202"/> 616 619 </Position14> 617 620 <Position15> 618 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>619 <Caret Line=" 71" Column="1" TopLine="50"/>621 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 622 <Caret Line="229" Column="15" TopLine="208"/> 620 623 </Position15> 621 624 <Position16> 622 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>623 <Caret Line=" 72" Column="1" TopLine="51"/>625 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 626 <Caret Line="309" Column="1" TopLine="301"/> 624 627 </Position16> 625 628 <Position17> 626 <Filename Value="..\..\ UCDManager.pas"/>627 <Caret Line=" 641" Column="1" TopLine="628"/>629 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 630 <Caret Line="307" Column="24" TopLine="301"/> 628 631 </Position17> 629 632 <Position18> 630 <Filename Value="..\..\ UCDManager.pas"/>631 <Caret Line=" 642" Column="1" TopLine="628"/>633 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 634 <Caret Line="50" Column="36" TopLine="37"/> 632 635 </Position18> 633 636 <Position19> 634 <Filename Value="..\..\ UCDManager.pas"/>635 <Caret Line=" 643" Column="1" TopLine="628"/>637 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 638 <Caret Line="40" Column="23" TopLine="35"/> 636 639 </Position19> 637 640 <Position20> 638 <Filename Value="..\..\ UCDManager.pas"/>639 <Caret Line=" 644" Column="1" TopLine="628"/>641 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 642 <Caret Line="57" Column="25" TopLine="46"/> 640 643 </Position20> 641 644 <Position21> 642 <Filename Value="..\..\ UCDManager.pas"/>643 <Caret Line=" 647" Column="35" TopLine="628"/>645 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 646 <Caret Line="297" Column="3" TopLine="295"/> 644 647 </Position21> 645 648 <Position22> 646 <Filename Value="..\..\ UCDManager.pas"/>647 <Caret Line=" 2" Column="73" TopLine="1"/>649 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 650 <Caret Line="309" Column="1" TopLine="296"/> 648 651 </Position22> 649 652 <Position23> 650 653 <Filename Value="..\..\UCDManager.pas"/> 651 <Caret Line=" 69" Column="33" TopLine="48"/>654 <Caret Line="542" Column="1" TopLine="529"/> 652 655 </Position23> 653 656 <Position24> 654 657 <Filename Value="..\..\UCDManager.pas"/> 655 <Caret Line=" 181" Column="51" TopLine="160"/>658 <Caret Line="543" Column="1" TopLine="529"/> 656 659 </Position24> 657 660 <Position25> 658 <Filename Value="..\..\ UCDManager.pas"/>659 <Caret Line=" 182" Column="51" TopLine="161"/>661 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 662 <Caret Line="309" Column="15" TopLine="296"/> 660 663 </Position25> 661 664 <Position26> 662 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>663 <Caret Line=" 37" Column="43" TopLine="30"/>665 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 666 <Caret Line="57" Column="49" TopLine="44"/> 664 667 </Position26> 665 668 <Position27> 666 <Filename Value="..\..\Managers\UCDManager Regions.pas"/>667 <Caret Line=" 5" Column="66" TopLine="1"/>669 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 670 <Caret Line="309" Column="1" TopLine="296"/> 668 671 </Position27> 672 <Position28> 673 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 674 <Caret Line="297" Column="1" TopLine="284"/> 675 </Position28> 676 <Position29> 677 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 678 <Caret Line="227" Column="26" TopLine="206"/> 679 </Position29> 680 <Position30> 681 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 682 <Caret Line="140" Column="12" TopLine="130"/> 683 </Position30> 669 684 </JumpHistory> 670 685 </ProjectOptions> -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r198 r199 26 26 MouseDown: Boolean; 27 27 MouseButton: TMouseButton; 28 MouseDownSkip: Boolean;29 28 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 30 29 procedure TabControlMouseLeave(Sender: TObject); … … 39 38 procedure RemoveControl(Control: TControl); override; 40 39 function GetHeaderPos: THeaderPos; override; 41 procedure SetHeaderPos(const AValue: THeaderPos); override;42 40 public 41 MouseDownSkip: Boolean; 43 42 TabImageList: TImageList; 44 43 PageControl: TPageControl; 44 procedure SetHeaderPos(const AValue: THeaderPos); override; 45 45 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); virtual; 46 46 procedure TabControlChange(Sender: TObject); virtual; … … 195 195 //Align := alTop; 196 196 //Height := 24; 197 Color := clBlue; 197 198 Align := alClient; 198 199 OnChange := TabControlChange; -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r198 r199 16 16 FDuration: Real; 17 17 FStepCount: Integer; 18 FTabPosition: TTabPosition; 18 19 StartBounds: TRect; 19 20 procedure SetDuration(const AValue: Real); … … 24 25 Position: Real; 25 26 Direction: Integer; 26 TabPosition: TTabPosition;27 27 Enable: Boolean; 28 28 Timer: TTimer; … … 34 34 destructor Destroy; override; 35 35 procedure TimerExecute(Sender: TObject); 36 property TabPosition: TTabPosition read FTabPosition write FTabPosition; 36 37 property Duration: Real read FDuration write SetDuration; 37 38 property StepCount: Integer read FStepCount write SetStepCount; … … 53 54 AutoHideEnabled: Boolean; 54 55 AutoHide: TCDAutoHide; 55 Popup Panel: TPanel;56 PopupForm: TForm; 56 57 procedure SetHeaderPos(const AValue: THeaderPos); override; 57 58 procedure PinShowButtonClick(Sender: TObject); … … 87 88 Control.Height := Round((StartBounds.Bottom - StartBounds.Top) * Position); 88 89 end; 90 tpLeft: begin 91 Control.Width := Round((StartBounds.Right - StartBounds.Left) * Position); 92 end; 89 93 tpRight: begin 90 Control.Width := Round((StartBounds.Right - StartBounds.Left) * Position);91 end;92 tpLeft: begin93 94 Control.Width := Round((StartBounds.Right - StartBounds.Left) * Position); 94 95 Control.Left := StartBounds.Right - Control.Width; … … 119 120 begin 120 121 StartBounds := Control.BoundsRect; 122 Control.Show; 123 Control.BringToFront; 121 124 Direction := -1; 122 125 Position := 1; … … 128 131 begin 129 132 StartBounds := Control.BoundsRect; 133 //StartBounds := Bounds(0, 0, Control.UndockWidth, Control.UndockHeight); 130 134 Control.Show; 131 Control.Align := alCustom; 135 Control.BringToFront; 136 Control.Align := alClient; 132 137 Direction := 1; 133 138 Position := 0; … … 143 148 Timer.OnTimer := TimerExecute; 144 149 StepCount := 10; 145 Duration := 0. 5;150 Duration := 0.05; 146 151 end; 147 152 … … 164 169 if Direction = -1 then begin 165 170 Position := Position - 1 / StepCount; 166 if Position < 1then begin171 if Position < 0 then begin 167 172 Position := 0; 168 173 Timer.Enabled := False; … … 186 191 187 192 procedure TCDManagerTabsPopup.TabControlChange(Sender: TObject); 193 var 194 Pos: TPoint; 195 C: TControl; 188 196 begin 189 197 inherited TabControlChange(Sender); 190 if PopupPanel.ControlCount > 0 then 191 PopupPanel.Controls[0].Parent := nil; 198 MouseDownSkip := True; 199 if PopupForm.ControlCount > 0 then 200 PopupForm.Controls[0].Parent := nil; 192 201 AutoHide.Hide; 202 while AutoHide.Position > 0 do begin 203 Application.ProcessMessages; 204 Sleep(1); 205 end; 193 206 if PageControl.TabIndex >= 0 then begin 194 TCDManagerTabsPopupItem(DockItems[PageControl.TabIndex]).Control.Parent := PopupPanel; 195 AutoHide.Control.Align := alCustom; 207 C := TCDManagerTabsPopupItem(DockItems[PageControl.TabIndex]).Control; 208 C.Parent := PopupForm; 209 //AutoHide.Control.Align := alCustom; 210 Pos := Point(PageControl.Left, PageControl.Top); 211 Pos := DockSite.ClientToScreen(Pos); 196 212 with AutoHide.Control do 197 213 case AutoHide.TabPosition of 198 tpTop: SetBounds(PageControl.Left, PageControl.Top + PageControl.Height, 199 PageControl.Width, Height); 200 tpLeft: SetBounds(PageControl.Left + PageControl.Width, PageControl.Top, 201 Width, PageControl.Height); 202 tpBottom: SetBounds(PageControl.Left, PageControl.Top - Height, 203 PageControl.Width, Height); 204 tpRight: SetBounds(PageControl.Left - Width, PageControl.Top, 205 Width, PageControl.Height); 206 end; 214 tpTop: begin 215 SetBounds(Pos.X, Pos.Y + PageControl.Height, 216 PageControl.Width, C.TBDockHeight); 217 end; 218 tpLeft: begin 219 SetBounds(Pos.X + PageControl.Width, Pos.Y, 220 C.LRDockWidth, PageControl.Height); 221 end; 222 tpBottom: begin 223 SetBounds(Pos.X, Pos.Y - C.TBDockHeight, 224 PageControl.Width, C.TBDockHeight); 225 end; 226 tpRight: begin 227 SetBounds(Pos.X - C.LRDockWidth, Pos.Y, 228 C.LRDockWidth, PageControl.Height); 229 end; 230 end; 231 //AutoHide.Control.SetBounds(0, 0, 100, 100); 207 232 AutoHide.Show; 208 233 end; … … 215 240 inherited; 216 241 FDockStyle := dsPopupTabs; 217 PopupPanel := TPanel.Create(nil); 218 PopupPanel.DockManager := TCDManagerRegions.Create(PopupPanel); 219 PopupPanel.Visible := True; 242 PopupForm := TForm.Create(nil); 243 PopupForm.DockManager := TCDManagerRegions.Create(PopupForm); 244 PopupForm.Visible := True; 245 //PopupForm.Parent := ADockSite; 246 PopupForm.BorderStyle := bsNone; 220 247 AutoHide := TCDAutoHide.Create; 221 AutoHide.Control := Popup Panel;248 AutoHide.Control := PopupForm; 222 249 223 250 for I := 0 to DockItems.Count - 1 do begin … … 225 252 // if 226 253 end; 254 HeaderPos := HeaderPos; // Reset position 227 255 end; 228 256 … … 230 258 begin 231 259 AutoHide.Free; 232 Popup Panel.Free;260 PopupForm.Free; 233 261 inherited Destroy; 234 262 end; … … 281 309 inherited SetHeaderPos(AValue); 282 310 AutoHide.TabPosition := HeaderPosToTabPos(AValue); 311 with PageControl do 312 case AValue of 313 hpTop, hpAuto: begin 314 Align := alTop; 315 Height := 24; 316 end; 317 hpBottom: begin 318 Align := alBottom; 319 Height := 24; 320 end; 321 hpLeft: begin 322 Align := alLeft; 323 Width := 24; 324 end; 325 hpRight: begin 326 Align := alRight; 327 Width := 24; 328 end; 329 end; 283 330 end; 284 331 -
Docking/CoolDocking/ReadMe.txt
r183 r199 14 14 ==Completeded features== 15 15 16 * Listdocking16 * Regions docking 17 17 * Tabbed docking 18 18 * Popup control menu … … 21 21 * Store and restore forms layout to file or stream 22 22 * Predefined customization form 23 * Ability to lock and unlock docked controls for accidently undocking 23 24 24 25 ==Planned features== … … 26 27 * Dock forms groups 27 28 * User defined form header styles 28 * Ability to lock and unlock docked controls for accidently undocking29 * Tabbed docking with auto form popup and form pinning -
Docking/CoolDocking/UCDManager.pas
r198 r199 148 148 hpTop: Result := tpTop; 149 149 hpRight: Result := tpRight; 150 hpAuto: Result := tp Left;150 hpAuto: Result := tpTop; 151 151 end; 152 152 end;
Note:
See TracChangeset
for help on using the changeset viewer.