- Timestamp:
- Mar 7, 2011, 1:32:07 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r98 r176 6 6 <Author Value="Chronos"/> 7 7 <CompilerOptions> 8 <Version Value=" 9"/>8 <Version Value="10"/> 9 9 <PathDelim Value="\"/> 10 10 <SearchPaths> … … 77 77 </i18n> 78 78 <Type Value="RunAndDesignTime"/> 79 <RequiredPkgs Count=" 2">79 <RequiredPkgs Count="7"> 80 80 <Item1> 81 <PackageName Value="LCL "/>81 <PackageName Value="LCLBase"/> 82 82 </Item1> 83 83 <Item2> 84 <PackageName Value="LCLBase"/> 85 </Item2> 86 <Item3> 87 <PackageName Value="LCLBase"/> 88 </Item3> 89 <Item4> 90 <PackageName Value="LCLBase"/> 91 </Item4> 92 <Item5> 93 <PackageName Value="LCLBase"/> 94 </Item5> 95 <Item6> 96 <PackageName Value="LCL"/> 97 </Item6> 98 <Item7> 84 99 <PackageName Value="FCL"/> 85 100 <MinVersion Major="1" Valid="True"/> 86 </Item 2>101 </Item7> 87 102 </RequiredPkgs> 88 103 <UsageOptions> -
Docking/CoolDocking/Demo/Demo.lpi
r103 r176 30 30 </local> 31 31 </RunParams> 32 <RequiredPackages Count=" 2">32 <RequiredPackages Count="3"> 33 33 <Item1> 34 <PackageName Value="CoolDocking"/> 34 <PackageName Value="LCLBase"/> 35 <MinVersion Major="1" Release="1" Valid="True"/> 35 36 </Item1> 36 37 <Item2> 38 <PackageName Value="CoolDocking"/> 39 </Item2> 40 <Item3> 37 41 <PackageName Value="LCL"/> 38 </Item 2>42 </Item3> 39 43 </RequiredPackages> 40 <Units Count=" 64">44 <Units Count="80"> 41 45 <Unit0> 42 46 <Filename Value="Demo.lpr"/> 43 47 <IsPartOfProject Value="True"/> 44 48 <UnitName Value="Demo"/> 45 <EditorIndex Value="2"/> 46 <WindowIndex Value="0"/> 47 <TopLine Value="4"/> 48 <CursorPos X="34" Y="15"/> 49 <UsageCount Value="195"/> 50 <Loaded Value="True"/> 49 <WindowIndex Value="0"/> 50 <TopLine Value="3"/> 51 <CursorPos X="49" Y="5"/> 52 <UsageCount Value="201"/> 51 53 <DefaultSyntaxHighlighter Value="Delphi"/> 52 54 </Unit0> … … 57 59 <ResourceBaseClass Value="Form"/> 58 60 <UnitName Value="UMainForm"/> 59 <EditorIndex Value="1 4"/>60 <WindowIndex Value="0"/> 61 <TopLine Value=" 59"/>62 <CursorPos X=" 3" Y="75"/>63 <UsageCount Value=" 195"/>61 <EditorIndex Value="11"/> 62 <WindowIndex Value="0"/> 63 <TopLine Value="19"/> 64 <CursorPos X="25" Y="28"/> 65 <UsageCount Value="201"/> 64 66 <Loaded Value="True"/> 65 67 <LoadedDesigner Value="True"/> … … 72 74 <TopLine Value="1191"/> 73 75 <CursorPos X="15" Y="1203"/> 74 <UsageCount Value="60"/> 76 <UsageCount Value="59"/> 77 <DefaultSyntaxHighlighter Value="Delphi"/> 75 78 </Unit2> 76 79 <Unit3> … … 80 83 <TopLine Value="98"/> 81 84 <CursorPos X="27" Y="110"/> 82 <UsageCount Value=" 10"/>85 <UsageCount Value="9"/> 83 86 <DefaultSyntaxHighlighter Value="Delphi"/> 84 87 </Unit3> 85 88 <Unit4> 86 89 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 87 <EditorIndex Value="7"/>88 90 <WindowIndex Value="0"/> 89 91 <TopLine Value="3709"/> 90 92 <CursorPos X="1" Y="3726"/> 91 <UsageCount Value="5 3"/>92 < Loaded Value="True"/>93 <UsageCount Value="52"/> 94 <DefaultSyntaxHighlighter Value="Delphi"/> 93 95 </Unit4> 94 96 <Unit5> 95 97 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 96 <EditorIndex Value="8"/>97 98 <WindowIndex Value="0"/> 98 99 <TopLine Value="6352"/> 99 100 <CursorPos X="42" Y="6355"/> 100 <UsageCount Value="5 8"/>101 < Loaded Value="True"/>101 <UsageCount Value="57"/> 102 <DefaultSyntaxHighlighter Value="Delphi"/> 102 103 </Unit5> 103 104 <Unit6> … … 106 107 <TopLine Value="490"/> 107 108 <CursorPos X="3" Y="497"/> 108 <UsageCount Value="23"/> 109 <UsageCount Value="22"/> 110 <DefaultSyntaxHighlighter Value="Delphi"/> 109 111 </Unit6> 110 112 <Unit7> … … 113 115 <TopLine Value="206"/> 114 116 <CursorPos X="8" Y="219"/> 115 <UsageCount Value="10"/> 117 <UsageCount Value="9"/> 118 <DefaultSyntaxHighlighter Value="Delphi"/> 116 119 </Unit7> 117 120 <Unit8> 118 121 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 119 122 <UnitName Value="LCLProc"/> 120 <EditorIndex Value="6"/>121 123 <WindowIndex Value="0"/> 122 124 <TopLine Value="1516"/> 123 125 <CursorPos X="1" Y="1528"/> 124 <UsageCount Value="2 3"/>125 < Loaded Value="True"/>126 <UsageCount Value="22"/> 127 <DefaultSyntaxHighlighter Value="Delphi"/> 126 128 </Unit8> 127 129 <Unit9> … … 132 134 <ResourceBaseClass Value="Form"/> 133 135 <UnitName Value="UDockForm"/> 134 <EditorIndex Value="3"/> 135 <WindowIndex Value="0"/> 136 <TopLine Value="18"/> 137 <CursorPos X="1" Y="39"/> 138 <UsageCount Value="194"/> 139 <Loaded Value="True"/> 136 <EditorIndex Value="8"/> 137 <WindowIndex Value="0"/> 138 <TopLine Value="2"/> 139 <CursorPos X="23" Y="15"/> 140 <UsageCount Value="200"/> 141 <Loaded Value="True"/> 142 <LoadedDesigner Value="True"/> 140 143 <DefaultSyntaxHighlighter Value="Delphi"/> 141 144 </Unit9> … … 146 149 <TopLine Value="971"/> 147 150 <CursorPos X="3" Y="984"/> 148 <UsageCount Value="9"/> 151 <UsageCount Value="8"/> 152 <DefaultSyntaxHighlighter Value="Delphi"/> 149 153 </Unit10> 150 154 <Unit11> … … 154 158 <TopLine Value="819"/> 155 159 <CursorPos X="28" Y="826"/> 156 <UsageCount Value="24"/> 160 <UsageCount Value="23"/> 161 <DefaultSyntaxHighlighter Value="Delphi"/> 157 162 </Unit11> 158 163 <Unit12> … … 162 167 <TopLine Value="4756"/> 163 168 <CursorPos X="5" Y="4763"/> 164 <UsageCount Value=" 5"/>169 <UsageCount Value="4"/> 165 170 <DefaultSyntaxHighlighter Value="Delphi"/> 166 171 </Unit12> … … 171 176 <TopLine Value="702"/> 172 177 <CursorPos X="10" Y="719"/> 173 <UsageCount Value="1 9"/>178 <UsageCount Value="18"/> 174 179 <DefaultSyntaxHighlighter Value="Delphi"/> 175 180 </Unit13> … … 180 185 <TopLine Value="1245"/> 181 186 <CursorPos X="14" Y="1258"/> 182 <UsageCount Value="55"/> 187 <UsageCount Value="54"/> 188 <DefaultSyntaxHighlighter Value="Delphi"/> 183 189 </Unit14> 184 190 <Unit15> … … 188 194 <TopLine Value="480"/> 189 195 <CursorPos X="37" Y="496"/> 190 <UsageCount Value="5"/> 196 <UsageCount Value="4"/> 197 <DefaultSyntaxHighlighter Value="Delphi"/> 191 198 </Unit15> 192 199 <Unit16> … … 195 202 <TopLine Value="52"/> 196 203 <CursorPos X="30" Y="65"/> 197 <UsageCount Value="5"/> 204 <UsageCount Value="4"/> 205 <DefaultSyntaxHighlighter Value="Delphi"/> 198 206 </Unit16> 199 207 <Unit17> 200 208 <Filename Value="E:\Programy\Lazarus\lcl\include\customform.inc"/> 201 <EditorIndex Value="10"/>202 209 <WindowIndex Value="0"/> 203 210 <TopLine Value="85"/> 204 211 <CursorPos X="24" Y="94"/> 205 <UsageCount Value="1 1"/>206 < Loaded Value="True"/>212 <UsageCount Value="10"/> 213 <DefaultSyntaxHighlighter Value="Delphi"/> 207 214 </Unit17> 208 215 <Unit18> … … 212 219 <TopLine Value="267"/> 213 220 <CursorPos X="1" Y="269"/> 214 <UsageCount Value="2"/> 221 <UsageCount Value="1"/> 222 <DefaultSyntaxHighlighter Value="Delphi"/> 215 223 </Unit18> 216 224 <Unit19> … … 220 228 <TopLine Value="553"/> 221 229 <CursorPos X="44" Y="560"/> 222 <UsageCount Value="7"/> 230 <UsageCount Value="6"/> 231 <DefaultSyntaxHighlighter Value="Delphi"/> 223 232 </Unit19> 224 233 <Unit20> … … 228 237 <TopLine Value="492"/> 229 238 <CursorPos X="14" Y="505"/> 230 <UsageCount Value="30"/> 239 <UsageCount Value="29"/> 240 <DefaultSyntaxHighlighter Value="Delphi"/> 231 241 </Unit20> 232 242 <Unit21> … … 236 246 <TopLine Value="2148"/> 237 247 <CursorPos X="21" Y="2148"/> 238 <UsageCount Value="26"/> 248 <UsageCount Value="25"/> 249 <DefaultSyntaxHighlighter Value="Delphi"/> 239 250 </Unit21> 240 251 <Unit22> … … 244 255 <TopLine Value="391"/> 245 256 <CursorPos X="17" Y="404"/> 246 <UsageCount Value="11"/> 257 <UsageCount Value="10"/> 258 <DefaultSyntaxHighlighter Value="Delphi"/> 247 259 </Unit22> 248 260 <Unit23> 249 261 <Filename Value="..\UCoolDocking.pas"/> 250 262 <UnitName Value="UCoolDocking"/> 251 <IsVisibleTab Value="True"/> 252 <EditorIndex Value="5"/> 253 <WindowIndex Value="0"/> 254 <TopLine Value="438"/> 255 <CursorPos X="1" Y="450"/> 256 <UsageCount Value="87"/> 263 <EditorIndex Value="9"/> 264 <WindowIndex Value="0"/> 265 <TopLine Value="835"/> 266 <CursorPos X="6" Y="858"/> 267 <UsageCount Value="90"/> 257 268 <Loaded Value="True"/> 258 269 <DefaultSyntaxHighlighter Value="Delphi"/> … … 260 271 <Unit24> 261 272 <Filename Value="..\ReadMe.txt"/> 262 <EditorIndex Value="4"/>263 273 <WindowIndex Value="0"/> 264 274 <TopLine Value="1"/> 265 275 <CursorPos X="18" Y="11"/> 266 276 <UsageCount Value="19"/> 267 <Loaded Value="True"/>268 277 <DefaultSyntaxHighlighter Value="None"/> 269 278 </Unit24> … … 273 282 <TopLine Value="619"/> 274 283 <CursorPos X="22" Y="621"/> 275 <UsageCount Value="19"/> 284 <UsageCount Value="18"/> 285 <DefaultSyntaxHighlighter Value="Delphi"/> 276 286 </Unit25> 277 287 <Unit26> … … 280 290 <TopLine Value="27"/> 281 291 <CursorPos X="3" Y="32"/> 282 <UsageCount Value="19"/> 292 <UsageCount Value="18"/> 293 <DefaultSyntaxHighlighter Value="Delphi"/> 283 294 </Unit26> 284 295 <Unit27> … … 287 298 <TopLine Value="50"/> 288 299 <CursorPos X="14" Y="59"/> 289 <UsageCount Value="20"/> 300 <UsageCount Value="19"/> 301 <DefaultSyntaxHighlighter Value="Delphi"/> 290 302 </Unit27> 291 303 <Unit28> … … 294 306 <TopLine Value="84"/> 295 307 <CursorPos X="45" Y="90"/> 296 <UsageCount Value="19"/> 308 <UsageCount Value="18"/> 309 <DefaultSyntaxHighlighter Value="Delphi"/> 297 310 </Unit28> 298 311 <Unit29> … … 305 318 <TopLine Value="9"/> 306 319 <CursorPos X="19" Y="17"/> 307 <UsageCount Value="4 6"/>320 <UsageCount Value="45"/> 308 321 <DefaultSyntaxHighlighter Value="Delphi"/> 309 322 </Unit29> … … 314 327 <ResourceBaseClass Value="Form"/> 315 328 <UnitName Value="UCoolDockWindowList"/> 316 <WindowIndex Value="0"/> 317 <TopLine Value="73"/> 318 <CursorPos X="42" Y="90"/> 319 <UsageCount Value="11"/> 329 <EditorIndex Value="1"/> 330 <WindowIndex Value="0"/> 331 <TopLine Value="53"/> 332 <CursorPos X="1" Y="66"/> 333 <UsageCount Value="14"/> 334 <Loaded Value="True"/> 335 <LoadedDesigner Value="True"/> 320 336 <DefaultSyntaxHighlighter Value="Delphi"/> 321 337 </Unit30> … … 323 339 <Filename Value="SampleDockableForm.pas"/> 324 340 <IsPartOfProject Value="True"/> 325 <ComponentName Value=" Form1"/>341 <ComponentName Value="DockableForm"/> 326 342 <ResourceBaseClass Value="Form"/> 327 343 <UnitName Value="SampleDockableForm"/> 328 344 <WindowIndex Value="0"/> 329 345 <TopLine Value="1"/> 330 <CursorPos X=" 53" Y="2"/>331 <UsageCount Value="1 37"/>346 <CursorPos X="34" Y="12"/> 347 <UsageCount Value="144"/> 332 348 <DefaultSyntaxHighlighter Value="Delphi"/> 333 349 </Unit31> … … 337 353 <TopLine Value="223"/> 338 354 <CursorPos X="3" Y="226"/> 339 <UsageCount Value="3"/> 355 <UsageCount Value="2"/> 356 <DefaultSyntaxHighlighter Value="Delphi"/> 340 357 </Unit32> 341 358 <Unit33> … … 344 361 <TopLine Value="59"/> 345 362 <CursorPos X="4" Y="66"/> 346 <UsageCount Value="3"/> 363 <UsageCount Value="2"/> 364 <DefaultSyntaxHighlighter Value="Delphi"/> 347 365 </Unit33> 348 366 <Unit34> … … 352 370 <TopLine Value="3034"/> 353 371 <CursorPos X="1" Y="3047"/> 354 <UsageCount Value="10"/> 372 <UsageCount Value="9"/> 373 <DefaultSyntaxHighlighter Value="Delphi"/> 355 374 </Unit34> 356 375 <Unit35> … … 359 378 <TopLine Value="233"/> 360 379 <CursorPos X="45" Y="239"/> 361 <UsageCount Value="7"/> 380 <UsageCount Value="6"/> 381 <DefaultSyntaxHighlighter Value="Delphi"/> 362 382 </Unit35> 363 383 <Unit36> … … 366 386 <TopLine Value="98"/> 367 387 <CursorPos X="3" Y="103"/> 368 <UsageCount Value="6"/> 388 <UsageCount Value="5"/> 389 <DefaultSyntaxHighlighter Value="Delphi"/> 369 390 </Unit36> 370 391 <Unit37> … … 373 394 <TopLine Value="885"/> 374 395 <CursorPos X="3" Y="853"/> 375 <UsageCount Value="6"/> 396 <UsageCount Value="5"/> 397 <DefaultSyntaxHighlighter Value="Delphi"/> 376 398 </Unit37> 377 399 <Unit38> … … 380 402 <TopLine Value="1555"/> 381 403 <CursorPos X="1" Y="1568"/> 382 <UsageCount Value="6"/> 404 <UsageCount Value="5"/> 405 <DefaultSyntaxHighlighter Value="Delphi"/> 383 406 </Unit38> 384 407 <Unit39> … … 387 410 <TopLine Value="33"/> 388 411 <CursorPos X="10" Y="40"/> 389 <UsageCount Value="6"/> 412 <UsageCount Value="5"/> 413 <DefaultSyntaxHighlighter Value="Delphi"/> 390 414 </Unit39> 391 415 <Unit40> … … 394 418 <TopLine Value="29"/> 395 419 <CursorPos X="3" Y="32"/> 396 <UsageCount Value="6"/> 420 <UsageCount Value="5"/> 421 <DefaultSyntaxHighlighter Value="Delphi"/> 397 422 </Unit40> 398 423 <Unit41> … … 401 426 <TopLine Value="312"/> 402 427 <CursorPos X="10" Y="319"/> 403 <UsageCount Value="6"/> 428 <UsageCount Value="5"/> 429 <DefaultSyntaxHighlighter Value="Delphi"/> 404 430 </Unit41> 405 431 <Unit42> … … 408 434 <TopLine Value="85"/> 409 435 <CursorPos X="1" Y="92"/> 410 <UsageCount Value="5"/> 436 <UsageCount Value="4"/> 437 <DefaultSyntaxHighlighter Value="Delphi"/> 411 438 </Unit42> 412 439 <Unit43> … … 415 442 <TopLine Value="126"/> 416 443 <CursorPos X="89" Y="147"/> 417 <UsageCount Value="5"/> 444 <UsageCount Value="4"/> 445 <DefaultSyntaxHighlighter Value="Delphi"/> 418 446 </Unit43> 419 447 <Unit44> … … 426 454 <TopLine Value="35"/> 427 455 <CursorPos X="44" Y="45"/> 428 <UsageCount Value=" 89"/>456 <UsageCount Value="96"/> 429 457 <DefaultSyntaxHighlighter Value="Delphi"/> 430 458 </Unit44> … … 434 462 <TopLine Value="311"/> 435 463 <CursorPos X="3" Y="332"/> 436 <UsageCount Value="6"/> 464 <UsageCount Value="5"/> 465 <DefaultSyntaxHighlighter Value="Delphi"/> 437 466 </Unit45> 438 467 <Unit46> 439 468 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\classesh.inc"/> 440 <EditorIndex Value="11"/>441 469 <WindowIndex Value="0"/> 442 470 <TopLine Value="1638"/> 443 471 <CursorPos X="15" Y="1650"/> 444 <UsageCount Value="1 4"/>445 < Loaded Value="True"/>472 <UsageCount Value="13"/> 473 <DefaultSyntaxHighlighter Value="Delphi"/> 446 474 </Unit46> 447 475 <Unit47> … … 450 478 <TopLine Value="1"/> 451 479 <CursorPos X="1" Y="4"/> 452 <UsageCount Value=" 4"/>480 <UsageCount Value="3"/> 453 481 <DefaultSyntaxHighlighter Value="Delphi"/> 454 482 </Unit47> … … 458 486 <EditorIndex Value="0"/> 459 487 <WindowIndex Value="0"/> 460 <TopLine Value=" 171"/>461 <CursorPos X=" 3" Y="173"/>462 <UsageCount Value="4 3"/>488 <TopLine Value="61"/> 489 <CursorPos X="1" Y="74"/> 490 <UsageCount Value="46"/> 463 491 <Loaded Value="True"/> 464 492 <DefaultSyntaxHighlighter Value="Delphi"/> … … 467 495 <Filename Value="..\UCoolDockStylePopupTabs.pas"/> 468 496 <UnitName Value="UCoolDockStylePopupTabs"/> 469 <WindowIndex Value="0"/> 470 <TopLine Value="39"/> 471 <CursorPos X="1" Y="55"/> 472 <UsageCount Value="13"/> 497 <EditorIndex Value="15"/> 498 <WindowIndex Value="0"/> 499 <TopLine Value="33"/> 500 <CursorPos X="33" Y="52"/> 501 <UsageCount Value="16"/> 502 <Loaded Value="True"/> 473 503 <DefaultSyntaxHighlighter Value="Delphi"/> 474 504 </Unit49> … … 476 506 <Filename Value="..\UCoolDockStyle.pas"/> 477 507 <UnitName Value="UCoolDockStyle"/> 478 <WindowIndex Value="0"/> 479 <TopLine Value="12"/> 480 <CursorPos X="29" Y="24"/> 481 <UsageCount Value="43"/> 508 <EditorIndex Value="4"/> 509 <WindowIndex Value="0"/> 510 <TopLine Value="11"/> 511 <CursorPos X="15" Y="24"/> 512 <UsageCount Value="45"/> 513 <Loaded Value="True"/> 482 514 <DefaultSyntaxHighlighter Value="Delphi"/> 483 515 </Unit50> … … 488 520 <TopLine Value="64"/> 489 521 <CursorPos X="1" Y="85"/> 490 <UsageCount Value="4 1"/>522 <UsageCount Value="40"/> 491 523 <DefaultSyntaxHighlighter Value="Delphi"/> 492 524 </Unit51> … … 497 529 <TopLine Value="1"/> 498 530 <CursorPos X="44" Y="11"/> 499 <UsageCount Value="1 3"/>531 <UsageCount Value="12"/> 500 532 <DefaultSyntaxHighlighter Value="Delphi"/> 501 533 </Unit52> … … 505 537 <TopLine Value="164"/> 506 538 <CursorPos X="8" Y="176"/> 507 <UsageCount Value="11"/> 539 <UsageCount Value="10"/> 540 <DefaultSyntaxHighlighter Value="Delphi"/> 508 541 </Unit53> 509 542 <Unit54> 510 543 <Filename Value="..\UCoolDockClientPanel.pas"/> 511 544 <UnitName Value="UCoolDockClientPanel"/> 512 <EditorIndex Value=" 1"/>513 <WindowIndex Value="0"/> 514 <TopLine Value=" 78"/>515 <CursorPos X="1" Y=" 90"/>516 <UsageCount Value="4 2"/>545 <EditorIndex Value="3"/> 546 <WindowIndex Value="0"/> 547 <TopLine Value="84"/> 548 <CursorPos X="1" Y="105"/> 549 <UsageCount Value="45"/> 517 550 <Loaded Value="True"/> 518 551 <DefaultSyntaxHighlighter Value="Delphi"/> … … 521 554 <Filename Value="..\UCoolDockPopupMenu.pas"/> 522 555 <UnitName Value="UCoolDockPopupMenu"/> 523 <EditorIndex Value="1 3"/>556 <EditorIndex Value="10"/> 524 557 <WindowIndex Value="0"/> 525 558 <TopLine Value="5"/> 526 559 <CursorPos X="17" Y="17"/> 527 <UsageCount Value="1 5"/>560 <UsageCount Value="18"/> 528 561 <Loaded Value="True"/> 529 562 <DefaultSyntaxHighlighter Value="Delphi"/> … … 534 567 <TopLine Value="392"/> 535 568 <CursorPos X="1" Y="405"/> 536 <UsageCount Value="11"/> 569 <UsageCount Value="10"/> 570 <DefaultSyntaxHighlighter Value="Delphi"/> 537 571 </Unit56> 538 572 <Unit57> … … 541 575 <TopLine Value="115"/> 542 576 <CursorPos X="1" Y="128"/> 543 <UsageCount Value="10"/> 577 <UsageCount Value="9"/> 578 <DefaultSyntaxHighlighter Value="Delphi"/> 544 579 </Unit57> 545 580 <Unit58> 546 581 <Filename Value="E:\Programy\Lazarus\lcl\lclclasses.pp"/> 547 582 <UnitName Value="LCLClasses"/> 548 <EditorIndex Value="9"/>549 583 <WindowIndex Value="0"/> 550 584 <TopLine Value="92"/> 551 585 <CursorPos X="1" Y="112"/> 552 <UsageCount Value="1 1"/>553 < Loaded Value="True"/>586 <UsageCount Value="10"/> 587 <DefaultSyntaxHighlighter Value="Delphi"/> 554 588 </Unit58> 555 589 <Unit59> … … 559 593 <TopLine Value="66"/> 560 594 <CursorPos X="3" Y="72"/> 561 <UsageCount Value="11"/> 595 <UsageCount Value="10"/> 596 <DefaultSyntaxHighlighter Value="Delphi"/> 562 597 </Unit59> 563 598 <Unit60> … … 566 601 <TopLine Value="239"/> 567 602 <CursorPos X="1" Y="261"/> 568 <UsageCount Value="11"/> 603 <UsageCount Value="10"/> 604 <DefaultSyntaxHighlighter Value="Delphi"/> 569 605 </Unit60> 570 606 <Unit61> … … 573 609 <TopLine Value="4"/> 574 610 <CursorPos X="4" Y="16"/> 575 <UsageCount Value="11"/> 611 <UsageCount Value="10"/> 612 <DefaultSyntaxHighlighter Value="Delphi"/> 576 613 </Unit61> 577 614 <Unit62> … … 580 617 <TopLine Value="1038"/> 581 618 <CursorPos X="1" Y="1050"/> 582 <UsageCount Value="11"/> 619 <UsageCount Value="10"/> 620 <DefaultSyntaxHighlighter Value="Delphi"/> 583 621 </Unit62> 584 622 <Unit63> 585 623 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\compon.inc"/> 586 <EditorIndex Value="12"/>587 624 <WindowIndex Value="0"/> 588 625 <TopLine Value="514"/> 589 626 <CursorPos X="13" Y="520"/> 590 <UsageCount Value=" 10"/>591 < Loaded Value="True"/>627 <UsageCount Value="9"/> 628 <DefaultSyntaxHighlighter Value="Delphi"/> 592 629 </Unit63> 630 <Unit64> 631 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\comctrls.pp"/> 632 <UnitName Value="ComCtrls"/> 633 <EditorIndex Value="12"/> 634 <WindowIndex Value="0"/> 635 <TopLine Value="264"/> 636 <CursorPos X="31" Y="271"/> 637 <UsageCount Value="10"/> 638 <Loaded Value="True"/> 639 </Unit64> 640 <Unit65> 641 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 642 <UnitName Value="Forms"/> 643 <WindowIndex Value="0"/> 644 <TopLine Value="170"/> 645 <CursorPos X="17" Y="183"/> 646 <UsageCount Value="10"/> 647 </Unit65> 648 <Unit66> 649 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 650 <EditorIndex Value="7"/> 651 <WindowIndex Value="0"/> 652 <TopLine Value="391"/> 653 <CursorPos X="1" Y="404"/> 654 <UsageCount Value="12"/> 655 <Loaded Value="True"/> 656 </Unit66> 657 <Unit67> 658 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 659 <WindowIndex Value="0"/> 660 <TopLine Value="1917"/> 661 <CursorPos X="30" Y="1930"/> 662 <UsageCount Value="10"/> 663 </Unit67> 664 <Unit68> 665 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\sysutils\systhrdh.inc"/> 666 <WindowIndex Value="0"/> 667 <TopLine Value="5"/> 668 <CursorPos X="16" Y="18"/> 669 <UsageCount Value="10"/> 670 </Unit68> 671 <Unit69> 672 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\scrollingwincontrol.inc"/> 673 <WindowIndex Value="0"/> 674 <TopLine Value="233"/> 675 <CursorPos X="16" Y="238"/> 676 <UsageCount Value="10"/> 677 </Unit69> 678 <Unit70> 679 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 680 <UnitName Value="Controls"/> 681 <WindowIndex Value="0"/> 682 <TopLine Value="1296"/> 683 <CursorPos X="17" Y="1309"/> 684 <UsageCount Value="10"/> 685 </Unit70> 686 <Unit71> 687 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customcontrol.inc"/> 688 <WindowIndex Value="0"/> 689 <TopLine Value="27"/> 690 <CursorPos X="14" Y="30"/> 691 <UsageCount Value="10"/> 692 </Unit71> 693 <Unit72> 694 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 695 <WindowIndex Value="0"/> 696 <TopLine Value="6295"/> 697 <CursorPos X="36" Y="6298"/> 698 <UsageCount Value="10"/> 699 </Unit72> 700 <Unit73> 701 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 702 <EditorIndex Value="6"/> 703 <WindowIndex Value="0"/> 704 <TopLine Value="1378"/> 705 <CursorPos X="1" Y="1391"/> 706 <UsageCount Value="12"/> 707 <Loaded Value="True"/> 708 </Unit73> 709 <Unit74> 710 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\tabcontrol.inc"/> 711 <EditorIndex Value="2"/> 712 <WindowIndex Value="0"/> 713 <TopLine Value="464"/> 714 <CursorPos X="1" Y="477"/> 715 <UsageCount Value="13"/> 716 <Loaded Value="True"/> 717 </Unit74> 718 <Unit75> 719 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclproc.pas"/> 720 <UnitName Value="LCLProc"/> 721 <EditorIndex Value="5"/> 722 <WindowIndex Value="0"/> 723 <TopLine Value="1515"/> 724 <CursorPos X="1" Y="1527"/> 725 <UsageCount Value="13"/> 726 <Loaded Value="True"/> 727 </Unit75> 728 <Unit76> 729 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\imglist.pp"/> 730 <UnitName Value="ImgList"/> 731 <WindowIndex Value="0"/> 732 <TopLine Value="171"/> 733 <CursorPos X="15" Y="184"/> 734 <UsageCount Value="10"/> 735 </Unit76> 736 <Unit77> 737 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\imglist.inc"/> 738 <WindowIndex Value="0"/> 739 <TopLine Value="717"/> 740 <CursorPos X="25" Y="730"/> 741 <UsageCount Value="10"/> 742 </Unit77> 743 <Unit78> 744 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 745 <UnitName Value="ExtCtrls"/> 746 <IsVisibleTab Value="True"/> 747 <EditorIndex Value="13"/> 748 <WindowIndex Value="0"/> 749 <TopLine Value="214"/> 750 <CursorPos X="34" Y="231"/> 751 <UsageCount Value="10"/> 752 <Loaded Value="True"/> 753 </Unit78> 754 <Unit79> 755 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\custompage.inc"/> 756 <EditorIndex Value="14"/> 757 <WindowIndex Value="0"/> 758 <TopLine Value="56"/> 759 <CursorPos X="3" Y="69"/> 760 <UsageCount Value="10"/> 761 <Loaded Value="True"/> 762 </Unit79> 593 763 </Units> 594 <JumpHistory Count="30" HistoryIndex="2 9">764 <JumpHistory Count="30" HistoryIndex="27"> 595 765 <Position1> 596 <Filename Value="..\UCoolDock ClientPanel.pas"/>597 <Caret Line=" 110" Column="1" TopLine="98"/>766 <Filename Value="..\UCoolDockStyleTabs.pas"/> 767 <Caret Line="76" Column="1" TopLine="63"/> 598 768 </Position1> 599 769 <Position2> 600 <Filename Value=" E:\Programy\Lazarus\lcl\lclproc.pas"/>601 <Caret Line=" 1528" Column="1" TopLine="1516"/>770 <Filename Value="..\UCoolDockStyleTabs.pas"/> 771 <Caret Line="238" Column="1" TopLine="237"/> 602 772 </Position2> 603 773 <Position3> 604 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>605 <Caret Line="1 411" Column="1" TopLine="1399"/>774 <Filename Value="..\UCoolDockClientPanel.pas"/> 775 <Caret Line="105" Column="1" TopLine="83"/> 606 776 </Position3> 607 777 <Position4> 608 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>609 <Caret Line=" 1392" Column="1" TopLine="1380"/>778 <Filename Value="..\UCoolDockStyleTabs.pas"/> 779 <Caret Line="258" Column="1" TopLine="237"/> 610 780 </Position4> 611 781 <Position5> 612 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>613 <Caret Line="1 262" Column="1" TopLine="1250"/>782 <Filename Value="..\UCoolDockClientPanel.pas"/> 783 <Caret Line="105" Column="1" TopLine="84"/> 614 784 </Position5> 615 785 <Position6> 616 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>617 <Caret Line=" 1263" Column="1" TopLine="1250"/>786 <Filename Value="..\UCoolDockStyleTabs.pas"/> 787 <Caret Line="258" Column="1" TopLine="237"/> 618 788 </Position6> 619 789 <Position7> 620 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>621 <Caret Line="1 264" Column="1" TopLine="1250"/>790 <Filename Value="..\UCoolDockClientPanel.pas"/> 791 <Caret Line="105" Column="1" TopLine="84"/> 622 792 </Position7> 623 793 <Position8> 624 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>625 <Caret Line=" 3721" Column="1" TopLine="3709"/>794 <Filename Value="..\UCoolDockStyleTabs.pas"/> 795 <Caret Line="258" Column="1" TopLine="237"/> 626 796 </Position8> 627 797 <Position9> 628 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>629 <Caret Line=" 3724" Column="1" TopLine="3709"/>798 <Filename Value="..\UCoolDockClientPanel.pas"/> 799 <Caret Line="105" Column="1" TopLine="84"/> 630 800 </Position9> 631 801 <Position10> 632 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>633 <Caret Line=" 3726" Column="1" TopLine="3709"/>802 <Filename Value="..\UCoolDockStyleTabs.pas"/> 803 <Caret Line="258" Column="1" TopLine="237"/> 634 804 </Position10> 635 805 <Position11> 636 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>637 <Caret Line=" 405" Column="1" TopLine="393"/>806 <Filename Value="..\UCoolDockStyleTabs.pas"/> 807 <Caret Line="93" Column="1" TopLine="73"/> 638 808 </Position11> 639 809 <Position12> 640 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>641 <Caret Line=" 408" Column="1" TopLine="393"/>810 <Filename Value="..\UCoolDockStyleTabs.pas"/> 811 <Caret Line="258" Column="22" TopLine="245"/> 642 812 </Position12> 643 813 <Position13> 644 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>645 <Caret Line=" 2102" Column="1" TopLine="2090"/>814 <Filename Value="..\UCoolDockClientPanel.pas"/> 815 <Caret Line="105" Column="1" TopLine="84"/> 646 816 </Position13> 647 817 <Position14> 648 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>649 <Caret Line=" 101" Column="1" TopLine="89"/>818 <Filename Value="..\UCoolDockStyleTabs.pas"/> 819 <Caret Line="5" Column="75" TopLine="1"/> 650 820 </Position14> 651 821 <Position15> 652 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>653 <Caret Line=" 912" Column="1" TopLine="900"/>822 <Filename Value="..\UCoolDockStyleTabs.pas"/> 823 <Caret Line="52" Column="25" TopLine="31"/> 654 824 </Position15> 655 825 <Position16> 656 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>657 <Caret Line=" 913" Column="1" TopLine="900"/>826 <Filename Value="..\UCoolDockStyleTabs.pas"/> 827 <Caret Line="260" Column="25" TopLine="239"/> 658 828 </Position16> 659 829 <Position17> 660 <Filename Value="U DockForm.pas"/>661 <Caret Line=" 37" Column="1" TopLine="18"/>830 <Filename Value="UMainForm.pas"/> 831 <Caret Line="76" Column="44" TopLine="59"/> 662 832 </Position17> 663 833 <Position18> 664 <Filename Value="U DockForm.pas"/>665 <Caret Line=" 38" Column="1" TopLine="18"/>834 <Filename Value="UMainForm.pas"/> 835 <Caret Line="77" Column="44" TopLine="60"/> 666 836 </Position18> 667 837 <Position19> 668 <Filename Value="U DockForm.pas"/>669 <Caret Line=" 39" Column="1" TopLine="18"/>838 <Filename Value="UMainForm.pas"/> 839 <Caret Line="78" Column="44" TopLine="61"/> 670 840 </Position19> 671 841 <Position20> 672 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>673 <Caret Line=" 918" Column="1" TopLine="900"/>842 <Filename Value="UMainForm.pas"/> 843 <Caret Line="79" Column="44" TopLine="62"/> 674 844 </Position20> 675 845 <Position21> 676 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>677 <Caret Line=" 103" Column="1" TopLine="91"/>846 <Filename Value="UMainForm.pas"/> 847 <Caret Line="80" Column="44" TopLine="63"/> 678 848 </Position21> 679 849 <Position22> 680 <Filename Value=" E:\Programy\Lazarus\lcl\include\customform.inc"/>681 <Caret Line=" 94" Column="24" TopLine="85"/>850 <Filename Value="UMainForm.pas"/> 851 <Caret Line="82" Column="44" TopLine="65"/> 682 852 </Position22> 683 853 <Position23> 684 <Filename Value=" E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\compon.inc"/>685 <Caret Line=" 496" Column="14" TopLine="493"/>854 <Filename Value="UMainForm.pas"/> 855 <Caret Line="110" Column="43" TopLine="99"/> 686 856 </Position23> 687 857 <Position24> 688 <Filename Value="..\UCoolDock ClientPanel.pas"/>689 <Caret Line=" 109" Column="67" TopLine="87"/>858 <Filename Value="..\UCoolDockStyleTabs.pas"/> 859 <Caret Line="251" Column="22" TopLine="239"/> 690 860 </Position24> 691 861 <Position25> 692 <Filename Value="..\UCoolDock ing.pas"/>693 <Caret Line="2 19" Column="1" TopLine="207"/>862 <Filename Value="..\UCoolDockStyleTabs.pas"/> 863 <Caret Line="260" Column="20" TopLine="247"/> 694 864 </Position25> 695 865 <Position26> 696 <Filename Value=" ..\UCoolDockClientPanel.pas"/>697 <Caret Line=" 109" Column="1" TopLine="92"/>866 <Filename Value="UMainForm.pas"/> 867 <Caret Line="28" Column="25" TopLine="19"/> 698 868 </Position26> 699 869 <Position27> 700 <Filename Value=" ..\UCoolDockClientPanel.pas"/>701 <Caret Line=" 111" Column="1" TopLine="92"/>870 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\comctrls.pp"/> 871 <Caret Line="271" Column="31" TopLine="264"/> 702 872 </Position27> 703 873 <Position28> 704 <Filename Value=" ..\UCoolDockClientPanel.pas"/>705 <Caret Line=" 186" Column="1" TopLine="174"/>874 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 875 <Caret Line="225" Column="44" TopLine="214"/> 706 876 </Position28> 707 877 <Position29> 708 <Filename Value=" ..\UCoolDockClientPanel.pas"/>709 <Caret Line=" 191" Column="1" TopLine="174"/>878 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 879 <Caret Line="82" Column="62" TopLine="68"/> 710 880 </Position29> 711 881 <Position30> 712 <Filename Value=" UMainForm.pas"/>713 <Caret Line=" 75" Column="3" TopLine="59"/>882 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\custompage.inc"/> 883 <Caret Line="69" Column="3" TopLine="56"/> 714 884 </Position30> 715 885 </JumpHistory> 716 886 </ProjectOptions> 717 887 <CompilerOptions> 718 <Version Value=" 9"/>888 <Version Value="10"/> 719 889 <PathDelim Value="\"/> 720 890 <Target> … … 746 916 <UseHeaptrc Value="True"/> 747 917 </Debugging> 918 <Options> 919 <Win32> 920 <GraphicApplication Value="True"/> 921 </Win32> 922 </Options> 748 923 </Linking> 749 924 <Other> -
Docking/CoolDocking/Demo/Demo.lpr
r98 r176 22 22 Application.Initialize; 23 23 Application.CreateForm(TMainForm, MainForm); 24 Application.CreateForm(T Form1, Form1);24 Application.CreateForm(TDockableForm, DockableForm); 25 25 Application.CreateForm(TComponentTree, ComponentTree); 26 26 Application.Run; -
Docking/CoolDocking/Demo/SampleDockableForm.lfm
r59 r176 1 object Form1: TForm11 object DockableForm: TDockableForm 2 2 Left = 335 3 3 Height = 240 4 4 Top = 167 5 5 Width = 320 6 Caption = ' Form1'6 Caption = 'DockableForm' 7 7 ClientHeight = 240 8 8 ClientWidth = 320 … … 11 11 DragMode = dmAutomatic 12 12 UseDockManager = True 13 LCLVersion = '0.9. 29'13 LCLVersion = '0.9.31' 14 14 object Memo1: TMemo 15 15 Left = 82 … … 23 23 end 24 24 object CoolDockClient1: TCoolDockClient 25 Dockable = True25 Floatable = False 26 26 Master = MainForm.CoolDockMaster1 27 27 left = 104 -
Docking/CoolDocking/Demo/SampleDockableForm.pas
r58 r176 11 11 type 12 12 13 { T Form1}13 { TDockableForm } 14 14 15 T Form1= class(TForm)15 TDockableForm = class(TForm) 16 16 CoolDockClient1: TCoolDockClient; 17 17 ImageList1: TImageList; … … 24 24 25 25 var 26 Form1: TForm1;26 DockableForm: TDockableForm; 27 27 28 28 implementation -
Docking/CoolDocking/Demo/UMainForm.lfm
r103 r176 11 11 OnDestroy = FormDestroy 12 12 OnShow = FormShow 13 LCLVersion = '0.9. 29'13 LCLVersion = '0.9.31' 14 14 object Button1: TButton 15 15 Left = 10 … … 28 28 Align = alBottom 29 29 Anchors = [akTop, akLeft, akRight, akBottom] 30 ClientHeight = 368 31 ClientWidth = 576 30 32 DockSite = True 31 33 TabOrder = 1 34 object PageControl1: TPageControl 35 Left = 80 36 Height = 160 37 Top = 50 38 Width = 256 39 ActivePage = TabSheet2 40 MultiLine = True 41 TabIndex = 1 42 TabOrder = 0 43 OnChange = PageControl1Change 44 Options = [nboMultiLine] 45 object TabSheet1: TTabSheet 46 Caption = 'TabSheet1' 47 end 48 object TabSheet2: TTabSheet 49 Caption = 'TabSheet2' 50 end 51 object TabSheet3: TTabSheet 52 Caption = 'TabSheet3' 53 end 54 object TabSheet4: TTabSheet 55 Caption = 'TabSheet4' 56 end 57 end 58 object TabControl1: TTabControl 59 Left = 344 60 Height = 150 61 Top = 144 62 Width = 200 63 MultiLine = True 64 TabIndex = 2 65 TabOrder = 1 66 Tabs.Strings = ( 67 'ggdfg' 68 'gfgdfgfdgd' 69 'gdfgdfgdf' 70 'dfsdfs' 71 'dd' 72 'dddd' 73 'ddd' 74 ) 75 TabStop = False 76 end 32 77 end 33 78 object Button2: TButton -
Docking/CoolDocking/Demo/UMainForm.pas
r103 r176 26 26 MenuItem3: TMenuItem; 27 27 MenuItem4: TMenuItem; 28 PageControl1: TPageControl; 28 29 Panel1: TPanel; 30 TabControl1: TTabControl; 31 TabSheet1: TTabSheet; 32 TabSheet2: TTabSheet; 33 TabSheet3: TTabSheet; 34 TabSheet4: TTabSheet; 29 35 procedure Button1Click(Sender: TObject); 30 36 procedure Button2Click(Sender: TObject); … … 34 40 procedure MenuItem2Click(Sender: TObject); 35 41 procedure MenuItem4Click(Sender: TObject); 42 procedure PageControl1Change(Sender: TObject); 36 43 private 37 44 public … … 74 81 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 75 82 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 83 NewDockForm.ManualDock(ConjoinedDockForm1.Panel); 76 84 //NewDockForm.ManualDock(TForm(DockForms[0])); 77 85 //NewDockForm.ManualDock(TForm(DockForms[0])); … … 90 98 end; 91 99 100 procedure TMainForm.PageControl1Change(Sender: TObject); 101 begin 102 103 end; 104 92 105 function TMainForm.NewDockForm: TDockForm; 93 106 begin 94 Result := TDockForm.Create(Self); 107 Application.CreateForm(TDockForm, Result); 108 // Result := TDockForm.Create(Self); 95 109 Result.Name := 'Form' + IntToStr(FormIndex); 110 Result.CoolDockClient1.Name := 'CoolDockClient' + IntToStr(FormIndex); 96 111 Result.Caption := Result.Name; 97 112 Result.Memo1.Text := Result.Name; -
Docking/CoolDocking/UCoolDockPopupMenu.pas
r103 r176 6 6 7 7 uses 8 Classes, SysUtils, Menus, Controls, Dialogs, UCoolDockClientPanel; 8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, UCoolDockClientPanel, 9 ExtCtrls, ComCtrls; 9 10 10 11 type … … 34 35 35 36 uses 36 UCoolDocking ;37 UCoolDocking, UCoolDockStyleTabs; 37 38 38 39 resourcestring … … 162 163 Control: TControl; 163 164 begin 164 Control := FindLCLControl(Mouse.CursorPos); 165 if Assigned(Control) then 166 ShowMessage(Control.ClassName); 167 //DockSiteTForm(TCoolDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close; 165 if PopupComponent is TTabControl then 166 with TTabControl(PopupComponent) do begin 167 TForm(TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control).Close; 168 end; 169 if PopupComponent is TCoolDockHeader then 170 with TCoolDockHeader(PopupComponent) do begin 171 TForm(ParentClientPanel.Control).Close; 172 end; 168 173 end; 169 174 … … 172 177 Value: string; 173 178 begin 174 Value := TCoolDockManager(Manager).DockSite.Parent.Caption; 175 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then 176 TCoolDockManager(Manager).DockSite.Parent.Caption := Value; 179 //ShowMessage(PopupComponent.ClassName); 180 if PopupComponent is TTabControl then 181 with TTabControl(PopupComponent) do begin 182 Value := TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control.Caption; 183 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 184 TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control.Caption := Value; 185 Tabs[TabIndex] := Value; 186 end; 187 end; 188 if PopupComponent is TCoolDockHeader then 189 with TCoolDockHeader(PopupComponent) do begin 190 Value := ParentClientPanel.Control.Caption; 191 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 192 ParentClientPanel.Control.Caption := Value; 193 Title.Caption := Value; 194 end; 195 end; 177 196 end; 178 197 -
Docking/CoolDocking/UCoolDockStyleTabs.pas
r129 r176 71 71 // Hide all clients 72 72 with TCoolDockManager(Manager) do 73 for I := 0 to DockPanels.Count - 1 do begin 74 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 75 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Hide; 76 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Parent := DockSite; 77 TCoolDockClientPanel(DockPanels[I]).Control.Align := alClient; 78 //ShowMessage(TCoolDockClientPanel(DockPanels[I]).Control.ClassName); 79 Application.ProcessMessages; 80 81 // Workaround for "Cannot focus" error 82 TForm(TCoolDockClientPanel(DockPanels[I]).Control).ActiveControl := nil; 83 end; 73 for I := 0 to DockPanels.Count - 1 do 74 if TCoolDockClientPanel(DockPanels[I]).Control.Visible then begin 75 TCoolDockClientPanel(DockPanels[I]).Control.Tag := 1; 76 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 77 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Hide; 78 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Parent := DockSite; 79 TCoolDockClientPanel(DockPanels[I]).Control.Align := alClient; 80 //ShowMessage(TCoolDockClientPanel(DockPanels[I]).Control.ClassName); 81 Application.ProcessMessages; 82 83 // Workaround for "Cannot focus" error 84 TForm(TCoolDockClientPanel(DockPanels[I]).Control).ActiveControl := nil; 85 end; 84 86 85 87 // Show selected … … 88 90 with TCoolDockClientPanel(DockPanels[TabControl.TabIndex]), ClientAreaPanel do begin 89 91 Control.Show; 92 Control.Tag := 0; 90 93 (*AutoHide.Enable := True; 91 94 if AutoHide.Enable then begin … … 160 163 TabImageList.Clear; 161 164 with TCoolDockManager(Manager) do 162 for I := 0 to DockPanels.Count - 1 do begin 165 for I := 0 to DockPanels.Count - 1 do 166 if TCoolDockClientPanel(DockPanels[I]).Control.Visible then begin 167 TCoolDockClientPanel(DockPanels[I]).Control.Tag := 1; 163 168 TabControl.Tabs.Add(TCoolDockClientPanel(DockPanels[I]).Control.Caption); 164 169 TabImageList.Add(TCoolDockClientPanel(DockPanels[I]).Header.Icon.Picture.Bitmap, nil); … … 187 192 begin 188 193 inherited; 189 TabControl.Tabs.Add(AControl.Caption); 190 TabImageList.Add(NewPanel.Header.Icon.Picture.Bitmap, nil); 191 if Assigned(NewPanel.Splitter) then 192 NewPanel.Splitter.Visible := False; 193 NewPanel.ClientAreaPanel.Visible := False; 194 NewPanel.Visible := False; 195 TabControlChange(Self); 194 if AControl.Visible then begin 195 AControl.Tag := 1; 196 TabControl.Tabs.Add(AControl.Caption); 197 TabImageList.Add(NewPanel.Header.Icon.Picture.Bitmap, nil); 198 if Assigned(NewPanel.Splitter) then 199 NewPanel.Splitter.Visible := False; 200 NewPanel.ClientAreaPanel.Visible := False; 201 NewPanel.Visible := False; 202 TabControlChange(Self); 203 end; 196 204 end; 197 205 … … 216 224 with TCoolDockClientPanel(DockPanels[TabControl.TabIndex]) do begin 217 225 //Show; 218 if AValue then Control.Show; 226 if AValue and (not Control.Visible) and (Control.Tag = 1) then begin 227 Control.Show; 228 Control.Tag := 0; 229 end; 219 230 //TabControl.Show; 220 231 //ClientAreaPanel.Show; … … 227 238 begin 228 239 inherited; 229 if not Visible then 230 if Assigned(TWinControl(Control).DockManager) then231 with TCoolDockManager(TWinControl(Control).DockManager) do begin240 if not Visible then begin 241 if Assigned(TWinControl(Control).DockManager) then 242 with TCoolDockManager(TWinControl(Control).DockManager) do begin 232 243 // ShowMessage(IntToStr(TabControl.TabIndex) + ' ' + IntToStr(DockPanels.Count)); 233 244 // TabControl.Tabs[0].; … … 237 248 // end; 238 249 // ShowMessage(IntToStr(DockPanels.Count)); 250 if Control.Tag = 0 then begin 251 TabImageList.Delete(TabControl.Tabs.IndexOf(Control.Caption)); 252 253 with TabControl.Tabs do 254 Delete(IndexOf(Control.Caption)); 255 end; 256 end; 257 end else 258 begin 259 if Control.Tag = 0 then begin 260 TabImageList.Add(TCoolDockClientPanel(TCoolDockManager(Manager).FindControlInPanels(Control)).Header.Icon.Picture.Bitmap, nil); 261 TabControl.Tabs.Add(Control.Caption); 262 end; 239 263 end; 240 264 end; … … 242 266 procedure TCoolDockStyleTabs.SetTabsPos(const AValue: THeaderPos); 243 267 begin 244 (*if FTabsPos = AValue then Exit;268 if FTabsPos = AValue then Exit; 245 269 FTabsPos := AValue; 246 270 with TabControl do … … 266 290 Height := GrabberSize; 267 291 end; 268 end; *)292 end; 269 293 end; 270 294 -
Docking/CoolDocking/UCoolDockWindowList.lfm
r57 r176 8 8 ClientWidth = 382 9 9 OnShow = FormShow 10 LCLVersion = '0.9. 29'10 LCLVersion = '0.9.31' 11 11 object ListView1: TListView 12 12 Left = 8 … … 28 28 Width = 70 29 29 end> 30 ItemIndex = -131 30 ReadOnly = True 32 31 RowSelect = True … … 36 35 OnDblClick = ListView1DblClick 37 36 OnKeyPress = ListView1KeyPress 37 OnSelectItem = ListView1SelectItem 38 38 end 39 39 object ButtonFocus: TButton 40 Left = 214 40 Left = 299 41 Height = 25 42 Top = 224 43 Width = 75 44 Anchors = [akRight, akBottom] 45 Caption = 'Focus' 46 Enabled = False 47 OnClick = ButtonFocusClick 48 TabOrder = 1 49 end 50 object ButtonHide: TButton 51 Left = 219 52 Height = 25 53 Top = 224 54 Width = 75 55 Anchors = [akRight, akBottom] 56 Caption = 'Hide' 57 Enabled = False 58 OnClick = ButtonHideClick 59 TabOrder = 2 60 end 61 object ButtonShow: TButton 62 Left = 139 41 63 Height = 25 42 64 Top = 224 … … 44 66 Anchors = [akRight, akBottom] 45 67 Caption = 'Show' 46 OnClick = ButtonFocusClick 47 TabOrder = 1 48 end 49 object ButtonCancel: TButton 50 Left = 300 51 Height = 25 52 Top = 224 53 Width = 74 54 Anchors = [akRight, akBottom] 55 Caption = 'Cancel' 56 OnClick = ButtonCancelClick 57 TabOrder = 2 68 Enabled = False 69 OnClick = ButtonShowClick 70 TabOrder = 3 58 71 end 59 72 object ImageList1: TImageList -
Docking/CoolDocking/UCoolDockWindowList.lrs
r57 r176 5 5 +'Height'#3#0#1#3'Top'#3#142#0#5'Width'#3'~'#1#7'Caption'#6#11'Window list'#12 6 6 +'ClientHeight'#3#0#1#11'ClientWidth'#3'~'#1#6'OnShow'#7#8'FormShow'#10'LCLVe' 7 +'rsion'#6#6'0.9. 29'#0#9'TListView'#9'ListView1'#4'Left'#2#8#6'Height'#3#211#07 +'rsion'#6#6'0.9.31'#0#9'TListView'#9'ListView1'#4'Left'#2#8#6'Height'#3#211#0 8 8 +#3'Top'#2#5#5'Width'#3'n'#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'ak' 9 9 +'Bottom'#0#7'Columns'#14#1#7'Caption'#6#4'Name'#5'Width'#3#200#0#0#1#7'Capti' 10 10 +'on'#6#10'Dock state'#5'Width'#2'F'#0#1#7'Caption'#6#10'Visibility'#5'Width' 11 +#2'F'#0#0#9'ItemIndex'#2#255#8'ReadOnly'#9#9'RowSelect'#9#11'SmallImages'#7 12 +#10'ImageList1'#8'TabOrder'#2#0#9'ViewStyle'#7#8'vsReport'#10'OnDblClick'#7 13 +#17'ListView1DblClick'#10'OnKeyPress'#7#17'ListView1KeyPress'#0#0#7'TButton' 14 +#11'ButtonFocus'#4'Left'#3#214#0#6'Height'#2#25#3'Top'#3#224#0#5'Width'#2'K' 15 +#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#4'Show'#7'OnClick'#7#16 16 +'ButtonFocusClick'#8'TabOrder'#2#1#0#0#7'TButton'#12'ButtonCancel'#4'Left'#3 17 +','#1#6'Height'#2#25#3'Top'#3#224#0#5'Width'#2'J'#7'Anchors'#11#7'akRight'#8 18 +'akBottom'#0#7'Caption'#6#6'Cancel'#7'OnClick'#7#17'ButtonCancelClick'#8'Tab' 19 +'Order'#2#2#0#0#10'TImageList'#10'ImageList1'#4'left'#2' '#3'top'#2'&'#6'Bit' 20 +'map'#10#14#4#0#0'Li'#1#0#0#0#16#0#0#0#16#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 21 +#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0 22 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#0#0#0#255 23 +#0#0#0#255#189#189#189#255#255#255#255#255#255#255#255#255#189#189#189#255#0 24 +#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255 25 +#255#255#0#255#255#255#0#255#255#255#0#255#0#0#0#255#255#255#255#255#189#189 26 +#189#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0 27 +#0#0#0#0#0#255#255#255#0#255#255#255#0#255#255#255#0#255#0#0#0#255#255#255 28 +#255#255#0'{{'#255#0'{{'#255#0#0#0#255#0'{{'#255#0'{{'#255#255#255#0#255#0#0 29 +#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255#0#0#0 30 +#255#0'{{'#255#0#0#0#255#0'{{'#255#0'{{'#255#255#255#0#255#0#0#0#255#0'{{' 31 +#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0 32 +#255#255#255#0#255#0#0#0#255#255#255#0#255#255#255#0#255#0'{{'#255#255#255#0 33 +#255#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0 34 +#0#255#255#255#0#255#255#255#0#255#255#255#0#255#255#255#0#255#0'{{'#255#255 35 +#255#0#255#255#255#0#255#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255#0'{{' 36 +#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255#0#0#0 37 +#0#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0 38 +#0#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#255#255#255#0#255#0#0#0#0 39 +#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0#0#255 40 +#255#255#0#255'{{{'#255#255#255#0#255#0#0#0#255#0#0#0#255#0#0#0#0#0#0#0#255#0 41 +#0#0#0#255#255#0#255#0#0#0#0#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{' 42 +#255#255#255#0#255'{{{'#255#255#255#0#255'{{{'#255'{{{'#255#0#0#0#255#0#0#0#0 43 +#0#0#0#0#0#0#0#255#0#0#0#0#255#255#0#255#0#0#0#0#255#255#0#255#0#0#0#255#0'{' 44 +'{'#255#0'{{'#255'{{{'#255#255#255#0#255'{{{'#255#255#255#0#255#0#0#0#255#0#0 45 +#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#0#0#0#0#255#255#0#255#0#0#0#0 46 +#255#255#0#255#0'{{'#255#0'{{'#255#255#255#0#255'{{{'#255#255#255#0#255'{{{' 47 +#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#0#0#0 48 +#0#255#255#0#255#255#255#0#255#255#255#0#255#0'{{'#255'{{{'#255#255#255#0#255 49 +'{{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255 50 +#0#0#0#255#0#0#0#0#255#255#0#255#0#0#0#0#255#255#0#255#255#255#0#255#0#0#0 51 +#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 52 +#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0 11 +#2'F'#0#0#8'ReadOnly'#9#9'RowSelect'#9#11'SmallImages'#7#10'ImageList1'#8'Ta' 12 +'bOrder'#2#0#9'ViewStyle'#7#8'vsReport'#10'OnDblClick'#7#17'ListView1DblClic' 13 +'k'#10'OnKeyPress'#7#17'ListView1KeyPress'#12'OnSelectItem'#7#19'ListView1Se' 14 +'lectItem'#0#0#7'TButton'#11'ButtonFocus'#4'Left'#3'+'#1#6'Height'#2#25#3'To' 15 +'p'#3#224#0#5'Width'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6 16 +#5'Focus'#7'Enabled'#8#7'OnClick'#7#16'ButtonFocusClick'#8'TabOrder'#2#1#0#0 17 +#7'TButton'#10'ButtonHide'#4'Left'#3#219#0#6'Height'#2#25#3'Top'#3#224#0#5'W' 18 +'idth'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#4'Hide'#7'En' 19 +'abled'#8#7'OnClick'#7#15'ButtonHideClick'#8'TabOrder'#2#2#0#0#7'TButton'#10 20 +'ButtonShow'#4'Left'#3#139#0#6'Height'#2#25#3'Top'#3#224#0#5'Width'#2'K'#7'A' 21 +'nchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#4'Show'#7'Enabled'#8#7'OnC' 22 +'lick'#7#15'ButtonShowClick'#8'TabOrder'#2#3#0#0#10'TImageList'#10'ImageList' 23 +'1'#4'left'#2' '#3'top'#2'&'#6'Bitmap'#10#14#4#0#0'Li'#1#0#0#0#16#0#0#0#16#0 24 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#255#0 25 +#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 26 +#0#0#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#255#189#189#189#255#255#255#255#255 27 +#255#255#255#255#189#189#189#255#0#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0 28 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255#255#255#0#255 29 +#0#0#0#255#255#255#255#255#189#189#189#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0 30 +#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255 31 +#255#255#0#255#0#0#0#255#255#255#255#255#0'{{'#255#0'{{'#255#0#0#0#255#0'{{' 32 +#255#0'{{'#255#255#255#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255 33 +#255#0#255#255#255#0#255#0#0#0#255#0'{{'#255#0#0#0#255#0'{{'#255#0'{{'#255 34 +#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0 35 +#255#255#255#0#255#255#255#0#255#255#255#0#255#0#0#0#255#255#255#0#255#255 36 +#255#0#255#0'{{'#255#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0 37 +'{{'#255#0#0#0#255#0#0#0#0#0#0#0#255#255#255#0#255#255#255#0#255#255#255#0 38 +#255#255#255#0#255#0'{{'#255#255#255#0#255#255#255#0#255#255#255#0#255#0#0#0 39 +#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0#0#0#255#255 40 +#255#0#255#255#255#0#255#0#0#0#0#0#0#0#255#0'{{'#255#0'{{'#255#0'{{'#255#0'{' 41 +'{'#255#0'{{'#255#0'{{'#255#0#0#0#255#0'{{'#255#0'{{'#255#0#0#0#255#0#0#0#0#0 42 +#0#0#255#255#255#0#255#0#0#0#0#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255#0 43 +'{{'#255#0'{{'#255#0#0#0#255#255#255#0#255'{{{'#255#255#255#0#255#0#0#0#255#0 44 +#0#0#255#0#0#0#0#0#0#0#255#0#0#0#0#255#255#0#255#0#0#0#0#0#0#0#255#0'{{'#255 45 +#0'{{'#255#0'{{'#255#0'{{'#255#255#255#0#255'{{{'#255#255#255#0#255'{{{'#255 46 +'{{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#255#0#0#0#0#255#255#0#255#0#0#0#0 47 +#255#255#0#255#0#0#0#255#0'{{'#255#0'{{'#255'{{{'#255#255#255#0#255'{{{'#255 48 +#255#255#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#255#255#0#255#0#0 49 +#0#0#255#255#0#255#0#0#0#0#255#255#0#255#0'{{'#255#0'{{'#255#255#255#0#255'{' 50 +'{{'#255#255#255#0#255'{{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 51 +#0#255#255#255#0#255#0#0#0#0#255#255#0#255#255#255#0#255#255#255#0#255#0'{{' 52 +#255'{{{'#255#255#255#0#255'{{{'#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 53 +#0#0#0#0#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#0#255#255#0#255#0#0#0#0#255#255 54 +#0#255#255#255#0#255#0#0#0#255#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 55 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255 56 +#0#0#0#255#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 53 57 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 54 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 55 +#0#0#0#0#0#0#0 58 +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 56 59 ]); -
Docking/CoolDocking/UCoolDockWindowList.lrt
r56 r176 1 TCOOLDOCKWINDOWLISTFORM.C OOLDOCKWINDOWLISTFORM.CAPTION=Window list1 TCOOLDOCKWINDOWLISTFORM.CAPTION=Window list 2 2 TCOOLDOCKWINDOWLISTFORM.LISTVIEW1.COLUMNS[0].CAPTION=Name 3 3 TCOOLDOCKWINDOWLISTFORM.LISTVIEW1.COLUMNS[1].CAPTION=Dock state 4 4 TCOOLDOCKWINDOWLISTFORM.LISTVIEW1.COLUMNS[2].CAPTION=Visibility 5 TCOOLDOCKWINDOWLISTFORM.BUTTONFOCUS.CAPTION=Show 6 TCOOLDOCKWINDOWLISTFORM.BUTTONCANCEL.CAPTION=Cancel 5 TCOOLDOCKWINDOWLISTFORM.BUTTONFOCUS.CAPTION=Focus 6 TCOOLDOCKWINDOWLISTFORM.BUTTONHIDE.CAPTION=Hide 7 TCOOLDOCKWINDOWLISTFORM.BUTTONSHOW.CAPTION=Show -
Docking/CoolDocking/UCoolDockWindowList.pas
r58 r176 15 15 TCoolDockWindowListForm = class(TForm) 16 16 ButtonFocus: TButton; 17 ButtonCancel: TButton; 17 ButtonHide: TButton; 18 ButtonShow: TButton; 18 19 ImageList1: TImageList; 19 20 ListView1: TListView; 20 procedure ButtonCancelClick(Sender: TObject);21 21 procedure ButtonFocusClick(Sender: TObject); 22 procedure ButtonHideClick(Sender: TObject); 23 procedure ButtonShowClick(Sender: TObject); 22 24 procedure FormShow(Sender: TObject); 23 25 procedure ListView1DblClick(Sender: TObject); 24 26 procedure ListView1KeyPress(Sender: TObject; var Key: char); 27 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 28 Selected: Boolean); 25 29 private 26 30 { private declarations } … … 43 47 { TCoolDockWindowListForm } 44 48 45 procedure TCoolDockWindowListForm.ButtonCancelClick(Sender: TObject);46 begin47 Close;48 end;49 50 49 procedure TCoolDockWindowListForm.ButtonFocusClick(Sender: TObject); 51 50 begin … … 53 52 TForm(ListView1.Selected.Data).Show; 54 53 Close; 54 end; 55 56 procedure TCoolDockWindowListForm.ButtonHideClick(Sender: TObject); 57 begin 58 if Assigned(ListView1.Selected) then 59 TForm(ListView1.Selected.Data).Close; 60 LoadList; 61 end; 62 63 procedure TCoolDockWindowListForm.ButtonShowClick(Sender: TObject); 64 begin 65 if Assigned(ListView1.Selected) then 66 TForm(ListView1.Selected.Data).Show; 67 LoadList; 55 68 end; 56 69 … … 68 81 begin 69 82 if Key = #13 then ButtonFocusClick(Self); 83 end; 84 85 procedure TCoolDockWindowListForm.ListView1SelectItem(Sender: TObject; 86 Item: TListItem; Selected: Boolean); 87 begin 88 ButtonFocus.Enabled := Selected; 89 ButtonHide.Enabled := Selected; 90 ButtonShow.Enabled := Selected; 70 91 end; 71 92
Note:
See TracChangeset
for help on using the changeset viewer.