Changeset 205
- Timestamp:
- Mar 17, 2011, 2:17:17 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r204 r205 53 53 <UnitName Value="IDE"/> 54 54 <WindowIndex Value="0"/> 55 <TopLine Value=" 4"/>56 <CursorPos X=" 35" Y="18"/>55 <TopLine Value="10"/> 56 <CursorPos X="26" Y="20"/> 57 57 <UsageCount Value="314"/> 58 58 </Unit0> … … 63 63 <ResourceBaseClass Value="Form"/> 64 64 <UnitName Value="UMainForm"/> 65 <EditorIndex Value=" 8"/>66 <WindowIndex Value="0"/> 67 <TopLine Value=" 157"/>68 <CursorPos X=" 27" Y="168"/>65 <EditorIndex Value="4"/> 66 <WindowIndex Value="0"/> 67 <TopLine Value="92"/> 68 <CursorPos X="73" Y="89"/> 69 69 <UsageCount Value="314"/> 70 70 <Loaded Value="True"/> … … 106 106 <Unit5> 107 107 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 108 <WindowIndex Value="0"/> 109 <TopLine Value="1330"/> 110 <CursorPos X="1" Y="1347"/> 108 <EditorIndex Value="3"/> 109 <WindowIndex Value="0"/> 110 <TopLine Value="3938"/> 111 <CursorPos X="1" Y="3951"/> 111 112 <UsageCount Value="77"/> 113 <Loaded Value="True"/> 112 114 </Unit5> 113 115 <Unit6> … … 127 129 <TopLine Value="941"/> 128 130 <CursorPos X="1" Y="954"/> 129 <UsageCount Value="3 2"/>131 <UsageCount Value="31"/> 130 132 </Unit7> 131 133 <Unit8> … … 201 203 <ResourceBaseClass Value="Form"/> 202 204 <UnitName Value="USourceEditorForm"/> 203 <WindowIndex Value="0"/> 204 <TopLine Value="6"/> 205 <CursorPos X="75" Y="7"/> 205 <EditorIndex Value="5"/> 206 <WindowIndex Value="0"/> 207 <TopLine Value="9"/> 208 <CursorPos X="28" Y="22"/> 206 209 <UsageCount Value="312"/> 210 <Loaded Value="True"/> 207 211 </Unit14> 208 212 <Unit15> … … 212 216 <TopLine Value="81"/> 213 217 <CursorPos X="52" Y="92"/> 214 <UsageCount Value="15 2"/>218 <UsageCount Value="151"/> 215 219 </Unit15> 216 220 <Unit16> … … 220 224 <TopLine Value="1"/> 221 225 <CursorPos X="22" Y="16"/> 222 <UsageCount Value="6 2"/>226 <UsageCount Value="61"/> 223 227 </Unit16> 224 228 <Unit17> 225 229 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 226 <EditorIndex Value="3"/>227 230 <WindowIndex Value="0"/> 228 231 <TopLine Value="20"/> 229 232 <CursorPos X="19" Y="33"/> 230 <UsageCount Value="13"/> 231 <Loaded Value="True"/> 233 <UsageCount Value="15"/> 232 234 </Unit17> 233 235 <Unit18> 234 236 <Filename Value="..\..\Common\URectangle.pas"/> 235 237 <UnitName Value="URectangle"/> 236 <EditorIndex Value="2"/>237 238 <WindowIndex Value="0"/> 238 239 <TopLine Value="119"/> 239 240 <CursorPos X="27" Y="141"/> 240 <UsageCount Value="27"/> 241 <Loaded Value="True"/> 241 <UsageCount Value="29"/> 242 242 </Unit18> 243 243 <Unit19> … … 247 247 <TopLine Value="702"/> 248 248 <CursorPos X="22" Y="715"/> 249 <UsageCount Value=" 8"/>249 <UsageCount Value="7"/> 250 250 </Unit19> 251 251 <Unit20> … … 254 254 <TopLine Value="913"/> 255 255 <CursorPos X="1" Y="930"/> 256 <UsageCount Value=" 10"/>256 <UsageCount Value="9"/> 257 257 </Unit20> 258 258 <Unit21> 259 259 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 260 260 <UnitName Value="Controls"/> 261 <EditorIndex Value=" 6"/>262 <WindowIndex Value="0"/> 263 <TopLine Value="122 8"/>264 <CursorPos X=" 15" Y="1283"/>265 <UsageCount Value="5 6"/>261 <EditorIndex Value="2"/> 262 <WindowIndex Value="0"/> 263 <TopLine Value="1222"/> 264 <CursorPos X="37" Y="1235"/> 265 <UsageCount Value="57"/> 266 266 <Loaded Value="True"/> 267 267 </Unit21> … … 271 271 <TopLine Value="7785"/> 272 272 <CursorPos X="1" Y="7810"/> 273 <UsageCount Value="11 2"/>273 <UsageCount Value="111"/> 274 274 </Unit22> 275 275 <Unit23> … … 282 282 <TopLine Value="145"/> 283 283 <CursorPos X="34" Y="147"/> 284 <UsageCount Value="13 6"/>284 <UsageCount Value="135"/> 285 285 </Unit23> 286 286 <Unit24> 287 287 <Filename Value="..\..\UCDCommon.pas"/> 288 288 <UnitName Value="UCDCommon"/> 289 <EditorIndex Value="7"/>290 289 <WindowIndex Value="0"/> 291 290 <TopLine Value="13"/> 292 291 <CursorPos X="18" Y="26"/> 293 <UsageCount Value="58"/> 294 <Loaded Value="True"/> 292 <UsageCount Value="60"/> 295 293 </Unit24> 296 294 <Unit25> 297 295 <Filename Value="..\..\UCDPopupMenu.pas"/> 298 296 <UnitName Value="UCDPopupMenu"/> 299 <EditorIndex Value=" 12"/>297 <EditorIndex Value="9"/> 300 298 <WindowIndex Value="0"/> 301 299 <TopLine Value="159"/> … … 310 308 <TopLine Value="81"/> 311 309 <CursorPos X="20" Y="94"/> 312 <UsageCount Value=" 7"/>310 <UsageCount Value="6"/> 313 311 </Unit26> 314 312 <Unit27> … … 318 316 <TopLine Value="1"/> 319 317 <CursorPos X="24" Y="16"/> 320 <UsageCount Value=" 10"/>318 <UsageCount Value="9"/> 321 319 </Unit27> 322 320 <Unit28> … … 326 324 <TopLine Value="1"/> 327 325 <CursorPos X="5" Y="11"/> 328 <UsageCount Value="1 3"/>326 <UsageCount Value="12"/> 329 327 </Unit28> 330 328 <Unit29> 331 329 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 332 330 <UnitName Value="UCDManagerTabs"/> 333 <EditorIndex Value=" 11"/>334 <WindowIndex Value="0"/> 335 <TopLine Value="1 69"/>336 <CursorPos X=" 27" Y="188"/>331 <EditorIndex Value="8"/> 332 <WindowIndex Value="0"/> 333 <TopLine Value="172"/> 334 <CursorPos X="12" Y="183"/> 337 335 <UsageCount Value="130"/> 338 336 <Loaded Value="True"/> … … 341 339 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 342 340 <UnitName Value="UCDManagerRegions"/> 343 <EditorIndex Value=" 10"/>341 <EditorIndex Value="7"/> 344 342 <WindowIndex Value="0"/> 345 343 <TopLine Value="61"/> … … 354 352 <EditorIndex Value="0"/> 355 353 <WindowIndex Value="0"/> 356 <TopLine Value=" 83"/>357 <CursorPos X=" 70" Y="101"/>354 <TopLine Value="414"/> 355 <CursorPos X="1" Y="439"/> 358 356 <UsageCount Value="120"/> 359 357 <Loaded Value="True"/> … … 364 362 <TopLine Value="1"/> 365 363 <CursorPos X="22" Y="16"/> 366 <UsageCount Value=" 6"/>364 <UsageCount Value="5"/> 367 365 <DefaultSyntaxHighlighter Value="None"/> 368 366 </Unit32> … … 382 380 <Filename Value="..\..\UCDManager.pas"/> 383 381 <UnitName Value="UCDManager"/> 384 <EditorIndex Value=" 9"/>385 <WindowIndex Value="0"/> 386 <TopLine Value=" 529"/>387 <CursorPos X="1 " Y="543"/>382 <EditorIndex Value="6"/> 383 <WindowIndex Value="0"/> 384 <TopLine Value="40"/> 385 <CursorPos X="18" Y="53"/> 388 386 <UsageCount Value="105"/> 389 387 <Loaded Value="True"/> … … 393 391 <UnitName Value="UCDConjoinForm"/> 394 392 <WindowIndex Value="0"/> 395 <TopLine Value=" 1"/>396 <CursorPos X="3 1" Y="8"/>397 <UsageCount Value="9 9"/>393 <TopLine Value="44"/> 394 <CursorPos X="3" Y="47"/> 395 <UsageCount Value="98"/> 398 396 </Unit35> 399 397 <Unit36> 400 398 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 401 399 <UnitName Value="ExtCtrls"/> 402 <WindowIndex Value="0"/> 403 <TopLine Value="111"/> 404 <CursorPos X="3" Y="124"/> 405 <UsageCount Value="97"/> 400 <EditorIndex Value="1"/> 401 <WindowIndex Value="0"/> 402 <TopLine Value="1181"/> 403 <CursorPos X="22" Y="1194"/> 404 <UsageCount Value="96"/> 405 <Loaded Value="True"/> 406 406 </Unit36> 407 407 <Unit37> 408 408 <Filename Value="..\..\UCDMaster.pas"/> 409 409 <UnitName Value="UCDMaster"/> 410 <EditorIndex Value="1 3"/>410 <EditorIndex Value="10"/> 411 411 <WindowIndex Value="0"/> 412 412 <TopLine Value="11"/> … … 421 421 <TopLine Value="255"/> 422 422 <CursorPos X="14" Y="304"/> 423 <UsageCount Value="9 2"/>423 <UsageCount Value="91"/> 424 424 </Unit38> 425 425 <Unit39> … … 428 428 <TopLine Value="136"/> 429 429 <CursorPos X="3" Y="138"/> 430 <UsageCount Value=" 2"/>430 <UsageCount Value="1"/> 431 431 </Unit39> 432 432 <Unit40> … … 436 436 <TopLine Value="172"/> 437 437 <CursorPos X="17" Y="185"/> 438 <UsageCount Value=" 3"/>438 <UsageCount Value="2"/> 439 439 </Unit40> 440 440 <Unit41> … … 447 447 <TopLine Value="33"/> 448 448 <CursorPos X="1" Y="47"/> 449 <UsageCount Value="2 5"/>449 <UsageCount Value="24"/> 450 450 </Unit41> 451 451 <Unit42> … … 455 455 <TopLine Value="632"/> 456 456 <CursorPos X="14" Y="645"/> 457 <UsageCount Value=" 3"/>457 <UsageCount Value="2"/> 458 458 </Unit42> 459 459 <Unit43> … … 462 462 <TopLine Value="426"/> 463 463 <CursorPos X="3" Y="417"/> 464 <UsageCount Value=" 3"/>464 <UsageCount Value="2"/> 465 465 </Unit43> 466 466 <Unit44> … … 472 472 <TopLine Value="13"/> 473 473 <CursorPos X="40" Y="31"/> 474 <UsageCount Value="2 2"/>474 <UsageCount Value="21"/> 475 475 </Unit44> 476 476 <Unit45> … … 480 480 <TopLine Value="165"/> 481 481 <CursorPos X="15" Y="178"/> 482 <UsageCount Value="2 2"/>482 <UsageCount Value="21"/> 483 483 </Unit45> 484 484 <Unit46> … … 487 487 <TopLine Value="554"/> 488 488 <CursorPos X="9" Y="564"/> 489 <UsageCount Value="2 2"/>489 <UsageCount Value="21"/> 490 490 </Unit46> 491 491 <Unit47> 492 492 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\inc\objpash.inc"/> 493 <EditorIndex Value="1"/>494 493 <WindowIndex Value="0"/> 495 494 <TopLine Value="179"/> 496 495 <CursorPos X="23" Y="192"/> 497 <UsageCount Value="10"/> 498 <Loaded Value="True"/> 496 <UsageCount Value="12"/> 499 497 </Unit47> 500 498 <Unit48> … … 504 502 <TopLine Value="169"/> 505 503 <CursorPos X="1" Y="182"/> 506 <UsageCount Value=" 8"/>504 <UsageCount Value="7"/> 507 505 </Unit48> 508 506 <Unit49> … … 512 510 <TopLine Value="153"/> 513 511 <CursorPos X="15" Y="166"/> 514 <UsageCount Value=" 6"/>512 <UsageCount Value="5"/> 515 513 </Unit49> 516 514 <Unit50> … … 519 517 <TopLine Value="441"/> 520 518 <CursorPos X="1" Y="454"/> 521 <UsageCount Value=" 6"/>519 <UsageCount Value="5"/> 522 520 </Unit50> 523 521 <Unit51> … … 527 525 <TopLine Value="70"/> 528 526 <CursorPos X="3" Y="83"/> 529 <UsageCount Value="2 7"/>527 <UsageCount Value="26"/> 530 528 </Unit51> 531 529 <Unit52> … … 535 533 <TopLine Value="1429"/> 536 534 <CursorPos X="1" Y="1442"/> 537 <UsageCount Value="2 6"/>535 <UsageCount Value="25"/> 538 536 </Unit52> 539 537 <Unit53> 540 538 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\types.pp"/> 541 539 <UnitName Value="types"/> 542 <EditorIndex Value="4"/>543 540 <WindowIndex Value="0"/> 544 541 <TopLine Value="319"/> 545 542 <CursorPos X="16" Y="319"/> 546 <UsageCount Value="10"/> 547 <Loaded Value="True"/> 543 <UsageCount Value="12"/> 548 544 </Unit53> 549 545 <Unit54> 550 546 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\win\wininc\struct.inc"/> 551 <EditorIndex Value="5"/>552 547 <WindowIndex Value="0"/> 553 548 <TopLine Value="213"/> 554 549 <CursorPos X="6" Y="226"/> 555 <UsageCount Value="10"/> 556 <Loaded Value="True"/> 550 <UsageCount Value="12"/> 557 551 </Unit54> 558 552 </Units> 559 <JumpHistory Count="30" HistoryIndex="2 8">553 <JumpHistory Count="30" HistoryIndex="29"> 560 554 <Position1> 561 555 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 562 <Caret Line=" 6" Column="64" TopLine="1"/>556 <Caret Line="285" Column="10" TopLine="272"/> 563 557 </Position1> 564 558 <Position2> 565 559 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 566 <Caret Line=" 19" Column="18" TopLine="1"/>560 <Caret Line="234" Column="41" TopLine="228"/> 567 561 </Position2> 568 562 <Position3> 569 563 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 570 <Caret Line=" 87" Column="20" TopLine="69"/>564 <Caret Line="9" Column="52" TopLine="1"/> 571 565 </Position3> 572 566 <Position4> 573 567 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 574 <Caret Line=" 161" Column="34" TopLine="148"/>568 <Caret Line="282" Column="25" TopLine="269"/> 575 569 </Position4> 576 570 <Position5> 577 571 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 578 <Caret Line=" 5" Column="70" TopLine="1"/>572 <Caret Line="361" Column="13" TopLine="352"/> 579 573 </Position5> 580 574 <Position6> 581 575 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 582 <Caret Line=" 19" Column="18" TopLine="1"/>576 <Caret Line="291" Column="15" TopLine="274"/> 583 577 </Position6> 584 578 <Position7> 585 579 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 586 <Caret Line=" 87" Column="58" TopLine="66"/>580 <Caret Line="56" Column="45" TopLine="53"/> 587 581 </Position7> 588 582 <Position8> 589 583 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 590 <Caret Line=" 88" Column="73" TopLine="67"/>584 <Caret Line="356" Column="3" TopLine="354"/> 591 585 </Position8> 592 586 <Position9> 593 587 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 594 <Caret Line=" 91" Column="77" TopLine="70"/>588 <Caret Line="56" Column="43" TopLine="43"/> 595 589 </Position9> 596 590 <Position10> 597 591 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 598 <Caret Line=" 92" Column="52" TopLine="71"/>592 <Caret Line="354" Column="59" TopLine="341"/> 599 593 </Position10> 600 594 <Position11> 601 595 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 602 <Caret Line=" 95" Column="58" TopLine="74"/>596 <Caret Line="356" Column="8" TopLine="341"/> 603 597 </Position11> 604 598 <Position12> 605 599 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 606 <Caret Line=" 96" Column="51" TopLine="75"/>600 <Caret Line="62" Column="19" TopLine="49"/> 607 601 </Position12> 608 602 <Position13> 609 <Filename Value=" ..\..\Managers\UCDManagerTabsPopup.pas"/>610 <Caret Line=" 97" Column="22" TopLine="76"/>603 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 604 <Caret Line="570" Column="26" TopLine="563"/> 611 605 </Position13> 612 606 <Position14> 613 <Filename Value=" ..\..\Managers\UCDManagerTabsPopup.pas"/>614 <Caret Line=" 100" Column="81" TopLine="79"/>607 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 608 <Caret Line="563" Column="32" TopLine="545"/> 615 609 </Position14> 616 610 <Position15> 617 <Filename Value=" ..\..\Managers\UCDManagerTabsPopup.pas"/>618 <Caret Line=" 101" Column="84" TopLine="80"/>611 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 612 <Caret Line="564" Column="33" TopLine="545"/> 619 613 </Position15> 620 614 <Position16> 621 615 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 622 <Caret Line=" 128" Column="15" TopLine="107"/>616 <Caret Line="292" Column="19" TopLine="275"/> 623 617 </Position16> 624 618 <Position17> 625 619 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 626 <Caret Line=" 19" Column="27" TopLine="6"/>620 <Caret Line="58" Column="30" TopLine="47"/> 627 621 </Position17> 628 622 <Position18> 629 <Filename Value="..\..\ Common\URectangle.pas"/>630 <Caret Line=" 35" Column="42" TopLine="25"/>623 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 624 <Caret Line="56" Column="33" TopLine="43"/> 631 625 </Position18> 632 626 <Position19> 633 <Filename Value="..\..\ Common\URectangle.pas"/>634 <Caret Line=" 139" Column="5" TopLine="117"/>627 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 628 <Caret Line="58" Column="31" TopLine="43"/> 635 629 </Position19> 636 630 <Position20> 637 <Filename Value="..\..\ Common\URectangle.pas"/>638 <Caret Line="3 1" Column="5" TopLine="18"/>631 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 632 <Caret Line="358" Column="1" TopLine="345"/> 639 633 </Position20> 640 634 <Position21> 641 635 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 642 <Caret Line=" 19" Column="27" TopLine="6"/>636 <Caret Line="56" Column="15" TopLine="43"/> 643 637 </Position21> 644 638 <Position22> 645 639 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 646 <Caret Line=" 87" Column="58" TopLine="66"/>640 <Caret Line="369" Column="13" TopLine="366"/> 647 641 </Position22> 648 642 <Position23> 649 643 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 650 <Caret Line=" 88" Column="73" TopLine="67"/>644 <Caret Line="380" Column="23" TopLine="360"/> 651 645 </Position23> 652 646 <Position24> 653 647 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 654 <Caret Line=" 106" Column="20" TopLine="85"/>648 <Caret Line="298" Column="32" TopLine="285"/> 655 649 </Position24> 656 650 <Position25> 657 651 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 658 <Caret Line=" 128" Column="35" TopLine="107"/>652 <Caret Line="61" Column="45" TopLine="47"/> 659 653 </Position25> 660 654 <Position26> 661 655 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 662 <Caret Line=" 141" Column="35" TopLine="120"/>656 <Caret Line="369" Column="74" TopLine="369"/> 663 657 </Position26> 664 658 <Position27> 665 659 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 666 <Caret Line=" 162" Column="16" TopLine="141"/>660 <Caret Line="298" Column="44" TopLine="285"/> 667 661 </Position27> 668 662 <Position28> 669 663 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 670 <Caret Line=" 175" Column="16" TopLine="154"/>664 <Caret Line="369" Column="49" TopLine="356"/> 671 665 </Position28> 672 666 <Position29> 673 667 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 674 <Caret Line=" 100" Column="44" TopLine="83"/>668 <Caret Line="62" Column="30" TopLine="47"/> 675 669 </Position29> 676 670 <Position30> 677 671 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 678 <Caret Line=" 258" Column="1" TopLine="245"/>672 <Caret Line="303" Column="16" TopLine="282"/> 679 673 </Position30> 680 674 </JumpHistory> -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r198 r205 103 103 procedure FormShow(Sender: TObject); 104 104 public 105 NewFileIndex: Integer; 106 SourceCodeContainer: TCDConjoinForm; 105 107 procedure InitDefaultDockLayout; 106 108 end; … … 176 178 ToolPaletteForm.Show; 177 179 180 SourceCodeContainer := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 181 TCDManager(SourceCodeContainer.DockManager).DockStyle := dsTabs; 182 TCDManager(SourceCodeContainer.DockManager).HeaderPos := hpTop; 183 178 184 NewContainer1.ManualDock(DockPanel); 179 185 NewContainer1.Show; 180 SourceEditorForm.ManualDock(DockPanel);181 SourceEditorForm.Show;186 // SourceCodeContainer.ManualDock(DockPanel); 187 // SourceCodeContainer.Show; 182 188 NewContainer2.ManualDock(DockPanel); 183 189 NewContainer2.Show; … … 243 249 244 250 procedure TMainForm.ANewFileExecute(Sender: TObject); 245 begin 246 SourceEditorForm.Show; 251 var 252 NewFile: TSourceEditorForm; 253 begin 254 Application.CreateForm(TSourceEditorForm, NewFile); 255 //NewFile := TSourceEditorForm.Create(nil); 256 Inc(NewFileIndex); 257 NewFile.Caption := 'Unit ' + IntToStr(NewFileIndex); 258 NewFile.ManualDock(SourceCodeContainer); 259 NewFile.Show; 247 260 end; 248 261 -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r199 r205 195 195 //Align := alTop; 196 196 //Height := 24; 197 Color := clBlue;197 //Color := clBlue; 198 198 Align := alClient; 199 199 OnChange := TabControlChange; -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r204 r205 7 7 uses 8 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, UCDManager, 9 UCDManagerTabs, Forms, URectangle ;9 UCDManagerTabs, Forms, URectangle, UCDConjoinForm; 10 10 11 11 type … … 53 53 TCDManagerTabsPopup = class(TCDManagerTabs) 54 54 private 55 SplitterMouseDrag: Boolean; 56 SplitterMousePos: TPoint; 55 57 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); override; 58 procedure SplitterMouseDown(Sender: TObject; Button: TMouseButton; 59 Shift: TShiftState; X, Y: Integer); 60 procedure SplitterMouseMove(Sender: TObject; Shift: TShiftState; 61 X, Y: Integer); 62 procedure SplitterMouseUp(Sender: TObject; Button: TMouseButton; 63 Shift: TShiftState; X, Y: Integer); 56 64 public 57 65 AutoHideEnabled: Boolean; 58 66 AutoHide: TCDAutoHide; 59 67 PopupForm: TForm; 68 HeaderPanel: TCDPanelHeader; 69 Splitter: TPanel; 60 70 procedure SetHeaderPos(const AValue: THeaderPos); override; 61 71 procedure PinShowButtonClick(Sender: TObject); … … 188 198 ControlVisible := True; 189 199 DoShow := False; 190 HideBounds := ShowBounds;200 HideBounds.Assign(ShowBounds); 191 201 end; 192 202 end else … … 231 241 C := TCDManagerTabsPopupItem(DockItems[PageControl.TabIndex]).Control; 232 242 C.Align := alClient; 233 C.Parent := PopupForm; 243 C.Parent := HeaderPanel.ControlPanel; 244 HeaderPanel.Header.Title.Caption := C.Caption; 234 245 Pos := Point(PageControl.Left, PageControl.Top); 235 246 … … 279 290 PopupForm.Visible := True; 280 291 PopupForm.BorderStyle := bsNone; 292 HeaderPanel := TCDPanelHeader.Create(nil); 293 HeaderPanel.Parent := PopupForm; 294 HeaderPanel.Align := alClient; 295 HeaderPanel.Visible := True; 296 Splitter := TPanel.Create(nil); 297 Splitter.Visible := True; 298 Splitter.Parent := PopupForm; 299 Splitter.OnMouseDown := SplitterMouseDown; 300 Splitter.OnMouseMove := SplitterMouseMove; 301 Splitter.OnMouseUp := SplitterMouseUp; 281 302 AutoHide := TCDAutoHide.Create; 282 303 AutoHide.Control := PopupForm; … … 293 314 AutoHide.Free; 294 315 PopupForm.Free; 316 HeaderPanel.Free; 295 317 inherited Destroy; 296 318 end; … … 339 361 end; 340 362 363 procedure TCDManagerTabsPopup.SplitterMouseDown(Sender: TObject; 364 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 365 begin 366 if Button = mbLeft then begin 367 SplitterMousePos := Point(X, Y); 368 SplitterMouseDrag := True; 369 end; 370 end; 371 372 procedure TCDManagerTabsPopup.SplitterMouseMove(Sender: TObject; Shift: TShiftState; 373 X, Y: Integer); 374 begin 375 if SplitterMouseDrag then begin 376 case Splitter.Align of 377 alLeft: begin 378 PopupForm.SetBounds(PopupForm.Left - (X - SplitterMousePos.X), 379 PopupForm.Top, PopupForm.Width - (X - SplitterMousePos.X), 380 PopupForm.Height); 381 end; 382 alRight: begin 383 PopupForm.SetBounds(PopupForm.Left, PopupForm.Top, 384 PopupForm.Width + (X - SplitterMousePos.X), PopupForm.Height); 385 end; 386 alTop: begin 387 PopupForm.SetBounds(PopupForm.Left,PopupForm.Top + (Y - SplitterMousePos.Y), 388 PopupForm.Width, PopupForm.Height + (Y - SplitterMousePos.Y)); 389 end; 390 alBottom: begin 391 PopupForm.SetBounds(PopupForm.Left, PopupForm.Top, 392 PopupForm.Width, PopupForm.Height + (Y - SplitterMousePos.Y)); 393 end; 394 end; 395 end; 396 end; 397 398 procedure TCDManagerTabsPopup.SplitterMouseUp(Sender: TObject; 399 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 400 begin 401 SplitterMouseDrag := False; 402 end; 403 341 404 procedure TCDManagerTabsPopup.SetHeaderPos(const AValue: THeaderPos); 405 const 406 SplitterSize: Integer = 4; 342 407 begin 343 408 inherited SetHeaderPos(AValue); … … 348 413 Align := alTop; 349 414 Height := 24; 415 Splitter.Align := alBottom; 416 Splitter.Height := SplitterSize; 417 Splitter.Cursor := crSizeNS; 350 418 end; 351 419 hpBottom: begin 352 420 Align := alBottom; 353 421 Height := 24; 422 Splitter.Align := alTop; 423 Splitter.Height := SplitterSize; 424 Splitter.Cursor := crSizeNS; 354 425 end; 355 426 hpLeft: begin 356 427 Align := alLeft; 357 428 Width := 24; 429 Splitter.Align := alRight; 430 Splitter.Width := SplitterSize; 431 Splitter.Cursor := crSizeWE; 358 432 end; 359 433 hpRight: begin 360 434 Align := alRight; 361 435 Width := 24; 436 Splitter.Align := alLeft; 437 Splitter.Width := SplitterSize; 438 Splitter.Cursor := crSizeWE; 362 439 end; 363 440 end;
Note:
See TracChangeset
for help on using the changeset viewer.