- Timestamp:
- Sep 29, 2010, 10:27:07 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/Demo.lpi
r62 r63 40 40 <IsPartOfProject Value="True"/> 41 41 <UnitName Value="Demo"/> 42 <EditorIndex Value="0"/>43 42 <WindowIndex Value="0"/> 44 43 <TopLine Value="1"/> 45 44 <CursorPos X="6" Y="10"/> 46 45 <UsageCount Value="126"/> 47 <Loaded Value="True"/>48 46 <DefaultSyntaxHighlighter Value="Delphi"/> 49 47 </Unit0> … … 54 52 <ResourceBaseClass Value="Form"/> 55 53 <UnitName Value="UMainForm"/> 56 <IsVisibleTab Value="True"/>57 <EditorIndex Value="4"/>58 54 <WindowIndex Value="0"/> 59 55 <TopLine Value="58"/> 60 <CursorPos X="3" Y="7 1"/>56 <CursorPos X="3" Y="72"/> 61 57 <UsageCount Value="126"/> 62 <Loaded Value="True"/>63 <LoadedDesigner Value="True"/>64 58 <DefaultSyntaxHighlighter Value="Delphi"/> 65 59 </Unit1> … … 67 61 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 68 62 <UnitName Value="Controls"/> 69 <EditorIndex Value="21"/> 70 <WindowIndex Value="0"/> 71 <TopLine Value="1667"/> 72 <CursorPos X="14" Y="1680"/> 63 <WindowIndex Value="0"/> 64 <TopLine Value="1296"/> 65 <CursorPos X="15" Y="1309"/> 73 66 <UsageCount Value="62"/> 74 <Loaded Value="True"/>75 67 </Unit2> 76 68 <Unit3> … … 85 77 <Unit4> 86 78 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 87 <EditorIndex Value="22"/>88 79 <WindowIndex Value="0"/> 89 80 <TopLine Value="71"/> 90 <CursorPos X=" 21" Y="83"/>81 <CursorPos X="1" Y="83"/> 91 82 <UsageCount Value="55"/> 92 <Loaded Value="True"/>93 83 </Unit4> 94 84 <Unit5> 95 85 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 96 <EditorIndex Value="23"/>97 86 <WindowIndex Value="0"/> 98 87 <TopLine Value="5229"/> 99 88 <CursorPos X="33" Y="5245"/> 100 89 <UsageCount Value="61"/> 101 <Loaded Value="True"/>102 90 </Unit5> 103 91 <Unit6> … … 134 122 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 135 123 <UnitName Value="LCLProc"/> 136 <EditorIndex Value="5"/>137 124 <WindowIndex Value="0"/> 138 125 <TopLine Value="1495"/> 139 126 <CursorPos X="1" Y="1516"/> 140 127 <UsageCount Value="26"/> 141 <Loaded Value="True"/>142 128 </Unit10> 143 129 <Unit11> … … 177 163 <ResourceBaseClass Value="Form"/> 178 164 <UnitName Value="UDockForm"/> 179 <EditorIndex Value="18"/>180 165 <WindowIndex Value="0"/> 181 166 <TopLine Value="7"/> 182 167 <CursorPos X="33" Y="21"/> 183 168 <UsageCount Value="125"/> 184 <Loaded Value="True"/>185 <LoadedDesigner Value="True"/>186 169 <DefaultSyntaxHighlighter Value="Delphi"/> 187 170 </Unit15> … … 189 172 <Filename Value="E:\Programy\Lazarus\lcl\graphics.pp"/> 190 173 <UnitName Value="Graphics"/> 191 <EditorIndex Value="12"/> 192 <WindowIndex Value="0"/> 193 <TopLine Value="1083"/> 174 <WindowIndex Value="0"/> 175 <TopLine Value="1089"/> 194 176 <CursorPos X="15" Y="1096"/> 195 177 <UsageCount Value="12"/> 196 <Loaded Value="True"/>197 178 </Unit16> 198 179 <Unit17> … … 233 214 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 234 215 <UnitName Value="ExtCtrls"/> 235 <EditorIndex Value="7"/>236 216 <WindowIndex Value="0"/> 237 217 <TopLine Value="1250"/> 238 218 <CursorPos X="19" Y="1263"/> 239 219 <UsageCount Value="28"/> 240 <Loaded Value="True"/>241 220 </Unit21> 242 221 <Unit22> … … 250 229 <Unit23> 251 230 <Filename Value="E:\Programy\Lazarus\lcl\include\dragmanager.inc"/> 252 <EditorIndex Value="2"/> 253 <WindowIndex Value="0"/> 254 <TopLine Value="553"/> 255 <CursorPos X="1" Y="566"/> 231 <WindowIndex Value="0"/> 232 <TopLine Value="52"/> 233 <CursorPos X="30" Y="65"/> 256 234 <UsageCount Value="11"/> 257 <Loaded Value="True"/>258 235 </Unit23> 259 236 <Unit24> 260 237 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 261 <EditorIndex Value="20"/>262 238 <WindowIndex Value="0"/> 263 239 <TopLine Value="1452"/> 264 240 <CursorPos X="5" Y="1467"/> 265 241 <UsageCount Value="11"/> 266 <Loaded Value="True"/>267 242 </Unit24> 268 243 <Unit25> … … 277 252 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 278 253 <UnitName Value="ComCtrls"/> 279 <EditorIndex Value="6"/>280 254 <WindowIndex Value="0"/> 281 255 <TopLine Value="398"/> 282 256 <CursorPos X="59" Y="408"/> 283 257 <UsageCount Value="12"/> 284 <Loaded Value="True"/>285 258 </Unit26> 286 259 <Unit27> 287 260 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 288 261 <UnitName Value="Forms"/> 289 <EditorIndex Value="19"/>290 262 <WindowIndex Value="0"/> 291 263 <TopLine Value="529"/> 292 264 <CursorPos X="21" Y="541"/> 293 265 <UsageCount Value="35"/> 294 <Loaded Value="True"/>295 266 </Unit27> 296 267 <Unit28> 297 268 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 298 269 <UnitName Value="Themes"/> 299 <EditorIndex Value=" 17"/>300 <WindowIndex Value="0"/> 301 <TopLine Value="21 67"/>270 <EditorIndex Value="0"/> 271 <WindowIndex Value="0"/> 272 <TopLine Value="2148"/> 302 273 <CursorPos X="21" Y="2148"/> 303 274 <UsageCount Value="30"/> … … 340 311 <Filename Value="..\UCoolDocking.pas"/> 341 312 <UnitName Value="UCoolDocking"/> 313 <IsVisibleTab Value="True"/> 342 314 <EditorIndex Value="1"/> 343 315 <WindowIndex Value="0"/> 344 <TopLine Value=" 899"/>345 <CursorPos X=" 20" Y="912"/>316 <TopLine Value="1044"/> 317 <CursorPos X="49" Y="1054"/> 346 318 <UsageCount Value="53"/> 347 319 <Loaded Value="True"/> … … 352 324 <WindowIndex Value="0"/> 353 325 <TopLine Value="1"/> 354 <CursorPos X=" 29" Y="16"/>326 <CursorPos X="18" Y="11"/> 355 327 <UsageCount Value="25"/> 356 328 <DefaultSyntaxHighlighter Value="None"/> … … 390 362 <ResourceBaseClass Value="Form"/> 391 363 <UnitName Value="UCoolDockCustomize"/> 392 <EditorIndex Value="24"/>393 364 <WindowIndex Value="0"/> 394 365 <TopLine Value="9"/> 395 366 <CursorPos X="19" Y="17"/> 396 367 <UsageCount Value="52"/> 397 <Loaded Value="True"/>398 <LoadedDesigner Value="True"/>399 368 <DefaultSyntaxHighlighter Value="Delphi"/> 400 369 </Unit39> … … 447 416 <Unit45> 448 417 <Filename Value="E:\Programy\Lazarus\lcl\include\tabcontrol.inc"/> 449 <EditorIndex Value="10"/>450 418 <WindowIndex Value="0"/> 451 419 <TopLine Value="182"/> 452 420 <CursorPos X="3" Y="184"/> 453 421 <UsageCount Value="12"/> 454 <Loaded Value="True"/>455 422 </Unit45> 456 423 <Unit46> 457 424 <Filename Value="E:\Programy\Lazarus\lcl\include\pagecontrol.inc"/> 458 <EditorIndex Value="9"/>459 425 <WindowIndex Value="0"/> 460 426 <TopLine Value="98"/> 461 427 <CursorPos X="3" Y="103"/> 462 428 <UsageCount Value="12"/> 463 <Loaded Value="True"/>464 429 </Unit46> 465 430 <Unit47> 466 431 <Filename Value="E:\Programy\Lazarus\lcl\include\customnotebook.inc"/> 467 <EditorIndex Value="8"/>468 432 <WindowIndex Value="0"/> 469 433 <TopLine Value="885"/> 470 434 <CursorPos X="3" Y="853"/> 471 435 <UsageCount Value="12"/> 472 <Loaded Value="True"/>473 436 </Unit47> 474 437 <Unit48> 475 438 <Filename Value="E:\Programy\Lazarus\lcl\include\canvas.inc"/> 476 <EditorIndex Value="13"/>477 439 <WindowIndex Value="0"/> 478 440 <TopLine Value="1555"/> 479 441 <CursorPos X="1" Y="1568"/> 480 442 <UsageCount Value="12"/> 481 <Loaded Value="True"/>482 443 </Unit48> 483 444 <Unit49> 484 445 <Filename Value="E:\Programy\Lazarus\lcl\include\lclintfh.inc"/> 485 <EditorIndex Value="15"/> 486 <WindowIndex Value="0"/> 487 <TopLine Value="27"/> 446 <WindowIndex Value="0"/> 447 <TopLine Value="33"/> 488 448 <CursorPos X="10" Y="40"/> 489 449 <UsageCount Value="12"/> 490 <Loaded Value="True"/>491 450 </Unit49> 492 451 <Unit50> 493 452 <Filename Value="E:\Programy\Lazarus\lcl\include\intfbaselcl.inc"/> 494 <EditorIndex Value="16"/>495 453 <WindowIndex Value="0"/> 496 454 <TopLine Value="29"/> 497 455 <CursorPos X="3" Y="32"/> 498 456 <UsageCount Value="12"/> 499 <Loaded Value="True"/>500 457 </Unit50> 501 458 <Unit51> 502 459 <Filename Value="E:\Programy\Lazarus\lcl\include\winapih.inc"/> 503 <EditorIndex Value="11"/> 504 <WindowIndex Value="0"/> 505 <TopLine Value="306"/> 460 <WindowIndex Value="0"/> 461 <TopLine Value="312"/> 506 462 <CursorPos X="10" Y="319"/> 507 463 <UsageCount Value="12"/> 508 <Loaded Value="True"/>509 464 </Unit51> 510 465 <Unit52> 511 466 <Filename Value="E:\Programy\Lazarus\lcl\include\controlcanvas.inc"/> 512 <EditorIndex Value="14"/> 513 <WindowIndex Value="0"/> 514 <TopLine Value="79"/> 467 <WindowIndex Value="0"/> 468 <TopLine Value="85"/> 515 469 <CursorPos X="1" Y="92"/> 516 470 <UsageCount Value="11"/> 517 <Loaded Value="True"/>518 471 </Unit52> 519 472 <Unit53> 520 473 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\sysutils\datih.inc"/> 521 <EditorIndex Value="3"/>522 474 <WindowIndex Value="0"/> 523 475 <TopLine Value="126"/> 524 476 <CursorPos X="89" Y="147"/> 525 477 <UsageCount Value="11"/> 526 <Loaded Value="True"/>527 478 </Unit53> 528 479 </Units> 529 <JumpHistory Count=" 30" HistoryIndex="27">480 <JumpHistory Count="13" HistoryIndex="12"> 530 481 <Position1> 531 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>532 <Caret Line=" 23" Column="67" TopLine="20"/>482 <Filename Value="..\UCoolDocking.pas"/> 483 <Caret Line="1032" Column="39" TopLine="1017"/> 533 484 </Position1> 534 485 <Position2> 535 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>536 <Caret Line=" 5238" Column="13" TopLine="5225"/>486 <Filename Value="..\UCoolDocking.pas"/> 487 <Caret Line="1020" Column="1" TopLine="1015"/> 537 488 </Position2> 538 489 <Position3> 539 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>540 <Caret Line=" 5242" Column="35" TopLine="5225"/>490 <Filename Value="..\UCoolDocking.pas"/> 491 <Caret Line="1020" Column="14" TopLine="1015"/> 541 492 </Position3> 542 493 <Position4> 543 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>544 <Caret Line=" 5" Column="64" TopLine="1"/>494 <Filename Value="..\UCoolDocking.pas"/> 495 <Caret Line="1020" Column="49" TopLine="1007"/> 545 496 </Position4> 546 497 <Position5> 547 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>548 <Caret Line=" 5238" Column="13" TopLine="5225"/>498 <Filename Value="..\UCoolDocking.pas"/> 499 <Caret Line="1022" Column="1" TopLine="1013"/> 549 500 </Position5> 550 501 <Position6> 551 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>552 <Caret Line=" 6" Column="55" TopLine="1"/>502 <Filename Value="..\UCoolDocking.pas"/> 503 <Caret Line="1020" Column="45" TopLine="1007"/> 553 504 </Position6> 554 505 <Position7> 555 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>556 <Caret Line=" 5228" Column="33" TopLine="5215"/>506 <Filename Value="..\UCoolDocking.pas"/> 507 <Caret Line="13" Column="11" TopLine="1"/> 557 508 </Position7> 558 509 <Position8> 559 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>560 <Caret Line=" 5233" Column="31" TopLine="5215"/>510 <Filename Value="..\UCoolDocking.pas"/> 511 <Caret Line="1021" Column="68" TopLine="1008"/> 561 512 </Position8> 562 513 <Position9> 563 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>564 <Caret Line=" 5238" Column="13" TopLine="5215"/>514 <Filename Value="..\UCoolDocking.pas"/> 515 <Caret Line="1027" Column="1" TopLine="1008"/> 565 516 </Position9> 566 517 <Position10> 567 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>568 <Caret Line=" 5242" Column="35" TopLine="5229"/>518 <Filename Value="..\UCoolDocking.pas"/> 519 <Caret Line="1024" Column="9" TopLine="1008"/> 569 520 </Position10> 570 521 <Position11> 571 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>572 <Caret Line=" 5245" Column="33" TopLine="5229"/>522 <Filename Value="..\UCoolDocking.pas"/> 523 <Caret Line="904" Column="77" TopLine="899"/> 573 524 </Position11> 574 525 <Position12> 575 526 <Filename Value="..\UCoolDocking.pas"/> 576 <Caret Line="10 32" Column="39" TopLine="1017"/>527 <Caret Line="1064" Column="38" TopLine="1045"/> 577 528 </Position12> 578 529 <Position13> 579 <Filename Value=" UMainForm.pas"/>580 <Caret Line=" 62" Column="68" TopLine="60"/>530 <Filename Value="..\UCoolDocking.pas"/> 531 <Caret Line="1054" Column="1" TopLine="1044"/> 581 532 </Position13> 582 <Position14>583 <Filename Value="UMainForm.pas"/>584 <Caret Line="95" Column="3" TopLine="92"/>585 </Position14>586 <Position15>587 <Filename Value="..\UCoolDocking.pas"/>588 <Caret Line="1020" Column="1" TopLine="1015"/>589 </Position15>590 <Position16>591 <Filename Value="..\UCoolDocking.pas"/>592 <Caret Line="1020" Column="14" TopLine="1015"/>593 </Position16>594 <Position17>595 <Filename Value="UMainForm.pas"/>596 <Caret Line="92" Column="1" TopLine="87"/>597 </Position17>598 <Position18>599 <Filename Value="UMainForm.pas"/>600 <Caret Line="34" Column="1" TopLine="21"/>601 </Position18>602 <Position19>603 <Filename Value="UMainForm.pas"/>604 <Caret Line="91" Column="1" TopLine="78"/>605 </Position19>606 <Position20>607 <Filename Value="..\UCoolDocking.pas"/>608 <Caret Line="1020" Column="49" TopLine="1007"/>609 </Position20>610 <Position21>611 <Filename Value="..\UCoolDocking.pas"/>612 <Caret Line="1022" Column="1" TopLine="1013"/>613 </Position21>614 <Position22>615 <Filename Value="..\UCoolDocking.pas"/>616 <Caret Line="1020" Column="45" TopLine="1007"/>617 </Position22>618 <Position23>619 <Filename Value="..\UCoolDocking.pas"/>620 <Caret Line="13" Column="11" TopLine="1"/>621 </Position23>622 <Position24>623 <Filename Value="..\UCoolDocking.pas"/>624 <Caret Line="1021" Column="68" TopLine="1008"/>625 </Position24>626 <Position25>627 <Filename Value="..\UCoolDocking.pas"/>628 <Caret Line="1027" Column="1" TopLine="1008"/>629 </Position25>630 <Position26>631 <Filename Value="..\UCoolDocking.pas"/>632 <Caret Line="1024" Column="9" TopLine="1008"/>633 </Position26>634 <Position27>635 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\sysutils\datih.inc"/>636 <Caret Line="147" Column="89" TopLine="126"/>637 </Position27>638 <Position28>639 <Filename Value="..\UCoolDocking.pas"/>640 <Caret Line="904" Column="77" TopLine="899"/>641 </Position28>642 <Position29>643 <Filename Value="..\UCoolDocking.pas"/>644 <Caret Line="1027" Column="14" TopLine="1018"/>645 </Position29>646 <Position30>647 <Filename Value="..\UCoolDocking.pas"/>648 <Caret Line="70" Column="5" TopLine="57"/>649 </Position30>650 533 </JumpHistory> 651 534 </ProjectOptions> -
Docking/CoolDocking/ReadMe.txt
r56 r63 6 6 * Popup control menu 7 7 * Conjoin floating form 8 * Icons on tabs and grabbers 8 9 9 10 Planned features: … … 14 15 * Predefined customization form 15 16 * User defined form header styles 16 * Icons on tabs and grabbers17 * Ability to lock and unlock docked controls for accidently undocking -
Docking/CoolDocking/UCoolDocking.pas
r62 r63 86 86 MouseDown: Boolean; 87 87 MouseButton: TMouseButton; 88 MouseDownSkip: Boolean; 88 89 FMaster: TCoolDockMaster; 89 90 FMoveDuration: Integer; … … 466 467 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseDown := TabControlMouseDown; 467 468 TTabControlNoteBookStrings(Tabs).NoteBook.OnMouseUp := TabControlMouseUp; 469 OnMouseUp := TabControlMouseUp; 468 470 Images := TabImageList; 469 471 end; … … 837 839 // TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True; 838 840 end; 841 MouseDownSkip := True; 839 842 end; 840 843 … … 915 918 916 919 procedure TCoolDockManager.TabControlMouseDown(Sender: TObject; Button: TMouseButton; 917 Shift: TShiftState; X, Y: Integer); 918 begin 919 MouseDown := True; 920 MouseButton := Button; 920 Shift: TShiftState; X, Y: Integer); 921 begin 922 if not MouseDownSkip then begin 923 MouseDown := True; 924 MouseButton := Button; 925 end; 926 MouseDownSkip := False; 921 927 end; 922 928 … … 1046 1052 //(Control as TWinControl).DockSite := False; 1047 1053 ClientAreaPanel.DockSite := False; 1048 (Control as TWinControl).BeginDrag( True);1054 (Control as TWinControl).BeginDrag(False, 10); 1049 1055 //DragManager.DragStart(Control, False, 1); 1050 1056 end;
Note:
See TracChangeset
for help on using the changeset viewer.