Changeset 198
- Timestamp:
- Mar 16, 2011, 12:32:41 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 3 added
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r197 r198 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="5 2">49 <Units Count="56"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 53 53 <UnitName Value="IDE"/> 54 54 <WindowIndex Value="0"/> 55 <TopLine Value=" 1"/>56 <CursorPos X=" 1" Y="17"/>55 <TopLine Value="4"/> 56 <CursorPos X="35" Y="18"/> 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="1"/> 68 <CursorPos X="1" Y="17"/> 69 <UsageCount Value="314"/> 70 <Loaded Value="True"/> 71 <LoadedDesigner Value="True"/> 65 <EditorIndex Value="5"/> 66 <WindowIndex Value="0"/> 67 <TopLine Value="158"/> 68 <CursorPos X="1" Y="165"/> 69 <UsageCount Value="314"/> 70 <Loaded Value="True"/> 72 71 </Unit1> 73 72 <Unit2> … … 79 78 <WindowIndex Value="0"/> 80 79 <TopLine Value="1"/> 81 <CursorPos X=" 31" Y="17"/>80 <CursorPos X="67" Y="2"/> 82 81 <UsageCount Value="314"/> 83 82 </Unit2> … … 106 105 <Unit5> 107 106 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 108 <EditorIndex Value="12"/> 109 <WindowIndex Value="0"/> 110 <TopLine Value="2320"/> 111 <CursorPos X="1" Y="2333"/> 112 <UsageCount Value="59"/> 113 <Loaded Value="True"/> 107 <WindowIndex Value="0"/> 108 <TopLine Value="1296"/> 109 <CursorPos X="1" Y="1309"/> 110 <UsageCount Value="60"/> 114 111 </Unit5> 115 112 <Unit6> … … 121 118 <WindowIndex Value="0"/> 122 119 <TopLine Value="4"/> 123 <CursorPos X=" 24" Y="17"/>120 <CursorPos X="50" Y="6"/> 124 121 <UsageCount Value="314"/> 125 122 </Unit6> … … 129 126 <TopLine Value="941"/> 130 127 <CursorPos X="1" Y="954"/> 131 <UsageCount Value="3 7"/>128 <UsageCount Value="36"/> 132 129 </Unit7> 133 130 <Unit8> … … 139 136 <WindowIndex Value="0"/> 140 137 <TopLine Value="4"/> 141 <CursorPos X=" 25" Y="17"/>138 <CursorPos X="62" Y="7"/> 142 139 <UsageCount Value="314"/> 143 140 </Unit8> … … 150 147 <WindowIndex Value="0"/> 151 148 <TopLine Value="3"/> 152 <CursorPos X=" 37" Y="16"/>149 <CursorPos X="25" Y="18"/> 153 150 <UsageCount Value="314"/> 154 151 </Unit9> … … 161 158 <WindowIndex Value="0"/> 162 159 <TopLine Value="5"/> 163 <CursorPos X=" 37" Y="18"/>160 <CursorPos X="61" Y="8"/> 164 161 <UsageCount Value="314"/> 165 162 </Unit10> … … 211 208 <Filename Value="..\..\UCDClient.pas"/> 212 209 <UnitName Value="UCDClient"/> 213 <EditorIndex Value="0"/> 214 <WindowIndex Value="0"/> 215 <TopLine Value="1"/> 216 <CursorPos X="14" Y="13"/> 217 <UsageCount Value="157"/> 218 <Loaded Value="True"/> 210 <WindowIndex Value="0"/> 211 <TopLine Value="81"/> 212 <CursorPos X="52" Y="92"/> 213 <UsageCount Value="156"/> 219 214 </Unit15> 220 215 <Unit16> 221 216 <Filename Value="..\..\UCDLayout.pas"/> 222 217 <UnitName Value="UCDLayout"/> 223 <EditorIndex Value="19"/>224 218 <WindowIndex Value="0"/> 225 219 <TopLine Value="1"/> 226 220 <CursorPos X="22" Y="16"/> 227 <UsageCount Value="66"/> 228 <Loaded Value="True"/> 221 <UsageCount Value="67"/> 229 222 </Unit16> 230 223 <Unit17> … … 238 231 <Filename Value="..\..\Common\URectangle.pas"/> 239 232 <UnitName Value="URectangle"/> 240 <EditorIndex Value="18"/>241 233 <WindowIndex Value="0"/> 242 234 <TopLine Value="110"/> 243 235 <CursorPos X="18" Y="126"/> 244 <UsageCount Value="31"/> 245 <Loaded Value="True"/> 236 <UsageCount Value="32"/> 246 237 </Unit18> 247 238 <Unit19> … … 251 242 <TopLine Value="770"/> 252 243 <CursorPos X="22" Y="783"/> 253 <UsageCount Value="1 2"/>244 <UsageCount Value="11"/> 254 245 </Unit19> 255 246 <Unit20> … … 258 249 <TopLine Value="913"/> 259 250 <CursorPos X="1" Y="930"/> 260 <UsageCount Value=" 5"/>251 <UsageCount Value="4"/> 261 252 </Unit20> 262 253 <Unit21> 263 254 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 264 255 <UnitName Value="Controls"/> 265 <EditorIndex Value="1 4"/>266 <WindowIndex Value="0"/> 267 <TopLine Value="1 389"/>268 <CursorPos X="1 4" Y="1432"/>269 <UsageCount Value="3 5"/>256 <EditorIndex Value="1"/> 257 <WindowIndex Value="0"/> 258 <TopLine Value="1270"/> 259 <CursorPos X="15" Y="1283"/> 260 <UsageCount Value="37"/> 270 261 <Loaded Value="True"/> 271 262 </Unit21> 272 263 <Unit22> 273 264 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 274 <WindowIndex Value="0"/> 275 <TopLine Value="7151"/> 276 <CursorPos X="1" Y="7164"/> 265 <EditorIndex Value="4"/> 266 <WindowIndex Value="0"/> 267 <TopLine Value="7225"/> 268 <CursorPos X="31" Y="7250"/> 277 269 <UsageCount Value="115"/> 270 <Loaded Value="True"/> 278 271 </Unit22> 279 272 <Unit23> … … 282 275 <TopLine Value="751"/> 283 276 <CursorPos X="1" Y="764"/> 284 <UsageCount Value=" 3"/>277 <UsageCount Value="2"/> 285 278 </Unit23> 286 279 <Unit24> … … 290 283 <ResourceBaseClass Value="Form"/> 291 284 <UnitName Value="UCDCustomize"/> 292 <EditorIndex Value="5"/>293 285 <WindowIndex Value="0"/> 294 286 <TopLine Value="145"/> 295 287 <CursorPos X="34" Y="147"/> 296 <UsageCount Value="141"/> 297 <Loaded Value="True"/> 298 <LoadedDesigner Value="True"/> 288 <UsageCount Value="140"/> 299 289 </Unit24> 300 290 <Unit25> 301 291 <Filename Value="..\..\UCDCommon.pas"/> 302 292 <UnitName Value="UCDCommon"/> 303 <EditorIndex Value=" 7"/>304 <WindowIndex Value="0"/> 305 <TopLine Value="3 0"/>306 <CursorPos X="4 " Y="37"/>307 <UsageCount Value=" 56"/>293 <EditorIndex Value="8"/> 294 <WindowIndex Value="0"/> 295 <TopLine Value="3"/> 296 <CursorPos X="44" Y="11"/> 297 <UsageCount Value="61"/> 308 298 <Loaded Value="True"/> 309 299 </Unit25> … … 311 301 <Filename Value="..\..\UCDPopupMenu.pas"/> 312 302 <UnitName Value="UCDPopupMenu"/> 313 <EditorIndex Value=" 3"/>314 <WindowIndex Value="0"/> 315 <TopLine Value=" 255"/>316 <CursorPos X="2 7" Y="268"/>317 <UsageCount Value="14 2"/>303 <EditorIndex Value="10"/> 304 <WindowIndex Value="0"/> 305 <TopLine Value="159"/> 306 <CursorPos X="25" Y="173"/> 307 <UsageCount Value="141"/> 318 308 <Loaded Value="True"/> 319 309 </Unit26> … … 321 311 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/> 322 312 <UnitName Value="LCLClasses"/> 323 <WindowIndex Value="0"/> 324 <TopLine Value="32"/> 325 <CursorPos X="20" Y="45"/> 326 <UsageCount Value="7"/> 313 <EditorIndex Value="11"/> 314 <WindowIndex Value="0"/> 315 <TopLine Value="81"/> 316 <CursorPos X="20" Y="94"/> 317 <UsageCount Value="10"/> 318 <Loaded Value="True"/> 327 319 </Unit27> 328 320 <Unit28> … … 332 324 <TopLine Value="1"/> 333 325 <CursorPos X="24" Y="16"/> 334 <UsageCount Value="1 5"/>326 <UsageCount Value="14"/> 335 327 </Unit28> 336 328 <Unit29> … … 340 332 <TopLine Value="1"/> 341 333 <CursorPos X="5" Y="11"/> 342 <UsageCount Value="1 8"/>334 <UsageCount Value="17"/> 343 335 </Unit29> 344 336 <Unit30> 345 337 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 346 338 <UnitName Value="UCDManagerTabs"/> 347 <EditorIndex Value=" 17"/>348 <WindowIndex Value="0"/> 349 <TopLine Value=" 11"/>350 <CursorPos X=" 3" Y="24"/>339 <EditorIndex Value="9"/> 340 <WindowIndex Value="0"/> 341 <TopLine Value="95"/> 342 <CursorPos X="54" Y="98"/> 351 343 <UsageCount Value="130"/> 352 344 <Loaded Value="True"/> … … 355 347 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 356 348 <UnitName Value="UCDManagerRegions"/> 357 <EditorIndex Value="9"/> 358 <WindowIndex Value="0"/> 359 <TopLine Value="12"/> 360 <CursorPos X="39" Y="16"/> 349 <IsVisibleTab Value="True"/> 350 <EditorIndex Value="7"/> 351 <WindowIndex Value="0"/> 352 <TopLine Value="61"/> 353 <CursorPos X="27" Y="84"/> 361 354 <UsageCount Value="129"/> 362 355 <Loaded Value="True"/> … … 365 358 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 366 359 <UnitName Value="UCDManagerTabsPopup"/> 367 <EditorIndex Value=" 2"/>368 <WindowIndex Value="0"/> 369 <TopLine Value=" 146"/>370 <CursorPos X=" 15" Y="159"/>360 <EditorIndex Value="0"/> 361 <WindowIndex Value="0"/> 362 <TopLine Value="36"/> 363 <CursorPos X="40" Y="49"/> 371 364 <UsageCount Value="120"/> 372 365 <Loaded Value="True"/> … … 377 370 <TopLine Value="762"/> 378 371 <CursorPos X="1" Y="775"/> 379 <UsageCount Value=" 4"/>372 <UsageCount Value="3"/> 380 373 </Unit33> 381 374 <Unit34> … … 384 377 <TopLine Value="148"/> 385 378 <CursorPos X="32" Y="160"/> 386 <UsageCount Value=" 4"/>379 <UsageCount Value="3"/> 387 380 </Unit34> 388 381 <Unit35> … … 391 384 <TopLine Value="53"/> 392 385 <CursorPos X="11" Y="66"/> 393 <UsageCount Value=" 4"/>386 <UsageCount Value="3"/> 394 387 </Unit35> 395 388 <Unit36> … … 398 391 <TopLine Value="141"/> 399 392 <CursorPos X="3" Y="143"/> 400 <UsageCount Value=" 4"/>393 <UsageCount Value="3"/> 401 394 </Unit36> 402 395 <Unit37> … … 405 398 <TopLine Value="2"/> 406 399 <CursorPos X="40" Y="3"/> 407 <UsageCount Value=" 3"/>400 <UsageCount Value="2"/> 408 401 <DefaultSyntaxHighlighter Value="None"/> 409 402 </Unit37> … … 417 410 <WindowIndex Value="0"/> 418 411 <TopLine Value="23"/> 419 <CursorPos X=" 15" Y="24"/>412 <CursorPos X="61" Y="27"/> 420 413 <UsageCount Value="215"/> 421 414 </Unit38> … … 423 416 <Filename Value="..\..\UCDManager.pas"/> 424 417 <UnitName Value="UCDManager"/> 425 <IsVisibleTab Value="True"/> 426 <EditorIndex Value="10"/> 427 <WindowIndex Value="0"/> 428 <TopLine Value="51"/> 429 <CursorPos X="34" Y="72"/> 418 <EditorIndex Value="6"/> 419 <WindowIndex Value="0"/> 420 <TopLine Value="40"/> 421 <CursorPos X="27" Y="57"/> 430 422 <UsageCount Value="105"/> 431 423 <Loaded Value="True"/> … … 434 426 <Filename Value="..\..\UCDConjoinForm.pas"/> 435 427 <UnitName Value="UCDConjoinForm"/> 436 <EditorIndex Value="1"/>437 428 <WindowIndex Value="0"/> 438 429 <TopLine Value="1"/> 439 430 <CursorPos X="31" Y="8"/> 440 <UsageCount Value="104"/> 441 <Loaded Value="True"/> 431 <UsageCount Value="103"/> 442 432 </Unit40> 443 433 <Unit41> 444 434 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 445 435 <UnitName Value="ExtCtrls"/> 446 <EditorIndex Value=" 11"/>447 <WindowIndex Value="0"/> 448 <TopLine Value="11 32"/>449 <CursorPos X=" 14" Y="1178"/>450 <UsageCount Value=" 97"/>436 <EditorIndex Value="2"/> 437 <WindowIndex Value="0"/> 438 <TopLine Value="111"/> 439 <CursorPos X="3" Y="124"/> 440 <UsageCount Value="100"/> 451 441 <Loaded Value="True"/> 452 442 </Unit41> … … 454 444 <Filename Value="..\..\UCDMaster.pas"/> 455 445 <UnitName Value="UCDMaster"/> 456 <EditorIndex Value=" 4"/>457 <WindowIndex Value="0"/> 458 <TopLine Value=" 2"/>459 <CursorPos X=" 38" Y="8"/>460 <UsageCount Value="10 2"/>446 <EditorIndex Value="12"/> 447 <WindowIndex Value="0"/> 448 <TopLine Value="11"/> 449 <CursorPos X="18" Y="19"/> 450 <UsageCount Value="101"/> 461 451 <Loaded Value="True"/> 462 452 </Unit42> … … 465 455 <UnitName Value="ComCtrls"/> 466 456 <WindowIndex Value="0"/> 467 <TopLine Value="2 86"/>468 <CursorPos X=" 43" Y="299"/>469 <UsageCount Value="9 7"/>457 <TopLine Value="255"/> 458 <CursorPos X="14" Y="304"/> 459 <UsageCount Value="96"/> 470 460 </Unit43> 471 461 <Unit44> … … 474 464 <TopLine Value="136"/> 475 465 <CursorPos X="3" Y="138"/> 476 <UsageCount Value=" 7"/>466 <UsageCount Value="6"/> 477 467 </Unit44> 478 468 <Unit45> … … 482 472 <TopLine Value="172"/> 483 473 <CursorPos X="17" Y="185"/> 484 <UsageCount Value=" 8"/>474 <UsageCount Value="7"/> 485 475 </Unit45> 486 476 <Unit46> … … 490 480 <ResourceBaseClass Value="Form"/> 491 481 <UnitName Value="UCDWindowList"/> 492 <EditorIndex Value="6"/>493 482 <WindowIndex Value="0"/> 494 483 <TopLine Value="33"/> 495 484 <CursorPos X="1" Y="47"/> 496 <UsageCount Value="29"/> 497 <Loaded Value="True"/> 498 <LoadedDesigner Value="True"/> 485 <UsageCount Value="30"/> 499 486 </Unit46> 500 487 <Unit47> … … 504 491 <TopLine Value="632"/> 505 492 <CursorPos X="14" Y="645"/> 506 <UsageCount Value=" 8"/>493 <UsageCount Value="7"/> 507 494 </Unit47> 508 495 <Unit48> … … 511 498 <TopLine Value="426"/> 512 499 <CursorPos X="3" Y="417"/> 513 <UsageCount Value=" 8"/>500 <UsageCount Value="7"/> 514 501 </Unit48> 515 502 <Unit49> … … 518 505 <ResourceBaseClass Value="DataModule"/> 519 506 <UnitName Value="UCDResource"/> 520 <EditorIndex Value="13"/>521 507 <WindowIndex Value="0"/> 522 508 <TopLine Value="13"/> 523 509 <CursorPos X="40" Y="31"/> 524 <UsageCount Value="26"/> 525 <Loaded Value="True"/> 510 <UsageCount Value="27"/> 526 511 </Unit49> 527 512 <Unit50> 528 513 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\imglist.pp"/> 529 514 <UnitName Value="ImgList"/> 530 <EditorIndex Value="15"/>531 515 <WindowIndex Value="0"/> 532 516 <TopLine Value="165"/> 533 517 <CursorPos X="15" Y="178"/> 534 <UsageCount Value="26"/> 535 <Loaded Value="True"/> 518 <UsageCount Value="27"/> 536 519 </Unit50> 537 520 <Unit51> 538 521 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\imglist.inc"/> 539 <EditorIndex Value="16"/>540 522 <WindowIndex Value="0"/> 541 523 <TopLine Value="554"/> 542 524 <CursorPos X="9" Y="564"/> 543 <UsageCount Value="26"/> 544 <Loaded Value="True"/> 525 <UsageCount Value="27"/> 545 526 </Unit51> 527 <Unit52> 528 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\inc\objpash.inc"/> 529 <WindowIndex Value="0"/> 530 <TopLine Value="179"/> 531 <CursorPos X="23" Y="192"/> 532 <UsageCount Value="10"/> 533 </Unit52> 534 <Unit53> 535 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\customtimer.pas"/> 536 <UnitName Value="CustomTimer"/> 537 <EditorIndex Value="3"/> 538 <WindowIndex Value="0"/> 539 <TopLine Value="169"/> 540 <CursorPos X="1" Y="182"/> 541 <UsageCount Value="11"/> 542 <Loaded Value="True"/> 543 </Unit53> 544 <Unit54> 545 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\menus.pp"/> 546 <UnitName Value="Menus"/> 547 <WindowIndex Value="0"/> 548 <TopLine Value="153"/> 549 <CursorPos X="15" Y="166"/> 550 <UsageCount Value="10"/> 551 </Unit54> 552 <Unit55> 553 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\menuitem.inc"/> 554 <WindowIndex Value="0"/> 555 <TopLine Value="441"/> 556 <CursorPos X="1" Y="454"/> 557 <UsageCount Value="10"/> 558 </Unit55> 546 559 </Units> 547 <JumpHistory Count=" 30" HistoryIndex="29">560 <JumpHistory Count="27" HistoryIndex="26"> 548 561 <Position1> 549 <Filename Value="..\..\UCD Manager.pas"/>550 <Caret Line=" 699" Column="19" TopLine="685"/>562 <Filename Value="..\..\UCDPopupMenu.pas"/> 563 <Caret Line="22" Column="11" TopLine="9"/> 551 564 </Position1> 552 565 <Position2> 553 <Filename Value="..\..\UCD Manager.pas"/>554 <Caret Line=" 697" Column="32" TopLine="685"/>566 <Filename Value="..\..\UCDPopupMenu.pas"/> 567 <Caret Line="82" Column="30" TopLine="76"/> 555 568 </Position2> 556 569 <Position3> 557 <Filename Value="..\..\UCD Manager.pas"/>558 <Caret Line=" 605" Column="18" TopLine="583"/>570 <Filename Value="..\..\UCDPopupMenu.pas"/> 571 <Caret Line="38" Column="30" TopLine="25"/> 559 572 </Position3> 560 573 <Position4> 561 <Filename Value="..\..\UCD Manager.pas"/>562 <Caret Line=" 34" Column="5" TopLine="20"/>574 <Filename Value="..\..\UCDPopupMenu.pas"/> 575 <Caret Line="25" Column="15" TopLine="12"/> 563 576 </Position4> 564 577 <Position5> 565 578 <Filename Value="..\..\UCDManager.pas"/> 566 <Caret Line=" 605" Column="22" TopLine="588"/>579 <Caret Line="251" Column="1" TopLine="240"/> 567 580 </Position5> 568 581 <Position6> 569 582 <Filename Value="..\..\UCDManager.pas"/> 570 <Caret Line=" 598" Column="9" TopLine="585"/>583 <Caret Line="243" Column="1" TopLine="238"/> 571 584 </Position6> 572 585 <Position7> 573 586 <Filename Value="..\..\UCDManager.pas"/> 574 <Caret Line=" 605" Column="10" TopLine="585"/>587 <Caret Line="244" Column="1" TopLine="238"/> 575 588 </Position7> 576 589 <Position8> 577 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>578 <Caret Line=" 4" Column="70" TopLine="1"/>590 <Filename Value="..\..\UCDManager.pas"/> 591 <Caret Line="245" Column="1" TopLine="238"/> 579 592 </Position8> 580 593 <Position9> 581 594 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 582 <Caret Line=" 18" Column="24" TopLine="1"/>595 <Caret Line="63" Column="1" TopLine="50"/> 583 596 </Position9> 584 597 <Position10> 585 598 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 586 <Caret Line="6 0" Column="24" TopLine="39"/>599 <Caret Line="64" Column="1" TopLine="50"/> 587 600 </Position10> 588 601 <Position11> 589 <Filename Value=" UMainForm.pas"/>590 <Caret Line=" 123" Column="25" TopLine="118"/>602 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 603 <Caret Line="65" Column="1" TopLine="50"/> 591 604 </Position11> 592 605 <Position12> 593 <Filename Value=" UMainForm.pas"/>594 <Caret Line=" 124" Column="25" TopLine="119"/>606 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 607 <Caret Line="66" Column="1" TopLine="50"/> 595 608 </Position12> 596 609 <Position13> 597 <Filename Value=" UMainForm.pas"/>598 <Caret Line=" 126" Column="25" TopLine="121"/>610 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 611 <Caret Line="69" Column="1" TopLine="50"/> 599 612 </Position13> 600 613 <Position14> 601 <Filename Value=" UMainForm.pas"/>602 <Caret Line=" 248" Column="20" TopLine="246"/>614 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 615 <Caret Line="70" Column="1" TopLine="50"/> 603 616 </Position14> 604 617 <Position15> 605 <Filename Value=" UMainForm.pas"/>606 <Caret Line=" 250" Column="19" TopLine="246"/>618 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 619 <Caret Line="71" Column="1" TopLine="50"/> 607 620 </Position15> 608 621 <Position16> 609 <Filename Value=" UMainForm.pas"/>610 <Caret Line=" 104" Column="15" TopLine="91"/>622 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 623 <Caret Line="72" Column="1" TopLine="51"/> 611 624 </Position16> 612 625 <Position17> 613 <Filename Value=" UMainForm.pas"/>614 <Caret Line=" 250" Column="32" TopLine="240"/>626 <Filename Value="..\..\UCDManager.pas"/> 627 <Caret Line="641" Column="1" TopLine="628"/> 615 628 </Position17> 616 629 <Position18> 617 <Filename Value=" UMainForm.pas"/>618 <Caret Line=" 252" Column="52" TopLine="240"/>630 <Filename Value="..\..\UCDManager.pas"/> 631 <Caret Line="642" Column="1" TopLine="628"/> 619 632 </Position18> 620 633 <Position19> 621 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>622 <Caret Line=" 17" Column="23" TopLine="13"/>634 <Filename Value="..\..\UCDManager.pas"/> 635 <Caret Line="643" Column="1" TopLine="628"/> 623 636 </Position19> 624 637 <Position20> 625 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>626 <Caret Line=" 119" Column="17" TopLine="105"/>638 <Filename Value="..\..\UCDManager.pas"/> 639 <Caret Line="644" Column="1" TopLine="628"/> 627 640 </Position20> 628 641 <Position21> 629 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>630 <Caret Line=" 16" Column="41" TopLine="6"/>642 <Filename Value="..\..\UCDManager.pas"/> 643 <Caret Line="647" Column="35" TopLine="628"/> 631 644 </Position21> 632 645 <Position22> 633 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>634 <Caret Line=" 17" Column="30" TopLine="6"/>646 <Filename Value="..\..\UCDManager.pas"/> 647 <Caret Line="2" Column="73" TopLine="1"/> 635 648 </Position22> 636 649 <Position23> 637 650 <Filename Value="..\..\UCDManager.pas"/> 638 <Caret Line=" 171" Column="21" TopLine="163"/>651 <Caret Line="69" Column="33" TopLine="48"/> 639 652 </Position23> 640 653 <Position24> 641 654 <Filename Value="..\..\UCDManager.pas"/> 642 <Caret Line="1 63" Column="25" TopLine="158"/>655 <Caret Line="181" Column="51" TopLine="160"/> 643 656 </Position24> 644 657 <Position25> 645 658 <Filename Value="..\..\UCDManager.pas"/> 646 <Caret Line=" 6" Column="58" TopLine="1"/>659 <Caret Line="182" Column="51" TopLine="161"/> 647 660 </Position25> 648 661 <Position26> 649 662 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 650 <Caret Line=" 59" Column="47" TopLine="55"/>663 <Caret Line="37" Column="43" TopLine="30"/> 651 664 </Position26> 652 665 <Position27> 653 666 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 654 <Caret Line="5 5" Column="28" TopLine="46"/>667 <Caret Line="5" Column="66" TopLine="1"/> 655 668 </Position27> 656 <Position28>657 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/>658 <Caret Line="16" Column="40" TopLine="3"/>659 </Position28>660 <Position29>661 <Filename Value="..\..\UCDManager.pas"/>662 <Caret Line="245" Column="9" TopLine="240"/>663 </Position29>664 <Position30>665 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/>666 <Caret Line="16" Column="39" TopLine="12"/>667 </Position30>668 669 </JumpHistory> 669 670 </ProjectOptions> … … 678 679 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 679 680 </SearchPaths> 681 <CodeGeneration> 682 <Checks> 683 <IOChecks Value="True"/> 684 <RangeChecks Value="True"/> 685 <OverflowChecks Value="True"/> 686 <StackChecks Value="True"/> 687 </Checks> 688 <VerifyObjMethodCallValidity Value="True"/> 689 </CodeGeneration> 680 690 <Linking> 691 <Debugging> 692 <UseHeaptrc Value="True"/> 693 </Debugging> 681 694 <Options> 682 695 <Win32> … … 686 699 </Linking> 687 700 <Other> 701 <CompilerMessages> 702 <UseMsgFile Value="True"/> 703 </CompilerMessages> 688 704 <CompilerPath Value="$(CompPath)"/> 689 705 </Other> -
Docking/CoolDocking/Demo/IDE/UCallStackForm.lfm
r190 r198 1 1 object CallStackForm: TCallStackForm 2 Left = 4463 Height = 2 404 Top = 1 525 Width = 3202 Left = 329 3 Height = 255 4 Top = 148 5 Width = 433 6 6 Caption = 'Call Stack' 7 ClientHeight = 255 8 ClientWidth = 433 7 9 LCLVersion = '0.9.31' 10 object ListView1: TListView 11 Left = 2 12 Height = 251 13 Top = 2 14 Width = 429 15 Align = alClient 16 BorderSpacing.Around = 2 17 Columns = < 18 item 19 end 20 item 21 end 22 item 23 end 24 item 25 end> 26 TabOrder = 0 27 ViewStyle = vsReport 28 end 8 29 object CoolDockClient1: TCDClient 30 Master = MainForm.CoolDockMaster1 9 31 Floatable = False 10 Master = MainForm.CoolDockMaster111 32 left = 59 12 33 top = 52 -
Docking/CoolDocking/Demo/IDE/UCallStackForm.pas
r189 r198 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, UCDClient; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 UCDClient; 9 10 10 11 type … … 15 16 published 16 17 CoolDockClient1: TCDClient; 18 ListView1: TListView; 17 19 { private declarations } 18 20 public -
Docking/CoolDocking/Demo/IDE/UComponentTree.lfm
r184 r198 8 8 ClientWidth = 411 9 9 OnShow = FormShow 10 LCLVersion = '0.9. 29'10 LCLVersion = '0.9.31' 11 11 object TreeView1: TTreeView 12 Left = 8 13 Height = 488 14 Top = 8 15 Width = 395 16 Anchors = [akTop, akLeft, akRight, akBottom] 12 Left = 2 13 Height = 495 14 Top = 2 15 Width = 407 16 Align = alClient 17 BorderSpacing.Around = 2 17 18 DefaultItemHeight = 15 18 19 TabOrder = 0 -
Docking/CoolDocking/Demo/IDE/ULocalVariablesForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object Memo1: TMemo 11 Left = 412 Height = 23 213 Top = 414 Width = 31 211 Left = 2 12 Height = 236 13 Top = 2 14 Width = 316 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 TabOrder = 0 18 18 end 19 19 object CoolDockClient1: TCDClient 20 Master = MainForm.CoolDockMaster1 20 21 Floatable = False 21 Master = MainForm.CoolDockMaster122 22 left = 103 23 23 top = 92 -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r197 r198 1 1 object MainForm: TMainForm 2 2 Left = 217 3 Height = 4 573 Height = 419 4 4 Top = 123 5 Width = 6435 Width = 536 6 6 Caption = 'CoolDocking Demo IDE' 7 ClientHeight = 4 388 ClientWidth = 6437 ClientHeight = 400 8 ClientWidth = 536 9 9 Menu = MainMenu1 10 10 OnClose = FormClose … … 13 13 object DockPanel: TPanel 14 14 Left = 0 15 Height = 41215 Height = 374 16 16 Top = 26 17 Width = 64317 Width = 536 18 18 Align = alClient 19 19 BevelOuter = bvNone … … 24 24 Height = 26 25 25 Top = 0 26 Width = 64326 Width = 536 27 27 Caption = 'ToolBar1' 28 28 Images = ImageList1 -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r197 r198 12 12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCDWindowList, 13 13 UCDCustomize, UComponentTree, UCDConjoinForm, UCDManager, 14 UCDMaster ;14 UCDMaster, UCDCommon; 15 15 16 16 const … … 160 160 if not Assigned(DefaultLayout) then begin 161 161 NewContainer1 := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 162 NewContainer1.Show; 162 TCDManager(NewContainer1.DockManager).DockStyle := dsPopupTabs; 163 TCDManager(NewContainer1.DockManager).HeaderPos := hpLeft; 163 164 164 165 StructureForm.ManualDock(NewContainer1, nil, alTop); … … 168 169 169 170 NewContainer2 := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 170 NewContainer2.Show; 171 TCDManager(NewContainer2.DockManager).DockStyle := dsPopupTabs; 172 TCDManager(NewContainer2.DockManager).HeaderPos := hpRight; 171 173 ProjectManagerForm.ManualDock(NewContainer2, nil, alTop); 172 174 ProjectManagerForm.Show; … … 175 177 176 178 NewContainer1.ManualDock(DockPanel); 179 NewContainer1.Show; 177 180 SourceEditorForm.ManualDock(DockPanel); 178 181 SourceEditorForm.Show; 179 182 NewContainer2.ManualDock(DockPanel); 183 NewContainer2.Show; 180 184 181 185 DefaultLayout := TCDLayout.Create; -
Docking/CoolDocking/Demo/IDE/UMessagesForm.lfm
r190 r198 1 1 object MessagesForm: TMessagesForm 2 Left = 3132 Left = 293 3 3 Height = 136 4 Top = 2 584 Top = 239 5 5 Width = 508 6 6 Caption = 'Messages' 7 7 ClientHeight = 136 8 8 ClientWidth = 508 9 Icon.Data = { 10 7E04000000000100010010100000010020006804000016000000280000001000 11 0000200000000100200000000000000400006400000064000000000000000000 12 000000000000000000000000000000000000F2F5F6FFC5D2D8FF8BA5B0FF698A 13 98FF698A98FF8BA5B0FFC5D2D8FFF2F5F6FF0000000000000000000000000000 14 00000000000000000000F5F8F9FFC5D2D8FF416D7EFF0C506AFF0A6C8FFF087B 15 A8FF087BA8FF0A6C8FFF0C506AFF507787FFC5D2D8FFFBFCFCFF000000000000 16 000000000000F5F8F9FFABBCC4FF0C506AFF0D90B9FF11B1DFFF11B1DFFF11B1 17 DFFF11B1DFFF0DA6D6FF0A9ED3FF087BA8FF0C506AFFB4C5CCFFFBFCFCFF0000 18 000000000000B4C5CCFF0C506AFF0DA6D6FF16BDE3FF17C6EBFF17C6EBFF17C6 19 EBFF17C6EBFF16BDE3FF11B1DFFF0DA6D6FF0D90B9FF0C506AFFC5D2D8FF0000 20 0000EAEFF1FF306073FF129FC3FF17C6EBFF1BD2F2FF1DD7F6FF1DD7F6FF1034 21 43FF103443FF103443FF17C6EBFF11B1DFFF0DA6D6FF087BA8FF507787FFF2F5 22 F6FFABBCC4FF0A6C8FFF17C6EBFF1DD7F6FF1FDCF9FF21E3FDFF21E3FDFF21E3 23 FDFF21E3FDFF1FDCF9FF103443FF17C6EBFF11B1DFFF0A9ED3FF0C506AFFC5D2 24 D8FF698A98FF0D90B9FF1BD2F2FF1FDCF9FF21E3FDFF22E6FFFF22E6FFFF22E6 25 FFFF22E6FFFF21E3FDFF1FDCF9FF103443FF16BDE3FF0DA6D6FF0A6C8FFF8BA5 26 B0FF416D7EFF14ADD1FF1DD7F6FF21E3FDFF22E6FFFF22E6FFFF22E6FFFF22E6 27 FFFF22E6FFFF22E6FFFF21E3FDFF1DD7F6FF17C6EBFF11B1DFFF087BA8FF698A 28 98FF416D7EFF14ADD1FF1FDCF9FF103443FF103443FF103443FF22E6FFFF22E6 29 FFFF22E6FFFF103443FF103443FF103443FF17C6EBFF11B1DFFF087BA8FF698A 30 98FF698A98FF129FC3FF1FDCF9FF103443FF103443FF103443FF103443FF22E6 31 FFFF103443FF103443FF103443FF103443FF17C6EBFF11B1DFFF0A6C8FFF8BA5 32 B0FF698A98FF103443FF103443FF103443FF103443FFFBFCFCFF103443FF1034 33 43FF103443FF103443FFFBFCFCFF103443FF103443FF103443FF103443FFC5D2 34 D8FFE8EDEFFF0C506AFF16BDE3FF103443FF103443FF103443FF103443FF22E6 35 FFFF103443FF103443FF103443FF103443FF16BDE3FF0D90B9FF416D7EFFABBC 36 C4FF00000000B4C5CCFF0C506AFF1DD7F6FF1FDCF9FF21E3FDFF21E3FDFF21E3 37 FDFF21E3FDFF1FDCF9FF1BD2F2FF17C6EBFF0DA6D6FF0C506AFFC5D2D8FF0000 38 000000000000F5F8F9FF8BA5B0FF0C506AFF16BDE3FF1DD7F6FF1FDCF9FF1FDC 39 F9FF1DD7F6FF1BD2F2FF17C6EBFF129FC3FF0C506AFFABBCC4FFFBFCFCFF0000 40 00000000000000000000F5F8F9FFB4C5CCFF0C506AFF0A6C8FFF129FC3FF14AD 41 D1FF14ADD1FF0D90B9FF0A6C8FFF306073FFC5D2D8FFF5F8F9FF000000000000 42 000000000000000000000000000000000000EAEFF1FFABBCC4FF698A98FF416D 43 7EFF416D7EFF698A98FFB4C5CCFFEDF1F2FF0000000000000000000000000000 44 00000000636500005C4C0000617200005C6C00005C7300006E2E0000222F0000 45 0A20000020200000203C0000697400006D650000616C00003D220000696E0000 46 3E0D 47 } 9 48 LCLVersion = '0.9.31' 10 49 object Memo1: TMemo 11 Left = 412 Height = 1 2813 Top = 414 Width = 50 050 Left = 2 51 Height = 132 52 Top = 2 53 Width = 504 15 54 Align = alClient 16 BorderSpacing.Around = 455 BorderSpacing.Around = 2 17 56 TabOrder = 0 18 57 end 19 58 object CoolDockClient1: TCDClient 59 Master = MainForm.CoolDockMaster1 20 60 Floatable = False 21 Master = MainForm.CoolDockMaster122 61 left = 184 23 62 top = 56 -
Docking/CoolDocking/Demo/IDE/UObjectInspectorForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object StringGrid1: TStringGrid 11 Left = 412 Height = 38 213 Top = 414 Width = 25 111 Left = 2 12 Height = 386 13 Top = 2 14 Width = 255 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 DefaultColWidth = 120 18 18 FixedRows = 0 … … 21 21 end 22 22 object CoolDockClient1: TCDClient 23 Master = MainForm.CoolDockMaster1 23 24 Floatable = False 24 Master = MainForm.CoolDockMaster125 25 left = 136 26 26 top = 96 -
Docking/CoolDocking/Demo/IDE/UProjectManagerForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object TreeView1: TTreeView 11 Left = 412 Height = 3 7913 Top = 414 Width = 2 0611 Left = 2 12 Height = 383 13 Top = 2 14 Width = 210 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 DefaultItemHeight = 15 18 18 TabOrder = 0 19 19 end 20 20 object CoolDockClient1: TCDClient 21 Master = MainForm.CoolDockMaster1 21 22 Floatable = False 22 Master = MainForm.CoolDockMaster123 23 left = 108 24 24 top = 64 -
Docking/CoolDocking/Demo/IDE/USourceEditorForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 inline SynEdit1: TSynEdit 11 Left = 012 Height = 34 913 Top = 014 Width = 44 811 Left = 2 12 Height = 345 13 Top = 2 14 Width = 444 15 15 Align = alClient 16 BorderSpacing.Around = 2 16 17 Font.Height = -13 17 18 Font.Name = 'Courier New' -
Docking/CoolDocking/Demo/IDE/UStructureForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object TreeView1: TTreeView 11 Left = 412 Height = 33 013 Top = 414 Width = 22 211 Left = 2 12 Height = 334 13 Top = 2 14 Width = 226 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 DefaultItemHeight = 15 18 18 TabOrder = 0 -
Docking/CoolDocking/Demo/IDE/UThreadStatusForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object ListView1: TListView 11 Left = 412 Height = 24 013 Top = 414 Width = 31 211 Left = 2 12 Height = 244 13 Top = 2 14 Width = 316 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 Columns = < 18 18 item … … 28 28 end 29 29 object CoolDockClient1: TCDClient 30 Master = MainForm.CoolDockMaster1 30 31 Floatable = False 31 Master = MainForm.CoolDockMaster132 32 left = 120 33 33 top = 68 -
Docking/CoolDocking/Demo/IDE/UToDoListForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object ListView1: TListView 11 Left = 412 Height = 23 213 Top = 414 Width = 31 211 Left = 2 12 Height = 236 13 Top = 2 14 Width = 316 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 Columns = < 18 18 item … … 28 28 end 29 29 object CoolDockClient1: TCDClient 30 Master = MainForm.CoolDockMaster1 30 31 Floatable = False 31 Master = MainForm.CoolDockMaster132 32 left = 119 33 33 top = 88 -
Docking/CoolDocking/Demo/IDE/UToolPaletteForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object TreeView1: TTreeView 11 Left = 412 Height = 34 413 Top = 414 Width = 19 511 Left = 2 12 Height = 348 13 Top = 2 14 Width = 199 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 DefaultItemHeight = 15 18 18 TabOrder = 0 19 19 end 20 20 object CoolDockClient1: TCDClient 21 Master = MainForm.CoolDockMaster1 21 22 Floatable = False 22 Master = MainForm.CoolDockMaster123 23 left = 55 24 24 top = 143 -
Docking/CoolDocking/Demo/IDE/UWatchListForm.lfm
r190 r198 9 9 LCLVersion = '0.9.31' 10 10 object Memo1: TMemo 11 Left = 412 Height = 23 213 Top = 414 Width = 31 211 Left = 2 12 Height = 236 13 Top = 2 14 Width = 316 15 15 Align = alClient 16 BorderSpacing.Around = 416 BorderSpacing.Around = 2 17 17 TabOrder = 0 18 18 end -
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r197 r198 17 17 PanelHeader: TCDPanelHeader; 18 18 Splitter: TSplitter; 19 procedure Paint(Sender: TObject); override; 19 20 constructor Create; 20 21 destructor Destroy; override; … … 26 27 private 27 28 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 29 function GetHeaderPos: THeaderPos; override; 30 procedure SetHeaderPos(const AValue: THeaderPos); override; 28 31 function GetDirection(InsertAt: TAlign): TCDDirection; 29 32 public … … 53 56 { TCDManagerRegionsItem } 54 57 58 procedure TCDManagerRegionsItem.Paint(Sender: TObject); 59 var 60 I: Integer; 61 R: TRect; 62 begin 63 inherited Paint(Sender); 64 with PanelHeader do 65 if not (csDesigning in ComponentState) then 66 if Assigned(Control) then begin 67 //R := Control.ClientRect; 68 //Canvas.FillRect(R); 69 Header.Visible := ShowHeader; 70 if ShowHeader then begin 71 if ControlPanel.DockClientCount = 0 then 72 Header.DrawGrabber(Canvas, Control) else 73 Header.DrawGrabber(Canvas, ControlPanel); 74 end; 75 end; 76 end; 77 55 78 constructor TCDManagerRegionsItem.Create; 56 79 begin … … 59 82 PanelHeader.Header.OnMouseDown := DockPanelMouseDown; 60 83 PanelHeader.Header.Title.OnMouseDown := DockPanelMouseDown; 84 PanelHeader.Header.Icon.OnMouseDown := DockPanelMouseDown; 61 85 62 86 Splitter := TSplitter.Create(nil); … … 81 105 82 106 { TCDManagerRegions } 107 108 function TCDManagerRegions.GetHeaderPos: THeaderPos; 109 begin 110 Result := inherited; 111 end; 112 113 procedure TCDManagerRegions.SetHeaderPos(const AValue: THeaderPos); 114 begin 115 inherited SetHeaderPos(AValue); 116 case AValue of 117 hpBottom, hpTop: FDockDirection := ddVertical; 118 hpLeft, hpRight: FDockDirection := ddHorizontal; 119 end; 120 end; 83 121 84 122 function TCDManagerRegions.GetDirection(InsertAt: TAlign): TCDDirection; … … 117 155 PanelHeader.Header.PopupMenu := Self.PopupMenu; 118 156 end; 119 if (Control is TForm) and Assigned((Control as TForm).Icon) then 157 if (Control is TForm) and Assigned((Control as TForm).Icon) then begin 120 158 NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon); 121 NewItem.PanelHeader.Parent := DockSite; 122 NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption; 123 124 NewItem.Control := Control; 125 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 126 Control.Parent := NewItem.PanelHeader.ControlPanel; 127 Control.Align := alClient; 128 if (InsertAt = alTop) or (InsertAt = alLeft) then 129 DockItems.Insert(0, NewItem) 130 else DockItems.Add(NewItem); 131 end; 159 NewItem.PanelHeader.Header.Icon.Width := NewItem.PanelHeader.Header.Icon.Picture.Bitmap.Width; 160 NewItem.PanelHeader.Header.Icon.Height := NewItem.PanelHeader.Header.Icon.Picture.Bitmap.Height; 161 end; 162 163 NewItem.PanelHeader.Parent := DockSite; 164 NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption; 165 166 NewItem.Control := Control; 167 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 168 Control.Parent := NewItem.PanelHeader.ControlPanel; 169 Control.Align := alClient; 170 if (InsertAt = alTop) or (InsertAt = alLeft) then 171 DockItems.Insert(0, NewItem) 172 else DockItems.Add(NewItem); 173 end; 132 174 133 175 procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign; … … 248 290 PanelHeader.Width := Self.DockSite.Width div 249 291 Self.DockSite.DockClientCount; 250 //TCDClientPanel(FDockPanels[I]).DockPanelPaint(Self);292 Paint(Self); 251 293 if I < (DockItems.Count - 1) then PanelHeader.Align := BaseAlign 252 294 else PanelHeader.Align := alClient; -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r195 r198 16 16 TCDManagerTabsItem = class(TCDManagerItem) 17 17 Icon: TImage; 18 constructor Create; 18 constructor Create; override; 19 19 destructor Destroy; override; 20 20 end; … … 23 23 24 24 TCDManagerTabs = class(TCDManager) 25 p ublic25 private 26 26 MouseDown: Boolean; 27 27 MouseButton: TMouseButton; 28 28 MouseDownSkip: Boolean; 29 PageControl: TPageControl;30 TabImageList: TImageList;31 29 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 32 30 procedure TabControlMouseLeave(Sender: TObject); 33 procedure TabControlChange(Sender: TObject);34 31 procedure TabControlMouseDown(Sender: TObject; Button: TMouseButton; 35 32 Shift: TShiftState; X, Y: Integer); … … 39 36 DropCtl: TControl); override; 40 37 procedure UpdateClientSize; override; 41 private42 FTabsPos: THeaderPos;43 38 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 44 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign);45 39 procedure RemoveControl(Control: TControl); override; 40 function GetHeaderPos: THeaderPos; override; 41 procedure SetHeaderPos(const AValue: THeaderPos); override; 46 42 public 47 constructor Create(ADockSite: TWinControl); 43 TabImageList: TImageList; 44 PageControl: TPageControl; 45 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); virtual; 46 procedure TabControlChange(Sender: TObject); virtual; 47 constructor Create(ADockSite: TWinControl); override; 48 48 destructor Destroy; override; 49 49 procedure PaintSite(DC: HDC); override; … … 51 51 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; 52 52 procedure Switch(Index: Integer); override; 53 procedure SetTabsPos(const AValue: THeaderPos);54 53 procedure PopupMenuTabCloseClick(Sender: TObject); 55 property TabsPos: THeaderPos read FTabsPos write SetTabsPos;56 54 property DockItems: TObjectList read FDockItems write FDockItems; 57 55 end; … … 98 96 begin 99 97 if MouseDown then 100 if Assigned(PageControl.ActivePage) then begin98 if Assigned(PageControl.ActivePage) and not Locked then begin 101 99 //TCDManagerItem(DockItems[PageControl.TabIndex]).ClientAreaPanel.DockSite := False; 102 100 DragManager.DragStart(TCDManagerItem(DockItems[PageControl.TabIndex]).Control, False, 1); … … 188 186 TabImageList := TImageList.Create(ADockSite); //FDockSite); 189 187 with TabImageList do begin 190 Name := DockSite.Name + 'ImageList';188 Name := GetUniqueName(DockSite.Name + 'ImageList'); 191 189 end; 192 190 PageControl := TPageControl.Create(ADockSite); //FDockSite); 193 191 with PageControl do begin 194 192 Parent := ADockSite; 195 Name := Self.DockSite.Name + 'TabControl';193 Name := GetUniqueName(Self.DockSite.Name + 'TabControl'); 196 194 Visible := True; 197 195 //Align := alTop; … … 216 214 for I := 0 to ADockSite.DockClientCount - 1 do 217 215 InsertControlNoUpdate(ADockSite.DockClients[I], alNone); 218 TabControlChange(Self);216 //TabControlChange(Self); 219 217 //TCDManagerTabs(Self).TabControlChange(Self); 220 218 end; … … 287 285 begin 288 286 inherited RemoveControl(Control); 287 end; 288 289 function TCDManagerTabs.GetHeaderPos: THeaderPos; 290 begin 291 Result := inherited; 292 end; 293 294 procedure TCDManagerTabs.SetHeaderPos(const AValue: THeaderPos); 295 begin 296 inherited SetHeaderPos(AValue); 297 with PageControl do 298 case AValue of 299 hpAuto, hpTop: begin 300 //Align := alTop; 301 TabPosition := tpTop; 302 Height := GrabberSize; 303 end; 304 hpLeft: begin 305 //Align := alLeft; 306 TabPosition := tpLeft; 307 Width := GrabberSize; 308 end; 309 hpRight: begin 310 //Align := alRight; 311 TabPosition := tpRight; 312 Width := GrabberSize; 313 end; 314 hpBottom: begin 315 //Align := alBottom; 316 TabPosition := tpBottom; 317 Height := GrabberSize; 318 end; 319 end; 289 320 end; 290 321 … … 376 407 end; 377 408 378 procedure TCDManagerTabs.SetTabsPos(const AValue: THeaderPos);379 begin380 if FTabsPos = AValue then Exit;381 FTabsPos := AValue;382 with PageControl do383 case AValue of384 hpAuto, hpTop: begin385 Align := alTop;386 TabPosition := tpTop;387 Height := GrabberSize;388 end;389 hpLeft: begin390 Align := alLeft;391 TabPosition := tpLeft;392 Width := GrabberSize;393 end;394 hpRight: begin395 Align := alRight;396 TabPosition := tpRight;397 Width := GrabberSize;398 end;399 hpBottom: begin400 Align := alBottom;401 TabPosition := tpBottom;402 Height := GrabberSize;403 end;404 end;405 end;406 407 408 409 end. 409 410 -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r197 r198 6 6 7 7 uses 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, 9 UCDManagerTabs ;8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, UCDManager, 9 UCDManagerTabs, Forms; 10 10 11 11 type … … 40 40 { TCDManagerTabsPopupItem } 41 41 42 TCDManagerTabsPopupItem = class 43 constructor Create; 44 end; 45 46 { TCDStylePopupTabs } 47 48 TCDStylePopupTabs = class(TCDManagerTabs) 42 TCDManagerTabsPopupItem = class(TCDManagerTabsItem) 43 Hidden: Boolean; 44 constructor Create; override; 45 end; 46 47 { TCDManagerTabsPopup } 48 49 TCDManagerTabsPopup = class(TCDManagerTabs) 50 private 51 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); override; 49 52 public 50 53 AutoHideEnabled: Boolean; 51 54 AutoHide: TCDAutoHide; 52 55 PopupPanel: TPanel; 53 constructor Create(ADockSite: TWinControl); 56 procedure SetHeaderPos(const AValue: THeaderPos); override; 57 procedure PinShowButtonClick(Sender: TObject); 58 procedure PinHideButtonClick(Sender: TObject); 59 procedure TabControlChange(Sender: TObject); override; 60 constructor Create(ADockSite: TWinControl); override; 54 61 destructor Destroy; override; 55 private56 62 end; 57 63 … … 60 66 61 67 uses 62 UCDClient ;68 UCDClient, UCDManagerRegions; 63 69 64 70 { TCDManagerTabsPopupItem } … … 66 72 constructor TCDManagerTabsPopupItem.Create; 67 73 begin 74 inherited; 68 75 end; 69 76 … … 121 128 begin 122 129 StartBounds := Control.BoundsRect; 130 Control.Show; 123 131 Control.Align := alCustom; 124 132 Direction := 1; … … 165 173 end; 166 174 167 { TCDStylePopupTabs } 168 169 170 constructor TCDStylePopupTabs.Create(ADockSite: TWinControl); 175 { TCDManagerTabsPopup } 176 177 procedure TCDManagerTabsPopup.PinShowButtonClick(Sender: TObject); 178 begin 179 180 end; 181 182 procedure TCDManagerTabsPopup.PinHideButtonClick(Sender: TObject); 183 begin 184 185 end; 186 187 procedure TCDManagerTabsPopup.TabControlChange(Sender: TObject); 188 begin 189 inherited TabControlChange(Sender); 190 if PopupPanel.ControlCount > 0 then 191 PopupPanel.Controls[0].Parent := nil; 192 AutoHide.Hide; 193 if PageControl.TabIndex >= 0 then begin 194 TCDManagerTabsPopupItem(DockItems[PageControl.TabIndex]).Control.Parent := PopupPanel; 195 AutoHide.Control.Align := alCustom; 196 with AutoHide.Control do 197 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; 207 AutoHide.Show; 208 end; 209 end; 210 211 constructor TCDManagerTabsPopup.Create(ADockSite: TWinControl); 171 212 var 172 213 I: Integer; … … 174 215 inherited; 175 216 FDockStyle := dsPopupTabs; 217 PopupPanel := TPanel.Create(nil); 218 PopupPanel.DockManager := TCDManagerRegions.Create(PopupPanel); 219 PopupPanel.Visible := True; 176 220 AutoHide := TCDAutoHide.Create; 177 PopupPanel := TPanel.Create(nil); 178 end; 179 180 destructor TCDStylePopupTabs.Destroy; 221 AutoHide.Control := PopupPanel; 222 223 for I := 0 to DockItems.Count - 1 do begin 224 // if TCDManagerTabsPopupItem(DockItems[I]).Hidden then 225 // if 226 end; 227 end; 228 229 destructor TCDManagerTabsPopup.Destroy; 181 230 begin 182 231 AutoHide.Free; … … 185 234 end; 186 235 236 procedure TCDManagerTabsPopup.InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); 237 var 238 NewTabSheet: TTabSheet; 239 NewItem: TCDManagerTabsItem; 240 begin 241 //inherited; 242 begin 243 NewItem := TCDManagerTabsPopupItem.Create; 244 with NewItem do begin 245 //Panel.Parent := Self.DockSite; 246 Manager := Self; 247 //if DockStyle = dsList then Visible := True; 248 //Align := alClient; 249 //Header.PopupMenu := Self.PopupMenu; 250 //PopupMenu.Parent := Self.DockSite; 251 end; 252 if (Control is TForm) and Assigned((Control as TForm).Icon) then 253 NewItem.Icon.Picture.Assign((Control as TForm).Icon); 254 255 NewItem.Control := Control; 256 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 257 //AControl.Parent := NewItem.ClientAreaPanel; 258 Control.Align := alClient; 259 if (InsertAt = alTop) or (InsertAt = alLeft) then 260 DockItems.Insert(0, NewItem) 261 else DockItems.Add(NewItem); 262 263 end; 264 265 NewTabSheet := TTabSheet.Create(PageControl); 266 NewTabSheet.PageControl := PageControl; 267 NewTabSheet.Caption := Control.Caption; 268 NewTabSheet.ImageIndex := TabImageList.Count; 269 NewTabSheet.TabVisible := Control.Visible; 270 Control.Parent := NewTabSheet; 271 TabImageList.Add(NewItem.Icon.Picture.Bitmap, nil); 272 // if Assigned(NewItem.Splitter) then 273 // NewItem.Splitter.Visible := False; 274 // NewItem.ClientAreaPanel.Visible := False; 275 // NewItem.Visible := False; 276 //NewItem.Parent := NewTabSheet; 277 end; 278 279 procedure TCDManagerTabsPopup.SetHeaderPos(const AValue: THeaderPos); 280 begin 281 inherited SetHeaderPos(AValue); 282 AutoHide.TabPosition := HeaderPosToTabPos(AValue); 283 end; 284 187 285 end. 188 286 -
Docking/CoolDocking/UCDClient.pas
r194 r198 17 17 18 18 type 19 20 { TCDClient } 21 19 22 TCDClient = class(TCDClientBase) 20 23 private … … 23 26 procedure SetDockable(const AValue: Boolean); 24 27 procedure SetFloatable(const AValue: Boolean); 28 procedure SetPanel(const AValue: TPanel); override; 25 29 public 26 30 constructor Create(AOwner: TComponent); override; … … 78 82 end; 79 83 84 procedure TCDClient.SetPanel(const AValue: TPanel); 85 begin 86 inherited SetPanel(AValue); 87 if not (csDesigning in ComponentState) then begin 88 if Assigned(Panel) then 89 with Panel do begin 90 DockSite := True; 91 UseDockManager := True; 92 DockManager := TCDManagerRegions.Create(Panel); 93 end; 94 end; 95 end; 96 80 97 constructor TCDClient.Create(AOwner: TComponent); 81 98 begin -
Docking/CoolDocking/UCDCommon.pas
r192 r198 12 12 TCDHideType = (dhtPermanent, dhtTemporal); 13 13 TCDDirection = (ddNone, ddHorizontal, ddVertical); 14 THeaderPos = (hpAuto, hpLeft, hpTop, hpRight, hpBottom); 14 15 15 16 TCDMasterBase = class; … … 64 65 FPanel: TPanel; 65 66 procedure SetMaster(const AValue: TCDMasterBase); 66 procedure SetPanel(const AValue: TPanel); 67 public 68 procedure SetPanel(const AValue: TPanel); virtual; 67 69 published 68 70 property Master: TCDMasterBase read FMaster … … 117 119 118 120 procedure TCDClientBase.SetPanel(const AValue: TPanel); 119 var120 OldPanel: TPanel;121 121 begin 122 122 if FPanel = AValue then exit; 123 OldPanel := FPanel;123 if Assigned(FPanel) then FPanel.DockSite := False; 124 124 FPanel := AValue; 125 if not (csDesigning in ComponentState) then begin126 if Assigned(FPanel) then127 with FPanel do begin128 DockSite := True;129 UseDockManager := True;130 //DockManager := TCoolDockManager.Create(FPanel);131 end else begin132 OldPanel.DockSite := False;133 end;134 end;135 125 end; 136 126 -
Docking/CoolDocking/UCDManager.pas
r197 r198 14 14 15 15 type 16 THeaderPos = (hpAuto, hpLeft, hpTop, hpRight, hpBottom);17 18 16 TCDManager = class; 19 17 TCDManagerItem = class; … … 23 21 TCDHeaderButton = class 24 22 Icon: TImage; 23 Visible: Boolean; 25 24 constructor Create; 26 25 destructor Destroy; override; … … 32 31 private 33 32 procedure CloseButtonClick(Sender: TObject); 34 procedure DrawGrabber(Canvas: TCanvas; AControl: TControl);35 33 procedure PaintExecute(Sender: TObject); 36 34 procedure RearrangeButtons; … … 40 38 Icon: TImage; 41 39 ManagerItem: TCDManagerItem; 40 procedure DrawGrabber(Canvas: TCanvas; AControl: TControl); 42 41 constructor Create(TheOwner: TComponent); override; 43 42 destructor Destroy; override; … … 72 71 procedure Paint(Sender: TObject); virtual; 73 72 procedure VisibleChange(Sender: TObject); virtual; 74 constructor Create; 73 constructor Create; virtual; 75 74 destructor Destroy; override; 76 75 end; … … 81 80 private 82 81 FDockSite: TWinControl; 82 FHeaderPos: THeaderPos; 83 83 function GetDockSite: TWinControl; 84 function GetHeaderPos: THeaderPos;85 84 function GetMoveDuration: Integer; 86 85 procedure SetDockStyle(const AValue: TCDStyleType); 87 procedure SetHeaderPos(const AValue: THeaderPos);88 86 procedure SetMoveDuration(const AValue: Integer); 89 87 procedure SetVisible(const AValue: Boolean); 90 88 public 89 Locked: Boolean; 90 PopupMenu: TCDPopupMenu; 91 91 FDockStyle: TCDStyleType; 92 PopupMenu: TCDPopupMenu;93 92 constructor Create(ADockSite: TWinControl); override; 94 93 destructor Destroy; override; … … 100 99 DropCtl: TControl); virtual; 101 100 procedure DoSetVisible(const AValue: Boolean); virtual; 101 procedure SetHeaderPos(const AValue: THeaderPos); virtual; 102 function GetHeaderPos: THeaderPos; virtual; 102 103 103 104 // Inherited from TDockManager … … 131 132 end; 132 133 134 function HeaderPosToTabPos(HeaderPos: THeaderPos): TTabPosition; 135 133 136 134 137 implementation … … 137 140 UCDManagerRegions, UCDManagerTabs, UCDManagerRegionsPopup, UCDManagerTabsPopup, 138 141 UCDResource; 142 143 function HeaderPosToTabPos(HeaderPos: THeaderPos): TTabPosition; 144 begin 145 case HeaderPos of 146 hpBottom: Result := tpBottom; 147 hpLeft: Result := tpLeft; 148 hpTop: Result := tpTop; 149 hpRight: Result := tpRight; 150 hpAuto: Result := tpLeft; 151 end; 152 end; 139 153 140 154 { TCDHeaderButton } … … 204 218 205 219 procedure TCDManagerItem.Paint(Sender: TObject); 206 var 207 I: Integer; 208 R: TRect; 209 begin 210 (* if not (csDesigning in ComponentState) then 211 if Assigned(Control) then begin 212 R := Control.ClientRect; 213 Canvas.FillRect(R); 214 Header.Visible := ShowHeader; 215 if ShowHeader then begin 216 if ClientAreaPanel.DockClientCount = 0 then 217 Header.DrawGrabber(Canvas, Control) else 218 Header.DrawGrabber(Canvas, ClientAreaPanel); 219 end; 220 end;*) 220 begin 221 221 end; 222 222 … … 248 248 //(Control as TWinControl).DockSite := False; 249 249 //ClientAreaPanel.DockSite := False; 250 (Control as TWinControl).BeginDrag(False, 10); 251 DragManager.DragStart(Control, False, 1); 250 if not Manager.Locked then begin 251 (Control as TWinControl).BeginDrag(False, 10); 252 DragManager.DragStart(Control, False, 1); 253 end; 252 254 end; 253 255 end; … … 310 312 function TCDManager.GetHeaderPos: THeaderPos; 311 313 begin 312 314 Result := FHeaderPos; 313 315 end; 314 316 … … 527 529 end else 528 530 if AValue = dsPopupTabs then begin 529 NewManager := TCD StylePopupTabs.Create(FDockSite);531 NewManager := TCDManagerTabsPopup.Create(FDockSite); 530 532 end; 531 533 if DockSite.DockManager is TCDManager then … … 538 540 procedure TCDManager.SetHeaderPos(const AValue: THeaderPos); 539 541 begin 540 542 FHeaderPos := AValue; 541 543 end; 542 544 … … 600 602 Icon.Parent := Self; 601 603 Icon.OnClick := CloseButtonClick; 604 Visible := True; 602 605 end; 603 606 Buttons.Add(NewButton); … … 606 609 DataModule2.ImageList1.GetBitmap(1, Icon.Picture.Bitmap); 607 610 Icon.Parent := Self; 608 Icon.OnClick := CloseButtonClick; 611 Icon.OnClick := nil; 612 Visible := False; 613 end; 614 Buttons.Add(NewButton); 615 NewButton := TCDHeaderButton.Create; 616 with NewButton do begin 617 DataModule2.ImageList1.GetBitmap(2, Icon.Picture.Bitmap); 618 Icon.Parent := Self; 619 Icon.OnClick := nil; 620 Visible := False; 609 621 end; 610 622 Buttons.Add(NewButton); … … 640 652 else Title.Left := 6; 641 653 Title.Caption := AControl.Caption; 654 RearrangeButtons; 642 655 end; 643 656 end; … … 702 715 LeftPos := Self.Width; 703 716 for I := 0 to Buttons.Count - 1 do 704 with TCDHeaderButton(Buttons[I]), Icon do begin 705 Anchors := [akRight, akTop]; 717 with TCDHeaderButton(Buttons[I]) do 718 if Visible then begin 719 Icon.Anchors := [akRight, akTop]; 706 720 //Icon.Picture.Bitmap.SetSize(16, 16); 707 721 Icon.Width := Icon.Picture.Bitmap.Width; … … 712 726 713 727 //ShowMessage(IntToStr(Icon.Width) + ' ' + InttoStr(Icon.Height)); 714 Visible := True;715 end ;728 Icon.Visible := True; 729 end else Icon.Visible := False; 716 730 end; 717 731 -
Docking/CoolDocking/UCDPopupMenu.pas
r194 r198 14 14 15 15 TCDPopupMenu = class(TPopupMenu) 16 private 17 procedure PopupExecute(Sender: TObject); 16 18 public 17 19 Manager: TCDManagerBase; 20 PositionMenu: TMenuItem; 21 StyleMenu: TMenuItem; 22 LockedMenu: TMenuItem; 18 23 constructor Create(AManager: TCDManagerBase); 24 procedure UncheckMenuGroup(Item: TMenuItem); 19 25 procedure PopupMenuListClick(Sender: TObject); 20 26 procedure PopupMenuTabsClick(Sender: TObject); … … 30 36 procedure PopupMenuUndockClick(Sender: TObject); 31 37 procedure PopupMenuCustomizeClick(Sender: TObject); 38 procedure PopupMenuLockedClick(Sender: TObject); 32 39 end; 33 40 … … 55 62 SEnterNewWindowName = 'Enter new window name'; 56 63 SRenameWindow = 'Rename window'; 64 SLocked = 'Locked'; 57 65 58 66 59 67 { TCDPopupMenu } 68 69 procedure TCDPopupMenu.UncheckMenuGroup(Item: TMenuItem); 70 var 71 I: Integer; 72 begin 73 for I := 0 to Item.Count - 1 do 74 Item.Items[I].Checked := False; 75 end; 76 77 procedure TCDPopupMenu.PopupExecute(Sender: TObject); 78 begin 79 UncheckMenuGroup(StyleMenu); 80 StyleMenu.Items[Integer(TCDManager(Manager).DockStyle)].Checked := True; 81 UncheckMenuGroup(PositionMenu); 82 PositionMenu.Items[Integer(TCDManager(Manager).HeaderPos)].Checked := True;; 83 LockedMenu.Checked := TCDManager(Manager).Locked; 84 end; 60 85 61 86 constructor TCDPopupMenu.Create(AManager: TCDManagerBase); … … 68 93 Manager := AManager; 69 94 70 Name := TCDManager(AManager).DockSite.Name + '_' + 'PopupMenu'; 71 72 NewMenuItem := TMenuItem.Create(Self); 73 NewMenuItem.Caption := SDockStyle; 74 Items.Add(NewMenuItem); 75 76 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 95 Name := GetUniqueName(TCDManager(AManager).DockSite.Name + 'PopupMenu'); 96 OnPopup := PopupExecute; 97 98 StyleMenu := TMenuItem.Create(Self); 99 StyleMenu.Caption := SDockStyle; 100 Items.Add(StyleMenu); 101 102 NewMenuItem2 := TMenuItem.Create(StyleMenu); 77 103 NewMenuItem2.Caption := SDockList; 78 104 NewMenuItem2.OnClick := PopupMenuListClick; 79 NewMenuItem.Add(NewMenuItem2);80 81 NewMenuItem2 := TMenuItem.Create( NewMenuItem);105 StyleMenu.Add(NewMenuItem2); 106 107 NewMenuItem2 := TMenuItem.Create(StyleMenu); 82 108 NewMenuItem2.Caption := SDockTabs; 83 109 NewMenuItem2.OnClick := PopupMenuTabsClick; 84 NewMenuItem.Add(NewMenuItem2); 85 86 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 110 StyleMenu.Add(NewMenuItem2); 111 112 NewMenuItem2 := TMenuItem.Create(StyleMenu); 113 NewMenuItem2.Caption := SDockPopupTabs; 114 NewMenuItem2.OnClick := PopupMenuPopupTabsClick; 115 StyleMenu.Add(NewMenuItem2); 116 117 NewMenuItem2 := TMenuItem.Create(StyleMenu); 87 118 NewMenuItem2.Caption := SDockPopupList; 88 119 NewMenuItem2.OnClick := PopupMenuPopupListClick; 89 NewMenuItem.Add(NewMenuItem2); 90 91 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 92 NewMenuItem2.Caption := SDockPopupTabs; 93 NewMenuItem2.OnClick := PopupMenuPopupTabsClick; 94 NewMenuItem.Add(NewMenuItem2); 95 96 NewMenuItem := TMenuItem.Create(Self); 97 NewMenuItem.Caption := SPosition; 98 Items.Add(NewMenuItem); 99 100 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 120 StyleMenu.Add(NewMenuItem2); 121 122 PositionMenu := TMenuItem.Create(Self); 123 PositionMenu.Caption := SPosition; 124 Items.Add(PositionMenu); 125 126 NewMenuItem2 := TMenuItem.Create(PositionMenu); 101 127 NewMenuItem2.Caption := SPositionAuto; 102 128 NewMenuItem2.OnClick := PopupMenuPositionAutoClick; 103 NewMenuItem.Add(NewMenuItem2); 104 105 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 129 PositionMenu.Add(NewMenuItem2); 130 131 NewMenuItem2 := TMenuItem.Create(PositionMenu); 132 NewMenuItem2.Caption := SPositionLeft; 133 NewMenuItem2.OnClick := PopupMenuPositionLeftClick; 134 PositionMenu.Add(NewMenuItem2); 135 136 NewMenuItem2 := TMenuItem.Create(PositionMenu); 106 137 NewMenuItem2.Caption := SPositionTop; 107 138 NewMenuItem2.OnClick := PopupMenuPositionTopClick; 108 NewMenuItem.Add(NewMenuItem2);109 110 NewMenuItem2 := TMenuItem.Create( NewMenuItem);111 NewMenuItem2.Caption := SPosition Left;112 NewMenuItem2.OnClick := PopupMenuPosition LeftClick;113 NewMenuItem.Add(NewMenuItem2);114 115 NewMenuItem2 := TMenuItem.Create( NewMenuItem);139 PositionMenu.Add(NewMenuItem2); 140 141 NewMenuItem2 := TMenuItem.Create(PositionMenu); 142 NewMenuItem2.Caption := SPositionRight; 143 NewMenuItem2.OnClick := PopupMenuPositionRightClick; 144 PositionMenu.Add(NewMenuItem2); 145 146 NewMenuItem2 := TMenuItem.Create(PositionMenu); 116 147 NewMenuItem2.Caption := SPositionBottom; 117 148 NewMenuItem2.OnClick := PopupMenuPositionBottomClick; 118 NewMenuItem.Add(NewMenuItem2); 119 120 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 121 NewMenuItem2.Caption := SPositionRight; 122 NewMenuItem2.OnClick := PopupMenuPositionRightClick; 123 NewMenuItem.Add(NewMenuItem2); 149 PositionMenu.Add(NewMenuItem2); 124 150 125 151 NewMenuItem := TMenuItem.Create(Self); … … 142 168 NewMenuItem.OnClick := PopupMenuCustomizeClick; 143 169 Items.Add(NewMenuItem); 170 171 LockedMenu := TMenuItem.Create(Self); 172 LockedMenu.Caption := SLocked; 173 LockedMenu.OnClick := PopupMenuLockedClick; 174 Items.Add(LockedMenu); 144 175 end; 145 176 … … 200 231 if PopupComponent is TPageControl then 201 232 with TPageControl(PopupComponent) do begin 202 TCDManagerTabs(Manager). TabsPos := hpAuto;233 TCDManagerTabs(Manager).HeaderPos := hpAuto; 203 234 end else 204 235 if PopupComponent is TCDHeader then … … 212 243 if PopupComponent is TPageControl then 213 244 with TPageControl(PopupComponent) do begin 214 TCDManagerTabs(Manager). TabsPos := hpLeft;245 TCDManagerTabs(Manager).HeaderPos := hpLeft; 215 246 end else 216 247 if PopupComponent is TCDHeader then … … 224 255 if PopupComponent is TPageControl then 225 256 with TPageControl(PopupComponent) do begin 226 TCDManagerTabs(Manager). TabsPos := hpRight;257 TCDManagerTabs(Manager).HeaderPos := hpRight; 227 258 end else 228 259 if PopupComponent is TCDHeader then … … 236 267 if PopupComponent is TPageControl then 237 268 with TPageControl(PopupComponent) do begin 238 TCDManagerTabs(Manager). TabsPos := hpTop;269 TCDManagerTabs(Manager).HeaderPos := hpTop; 239 270 end else 240 271 if PopupComponent is TCDHeader then … … 248 279 if PopupComponent is TPageControl then 249 280 with TPageControl(PopupComponent) do begin 250 TCDManagerTabs(Manager). TabsPos := hpBottom;281 TCDManagerTabs(Manager).HeaderPos := hpBottom; 251 282 end else 252 283 if PopupComponent is TCDHeader then … … 280 311 end; 281 312 313 procedure TCDPopupMenu.PopupMenuLockedClick(Sender: TObject); 314 begin 315 if PopupComponent is TPageControl then 316 with TPageControl(PopupComponent) do begin 317 TCDManagerTabs(Manager).Locked := not TCDManagerTabs(Manager).Locked; 318 end else 319 if PopupComponent is TCDHeader then 320 with TCDHeader(PopupComponent) do begin 321 TCDManagerTabs(Manager).Locked := not TCDManagerTabs(Manager).Locked; 322 end; 323 end; 324 282 325 procedure TCDPopupMenu.PopupMenuListClick(Sender: TObject); 283 326 begin -
Docking/CoolDocking/languages/UCDPopupMenu.po
r189 r198 32 32 #: ucdpopupmenu.senternewwindowname 33 33 msgid "Enter new window name" 34 msgstr "" 35 36 #: ucdpopupmenu.slocked 37 msgid "Locked" 34 38 msgstr "" 35 39
Note:
See TracChangeset
for help on using the changeset viewer.