- Timestamp:
- Mar 17, 2011, 11:11:36 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Common/URectangle.pas
r197 r204 32 32 Right: Integer; 33 33 Bottom: Integer; 34 35 procedure Assign(Source: TRectangle); 34 36 35 37 property Width: Integer read GetWidth write SetWidth; … … 132 134 end; 133 135 136 procedure TRectangle.Assign(Source: TRectangle); 137 begin 138 Left := Source.Left; 139 Top := Source.Top; 140 Right := Source.Right; 141 Bottom := Source.Bottom; 142 end; 143 134 144 end. 135 145 -
Docking/CoolDocking/Demo/IDE/IDE.lpi
r199 r204 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="5 7">49 <Units Count="55"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 63 63 <ResourceBaseClass Value="Form"/> 64 64 <UnitName Value="UMainForm"/> 65 <EditorIndex Value=" 4"/>66 <WindowIndex Value="0"/> 67 <TopLine Value="15 8"/>68 <CursorPos X="2 3" Y="166"/>65 <EditorIndex Value="8"/> 66 <WindowIndex Value="0"/> 67 <TopLine Value="157"/> 68 <CursorPos X="27" Y="168"/> 69 69 <UsageCount Value="314"/> 70 70 <Loaded Value="True"/> … … 106 106 <Unit5> 107 107 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 108 <EditorIndex Value="3"/> 109 <WindowIndex Value="0"/> 110 <TopLine Value="579"/> 111 <CursorPos X="3" Y="584"/> 112 <UsageCount Value="60"/> 113 <Loaded Value="True"/> 108 <WindowIndex Value="0"/> 109 <TopLine Value="1330"/> 110 <CursorPos X="1" Y="1347"/> 111 <UsageCount Value="77"/> 114 112 </Unit5> 115 113 <Unit6> … … 129 127 <TopLine Value="941"/> 130 128 <CursorPos X="1" Y="954"/> 131 <UsageCount Value="3 6"/>129 <UsageCount Value="32"/> 132 130 </Unit7> 133 131 <Unit8> … … 214 212 <TopLine Value="81"/> 215 213 <CursorPos X="52" Y="92"/> 216 <UsageCount Value="15 6"/>214 <UsageCount Value="152"/> 217 215 </Unit15> 218 216 <Unit16> … … 222 220 <TopLine Value="1"/> 223 221 <CursorPos X="22" Y="16"/> 224 <UsageCount Value="6 6"/>222 <UsageCount Value="62"/> 225 223 </Unit16> 226 224 <Unit17> 227 225 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 228 <WindowIndex Value="0"/> 229 <TopLine Value="19"/> 230 <CursorPos X="4" Y="32"/> 231 <UsageCount Value="16"/> 226 <EditorIndex Value="3"/> 227 <WindowIndex Value="0"/> 228 <TopLine Value="20"/> 229 <CursorPos X="19" Y="33"/> 230 <UsageCount Value="13"/> 231 <Loaded Value="True"/> 232 232 </Unit17> 233 233 <Unit18> 234 234 <Filename Value="..\..\Common\URectangle.pas"/> 235 235 <UnitName Value="URectangle"/> 236 <WindowIndex Value="0"/> 237 <TopLine Value="110"/> 238 <CursorPos X="18" Y="126"/> 239 <UsageCount Value="31"/> 236 <EditorIndex Value="2"/> 237 <WindowIndex Value="0"/> 238 <TopLine Value="119"/> 239 <CursorPos X="27" Y="141"/> 240 <UsageCount Value="27"/> 241 <Loaded Value="True"/> 240 242 </Unit18> 241 243 <Unit19> … … 245 247 <TopLine Value="702"/> 246 248 <CursorPos X="22" Y="715"/> 247 <UsageCount Value=" 12"/>249 <UsageCount Value="8"/> 248 250 </Unit19> 249 251 <Unit20> … … 252 254 <TopLine Value="913"/> 253 255 <CursorPos X="1" Y="930"/> 254 <UsageCount Value=" 4"/>256 <UsageCount Value="10"/> 255 257 </Unit20> 256 258 <Unit21> 257 259 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 258 260 <UnitName Value="Controls"/> 259 <EditorIndex Value=" 1"/>260 <WindowIndex Value="0"/> 261 <TopLine Value="1 416"/>262 <CursorPos X="1 4" Y="1429"/>263 <UsageCount Value=" 39"/>261 <EditorIndex Value="6"/> 262 <WindowIndex Value="0"/> 263 <TopLine Value="1228"/> 264 <CursorPos X="15" Y="1283"/> 265 <UsageCount Value="56"/> 264 266 <Loaded Value="True"/> 265 267 </Unit21> … … 267 269 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 268 270 <WindowIndex Value="0"/> 269 <TopLine Value="77 79"/>270 <CursorPos X="1" Y="781 2"/>271 <UsageCount Value="11 5"/>271 <TopLine Value="7785"/> 272 <CursorPos X="1" Y="7810"/> 273 <UsageCount Value="112"/> 272 274 </Unit22> 273 275 <Unit23> 274 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/>275 <WindowIndex Value="0"/>276 <TopLine Value="751"/>277 <CursorPos X="1" Y="764"/>278 <UsageCount Value="2"/>279 </Unit23>280 <Unit24>281 276 <Filename Value="..\..\UCDCustomize.pas"/> 282 277 <ComponentName Value="CDCustomizeForm"/> … … 287 282 <TopLine Value="145"/> 288 283 <CursorPos X="34" Y="147"/> 289 <UsageCount Value="140"/> 284 <UsageCount Value="136"/> 285 </Unit23> 286 <Unit24> 287 <Filename Value="..\..\UCDCommon.pas"/> 288 <UnitName Value="UCDCommon"/> 289 <EditorIndex Value="7"/> 290 <WindowIndex Value="0"/> 291 <TopLine Value="13"/> 292 <CursorPos X="18" Y="26"/> 293 <UsageCount Value="58"/> 294 <Loaded Value="True"/> 290 295 </Unit24> 291 296 <Unit25> 292 <Filename Value="..\..\UCDCommon.pas"/>293 <UnitName Value="UCDCommon"/>294 <WindowIndex Value="0"/>295 <TopLine Value="3"/>296 <CursorPos X="44" Y="11"/>297 <UsageCount Value="61"/>298 </Unit25>299 <Unit26>300 297 <Filename Value="..\..\UCDPopupMenu.pas"/> 301 298 <UnitName Value="UCDPopupMenu"/> 302 <EditorIndex Value=" 8"/>299 <EditorIndex Value="12"/> 303 300 <WindowIndex Value="0"/> 304 301 <TopLine Value="159"/> … … 306 303 <UsageCount Value="141"/> 307 304 <Loaded Value="True"/> 305 </Unit25> 306 <Unit26> 307 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/> 308 <UnitName Value="LCLClasses"/> 309 <WindowIndex Value="0"/> 310 <TopLine Value="81"/> 311 <CursorPos X="20" Y="94"/> 312 <UsageCount Value="7"/> 308 313 </Unit26> 309 314 <Unit27> 310 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/>311 <UnitName Value=" LCLClasses"/>312 <WindowIndex Value="0"/> 313 <TopLine Value=" 81"/>314 <CursorPos X="2 0" Y="94"/>315 <UsageCount Value="1 1"/>315 <Filename Value="..\..\UCDStyle.pas"/> 316 <UnitName Value="UCDStyle"/> 317 <WindowIndex Value="0"/> 318 <TopLine Value="1"/> 319 <CursorPos X="24" Y="16"/> 320 <UsageCount Value="10"/> 316 321 </Unit27> 317 322 <Unit28> 318 <Filename Value="..\..\UCD Style.pas"/>319 <UnitName Value="UCD Style"/>323 <Filename Value="..\..\UCDClientPanel.pas"/> 324 <UnitName Value="UCDClientPanel"/> 320 325 <WindowIndex Value="0"/> 321 326 <TopLine Value="1"/> 322 <CursorPos X=" 24" Y="16"/>323 <UsageCount Value="1 4"/>327 <CursorPos X="5" Y="11"/> 328 <UsageCount Value="13"/> 324 329 </Unit28> 325 330 <Unit29> 326 <Filename Value="..\..\UCDClientPanel.pas"/> 327 <UnitName Value="UCDClientPanel"/> 328 <WindowIndex Value="0"/> 329 <TopLine Value="1"/> 330 <CursorPos X="5" Y="11"/> 331 <UsageCount Value="17"/> 331 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 332 <UnitName Value="UCDManagerTabs"/> 333 <EditorIndex Value="11"/> 334 <WindowIndex Value="0"/> 335 <TopLine Value="169"/> 336 <CursorPos X="27" Y="188"/> 337 <UsageCount Value="130"/> 338 <Loaded Value="True"/> 332 339 </Unit29> 333 340 <Unit30> 334 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/>335 <UnitName Value="UCDManagerTabs"/>336 <EditorIndex Value="7"/>337 <WindowIndex Value="0"/>338 <TopLine Value="284"/>339 <CursorPos X="1" Y="297"/>340 <UsageCount Value="130"/>341 <Loaded Value="True"/>342 </Unit30>343 <Unit31>344 341 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 345 342 <UnitName Value="UCDManagerRegions"/> 346 <EditorIndex Value=" 6"/>343 <EditorIndex Value="10"/> 347 344 <WindowIndex Value="0"/> 348 345 <TopLine Value="61"/> … … 350 347 <UsageCount Value="129"/> 351 348 <Loaded Value="True"/> 352 </Unit3 1>353 <Unit3 2>349 </Unit30> 350 <Unit31> 354 351 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 355 352 <UnitName Value="UCDManagerTabsPopup"/> … … 357 354 <EditorIndex Value="0"/> 358 355 <WindowIndex Value="0"/> 359 <TopLine Value="8 0"/>360 <CursorPos X=" 9" Y="90"/>356 <TopLine Value="83"/> 357 <CursorPos X="70" Y="101"/> 361 358 <UsageCount Value="120"/> 362 359 <Loaded Value="True"/> 360 </Unit31> 361 <Unit32> 362 <Filename Value="..\..\ReadMe.txt"/> 363 <WindowIndex Value="0"/> 364 <TopLine Value="1"/> 365 <CursorPos X="22" Y="16"/> 366 <UsageCount Value="6"/> 367 <DefaultSyntaxHighlighter Value="None"/> 363 368 </Unit32> 364 369 <Unit33> 365 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragmanager.inc"/>366 <WindowIndex Value="0"/>367 <TopLine Value="762"/>368 <CursorPos X="1" Y="775"/>369 <UsageCount Value="3"/>370 </Unit33>371 <Unit34>372 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragobject.inc"/>373 <WindowIndex Value="0"/>374 <TopLine Value="148"/>375 <CursorPos X="32" Y="160"/>376 <UsageCount Value="3"/>377 </Unit34>378 <Unit35>379 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\lclintfh.inc"/>380 <WindowIndex Value="0"/>381 <TopLine Value="53"/>382 <CursorPos X="11" Y="66"/>383 <UsageCount Value="3"/>384 </Unit35>385 <Unit36>386 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\lclintf.inc"/>387 <WindowIndex Value="0"/>388 <TopLine Value="141"/>389 <CursorPos X="3" Y="143"/>390 <UsageCount Value="3"/>391 </Unit36>392 <Unit37>393 <Filename Value="..\..\ReadMe.txt"/>394 <WindowIndex Value="0"/>395 <TopLine Value="1"/>396 <CursorPos X="22" Y="16"/>397 <UsageCount Value="10"/>398 <DefaultSyntaxHighlighter Value="None"/>399 </Unit37>400 <Unit38>401 370 <Filename Value="UComponentTree.pas"/> 402 371 <IsPartOfProject Value="True"/> … … 409 378 <CursorPos X="61" Y="27"/> 410 379 <UsageCount Value="215"/> 411 </Unit3 8>412 <Unit3 9>380 </Unit33> 381 <Unit34> 413 382 <Filename Value="..\..\UCDManager.pas"/> 414 383 <UnitName Value="UCDManager"/> 415 <EditorIndex Value=" 5"/>384 <EditorIndex Value="9"/> 416 385 <WindowIndex Value="0"/> 417 386 <TopLine Value="529"/> … … 419 388 <UsageCount Value="105"/> 420 389 <Loaded Value="True"/> 421 </Unit3 9>422 <Unit 40>390 </Unit34> 391 <Unit35> 423 392 <Filename Value="..\..\UCDConjoinForm.pas"/> 424 393 <UnitName Value="UCDConjoinForm"/> … … 426 395 <TopLine Value="1"/> 427 396 <CursorPos X="31" Y="8"/> 428 <UsageCount Value=" 103"/>429 </Unit 40>430 <Unit 41>397 <UsageCount Value="99"/> 398 </Unit35> 399 <Unit36> 431 400 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\extctrls.pp"/> 432 401 <UnitName Value="ExtCtrls"/> … … 434 403 <TopLine Value="111"/> 435 404 <CursorPos X="3" Y="124"/> 436 <UsageCount Value=" 100"/>437 </Unit 41>438 <Unit 42>405 <UsageCount Value="97"/> 406 </Unit36> 407 <Unit37> 439 408 <Filename Value="..\..\UCDMaster.pas"/> 440 409 <UnitName Value="UCDMaster"/> 441 <EditorIndex Value=" 9"/>410 <EditorIndex Value="13"/> 442 411 <WindowIndex Value="0"/> 443 412 <TopLine Value="11"/> … … 445 414 <UsageCount Value="101"/> 446 415 <Loaded Value="True"/> 447 </Unit 42>448 <Unit 43>416 </Unit37> 417 <Unit38> 449 418 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\comctrls.pp"/> 450 419 <UnitName Value="ComCtrls"/> … … 452 421 <TopLine Value="255"/> 453 422 <CursorPos X="14" Y="304"/> 454 <UsageCount Value="9 6"/>455 </Unit 43>456 <Unit 44>423 <UsageCount Value="92"/> 424 </Unit38> 425 <Unit39> 457 426 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\spinedit.inc"/> 458 427 <WindowIndex Value="0"/> 459 428 <TopLine Value="136"/> 460 429 <CursorPos X="3" Y="138"/> 461 <UsageCount Value=" 6"/>462 </Unit 44>463 <Unit4 5>430 <UsageCount Value="2"/> 431 </Unit39> 432 <Unit40> 464 433 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\spin.pp"/> 465 434 <UnitName Value="Spin"/> … … 467 436 <TopLine Value="172"/> 468 437 <CursorPos X="17" Y="185"/> 469 <UsageCount Value=" 7"/>470 </Unit4 5>471 <Unit4 6>438 <UsageCount Value="3"/> 439 </Unit40> 440 <Unit41> 472 441 <Filename Value="..\..\UCDWindowList.pas"/> 473 442 <ComponentName Value="CDWindowListForm"/> … … 478 447 <TopLine Value="33"/> 479 448 <CursorPos X="1" Y="47"/> 480 <UsageCount Value="2 9"/>481 </Unit4 6>482 <Unit4 7>449 <UsageCount Value="25"/> 450 </Unit41> 451 <Unit42> 483 452 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\graphics.pp"/> 484 453 <UnitName Value="Graphics"/> … … 486 455 <TopLine Value="632"/> 487 456 <CursorPos X="14" Y="645"/> 488 <UsageCount Value=" 7"/>489 </Unit4 7>490 <Unit4 8>457 <UsageCount Value="3"/> 458 </Unit42> 459 <Unit43> 491 460 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\canvas.inc"/> 492 461 <WindowIndex Value="0"/> 493 462 <TopLine Value="426"/> 494 463 <CursorPos X="3" Y="417"/> 495 <UsageCount Value=" 7"/>496 </Unit4 8>497 <Unit4 9>464 <UsageCount Value="3"/> 465 </Unit43> 466 <Unit44> 498 467 <Filename Value="..\..\UCDResource.pas"/> 499 468 <ComponentName Value="DataModule2"/> … … 503 472 <TopLine Value="13"/> 504 473 <CursorPos X="40" Y="31"/> 505 <UsageCount Value="2 6"/>506 </Unit4 9>507 <Unit 50>474 <UsageCount Value="22"/> 475 </Unit44> 476 <Unit45> 508 477 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\imglist.pp"/> 509 478 <UnitName Value="ImgList"/> … … 511 480 <TopLine Value="165"/> 512 481 <CursorPos X="15" Y="178"/> 513 <UsageCount Value="2 6"/>514 </Unit 50>515 <Unit 51>482 <UsageCount Value="22"/> 483 </Unit45> 484 <Unit46> 516 485 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\imglist.inc"/> 517 486 <WindowIndex Value="0"/> 518 487 <TopLine Value="554"/> 519 488 <CursorPos X="9" Y="564"/> 520 <UsageCount Value="2 6"/>521 </Unit 51>522 <Unit 52>489 <UsageCount Value="22"/> 490 </Unit46> 491 <Unit47> 523 492 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\inc\objpash.inc"/> 493 <EditorIndex Value="1"/> 524 494 <WindowIndex Value="0"/> 525 495 <TopLine Value="179"/> 526 496 <CursorPos X="23" Y="192"/> 527 497 <UsageCount Value="10"/> 498 <Loaded Value="True"/> 499 </Unit47> 500 <Unit48> 501 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\customtimer.pas"/> 502 <UnitName Value="CustomTimer"/> 503 <WindowIndex Value="0"/> 504 <TopLine Value="169"/> 505 <CursorPos X="1" Y="182"/> 506 <UsageCount Value="8"/> 507 </Unit48> 508 <Unit49> 509 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\menus.pp"/> 510 <UnitName Value="Menus"/> 511 <WindowIndex Value="0"/> 512 <TopLine Value="153"/> 513 <CursorPos X="15" Y="166"/> 514 <UsageCount Value="6"/> 515 </Unit49> 516 <Unit50> 517 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\menuitem.inc"/> 518 <WindowIndex Value="0"/> 519 <TopLine Value="441"/> 520 <CursorPos X="1" Y="454"/> 521 <UsageCount Value="6"/> 522 </Unit50> 523 <Unit51> 524 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lcltype.pp"/> 525 <UnitName Value="LCLType"/> 526 <WindowIndex Value="0"/> 527 <TopLine Value="70"/> 528 <CursorPos X="3" Y="83"/> 529 <UsageCount Value="27"/> 530 </Unit51> 531 <Unit52> 532 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclproc.pas"/> 533 <UnitName Value="LCLProc"/> 534 <WindowIndex Value="0"/> 535 <TopLine Value="1429"/> 536 <CursorPos X="1" Y="1442"/> 537 <UsageCount Value="26"/> 528 538 </Unit52> 529 539 <Unit53> 530 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\customtimer.pas"/> 531 <UnitName Value="CustomTimer"/> 532 <WindowIndex Value="0"/> 533 <TopLine Value="169"/> 534 <CursorPos X="1" Y="182"/> 535 <UsageCount Value="12"/> 540 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\types.pp"/> 541 <UnitName Value="types"/> 542 <EditorIndex Value="4"/> 543 <WindowIndex Value="0"/> 544 <TopLine Value="319"/> 545 <CursorPos X="16" Y="319"/> 546 <UsageCount Value="10"/> 547 <Loaded Value="True"/> 536 548 </Unit53> 537 549 <Unit54> 538 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\ Lazarus\lcl\menus.pp"/>539 < UnitName Value="Menus"/>540 <WindowIndex Value="0"/> 541 <TopLine Value=" 153"/>542 <CursorPos X=" 15" Y="166"/>550 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\win\wininc\struct.inc"/> 551 <EditorIndex Value="5"/> 552 <WindowIndex Value="0"/> 553 <TopLine Value="213"/> 554 <CursorPos X="6" Y="226"/> 543 555 <UsageCount Value="10"/> 556 <Loaded Value="True"/> 544 557 </Unit54> 545 <Unit55>546 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\menuitem.inc"/>547 <WindowIndex Value="0"/>548 <TopLine Value="441"/>549 <CursorPos X="1" Y="454"/>550 <UsageCount Value="10"/>551 </Unit55>552 <Unit56>553 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lcltype.pp"/>554 <UnitName Value="LCLType"/>555 <EditorIndex Value="2"/>556 <WindowIndex Value="0"/>557 <TopLine Value="70"/>558 <CursorPos X="3" Y="83"/>559 <UsageCount Value="11"/>560 <Loaded Value="True"/>561 </Unit56>562 558 </Units> 563 <JumpHistory Count="30" HistoryIndex="2 9">559 <JumpHistory Count="30" HistoryIndex="28"> 564 560 <Position1> 565 561 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 566 <Caret Line=" 197" Column="13" TopLine="184"/>562 <Caret Line="6" Column="64" TopLine="1"/> 567 563 </Position1> 568 564 <Position2> 569 565 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 570 <Caret Line=" 227" Column="14" TopLine="207"/>566 <Caret Line="19" Column="18" TopLine="1"/> 571 567 </Position2> 572 568 <Position3> 573 569 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 574 <Caret Line=" 223" Column="68" TopLine="201"/>570 <Caret Line="87" Column="20" TopLine="69"/> 575 571 </Position3> 576 572 <Position4> 577 573 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 578 <Caret Line=" 211" Column="99" TopLine="198"/>574 <Caret Line="161" Column="34" TopLine="148"/> 579 575 </Position4> 580 576 <Position5> 581 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/>582 <Caret Line=" 1413" Column="54" TopLine="1400"/>577 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 578 <Caret Line="5" Column="70" TopLine="1"/> 583 579 </Position5> 584 580 <Position6> 585 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/>586 <Caret Line="1 430" Column="30" TopLine="1412"/>581 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 582 <Caret Line="19" Column="18" TopLine="1"/> 587 583 </Position6> 588 584 <Position7> 589 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/>590 <Caret Line=" 1411" Column="45" TopLine="1403"/>585 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 586 <Caret Line="87" Column="58" TopLine="66"/> 591 587 </Position7> 592 588 <Position8> 593 589 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 594 <Caret Line=" 227" Column="17" TopLine="210"/>590 <Caret Line="88" Column="73" TopLine="67"/> 595 591 </Position8> 596 592 <Position9> 597 593 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 598 <Caret Line=" 215" Column="101" TopLine="200"/>594 <Caret Line="91" Column="77" TopLine="70"/> 599 595 </Position9> 600 596 <Position10> 601 597 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 602 <Caret Line=" 221" Column="31" TopLine="205"/>598 <Caret Line="92" Column="52" TopLine="71"/> 603 599 </Position10> 604 600 <Position11> 605 601 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 606 <Caret Line=" 220" Column="44" TopLine="205"/>602 <Caret Line="95" Column="58" TopLine="74"/> 607 603 </Position11> 608 604 <Position12> 609 605 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 610 <Caret Line=" 224" Column="40" TopLine="205"/>606 <Caret Line="96" Column="51" TopLine="75"/> 611 607 </Position12> 612 608 <Position13> 613 609 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 614 <Caret Line=" 229" Column="17" TopLine="211"/>610 <Caret Line="97" Column="22" TopLine="76"/> 615 611 </Position13> 616 612 <Position14> 617 613 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 618 <Caret Line=" 238" Column="1" TopLine="202"/>614 <Caret Line="100" Column="81" TopLine="79"/> 619 615 </Position14> 620 616 <Position15> 621 617 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 622 <Caret Line=" 229" Column="15" TopLine="208"/>618 <Caret Line="101" Column="84" TopLine="80"/> 623 619 </Position15> 624 620 <Position16> 625 621 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 626 <Caret Line=" 309" Column="1" TopLine="301"/>622 <Caret Line="128" Column="15" TopLine="107"/> 627 623 </Position16> 628 624 <Position17> 629 625 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 630 <Caret Line=" 307" Column="24" TopLine="301"/>626 <Caret Line="19" Column="27" TopLine="6"/> 631 627 </Position17> 632 628 <Position18> 633 <Filename Value="..\..\ Managers\UCDManagerTabsPopup.pas"/>634 <Caret Line=" 50" Column="36" TopLine="37"/>629 <Filename Value="..\..\Common\URectangle.pas"/> 630 <Caret Line="35" Column="42" TopLine="25"/> 635 631 </Position18> 636 632 <Position19> 637 <Filename Value="..\..\ Managers\UCDManagerTabs.pas"/>638 <Caret Line=" 40" Column="23" TopLine="35"/>633 <Filename Value="..\..\Common\URectangle.pas"/> 634 <Caret Line="139" Column="5" TopLine="117"/> 639 635 </Position19> 640 636 <Position20> 641 <Filename Value="..\..\ Managers\UCDManagerTabsPopup.pas"/>642 <Caret Line=" 57" Column="25" TopLine="46"/>637 <Filename Value="..\..\Common\URectangle.pas"/> 638 <Caret Line="31" Column="5" TopLine="18"/> 643 639 </Position20> 644 640 <Position21> 645 <Filename Value="..\..\Managers\UCDManagerTabs .pas"/>646 <Caret Line=" 297" Column="3" TopLine="295"/>641 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 642 <Caret Line="19" Column="27" TopLine="6"/> 647 643 </Position21> 648 644 <Position22> 649 645 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 650 <Caret Line=" 309" Column="1" TopLine="296"/>646 <Caret Line="87" Column="58" TopLine="66"/> 651 647 </Position22> 652 648 <Position23> 653 <Filename Value="..\..\ UCDManager.pas"/>654 <Caret Line=" 542" Column="1" TopLine="529"/>649 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 650 <Caret Line="88" Column="73" TopLine="67"/> 655 651 </Position23> 656 652 <Position24> 657 <Filename Value="..\..\ UCDManager.pas"/>658 <Caret Line=" 543" Column="1" TopLine="529"/>653 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 654 <Caret Line="106" Column="20" TopLine="85"/> 659 655 </Position24> 660 656 <Position25> 661 657 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 662 <Caret Line=" 309" Column="15" TopLine="296"/>658 <Caret Line="128" Column="35" TopLine="107"/> 663 659 </Position25> 664 660 <Position26> 665 661 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 666 <Caret Line=" 57" Column="49" TopLine="44"/>662 <Caret Line="141" Column="35" TopLine="120"/> 667 663 </Position26> 668 664 <Position27> 669 665 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 670 <Caret Line=" 309" Column="1" TopLine="296"/>666 <Caret Line="162" Column="16" TopLine="141"/> 671 667 </Position27> 672 668 <Position28> 673 <Filename Value="..\..\Managers\UCDManagerTabs .pas"/>674 <Caret Line=" 297" Column="1" TopLine="284"/>669 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 670 <Caret Line="175" Column="16" TopLine="154"/> 675 671 </Position28> 676 672 <Position29> 677 673 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 678 <Caret Line=" 227" Column="26" TopLine="206"/>674 <Caret Line="100" Column="44" TopLine="83"/> 679 675 </Position29> 680 676 <Position30> 681 677 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 682 <Caret Line=" 140" Column="12" TopLine="130"/>678 <Caret Line="258" Column="1" TopLine="245"/> 683 679 </Position30> 684 680 </JumpHistory> -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r199 r204 7 7 uses 8 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, UCDManager, 9 UCDManagerTabs, Forms ;9 UCDManagerTabs, Forms, URectangle; 10 10 11 11 type … … 17 17 FStepCount: Integer; 18 18 FTabPosition: TTabPosition; 19 StartBounds: TRect; 19 ControlBounds: TRectangle; 20 HideBounds: TRectangle; 21 ShowBounds: TRectangle; 20 22 procedure SetDuration(const AValue: Real); 21 23 procedure SetStepCount(const AValue: Integer); … … 29 31 Control: TControl; 30 32 ControlVisible: Boolean; 33 DoShow: Boolean; 31 34 procedure Hide; 32 35 procedure Show; … … 81 84 begin 82 85 case TabPosition of 86 tpTop: begin 87 Control.SetBounds(ControlBounds.Left, ControlBounds.Top, 88 ControlBounds.Width, Round(ControlBounds.Height * Position)); 89 end; 90 tpLeft: begin 91 Control.SetBounds(ControlBounds.Left, ControlBounds.Top, 92 Round(ControlBounds.Width * Position), ControlBounds.Height); 93 end; 94 tpRight: begin 95 Control.SetBounds(ControlBounds.Right - 96 Round(ControlBounds.Width * Position), ControlBounds.Top, 97 Round(ControlBounds.Width * Position), ControlBounds.Height); 98 end; 83 99 tpBottom: begin 84 Control.Height := Round((StartBounds.Bottom - StartBounds.Top) * Position); 85 Control.Top := StartBounds.Bottom - Control.Height; 86 end; 87 tpTop: begin 88 Control.Height := Round((StartBounds.Bottom - StartBounds.Top) * Position); 89 end; 90 tpLeft: begin 91 Control.Width := Round((StartBounds.Right - StartBounds.Left) * Position); 92 end; 93 tpRight: begin 94 Control.Width := Round((StartBounds.Right - StartBounds.Left) * Position); 95 Control.Left := StartBounds.Right - Control.Width; 100 Control.SetBounds(ControlBounds.Left, 101 ControlBounds.Bottom - Round(ControlBounds.Height * Position), 102 ControlBounds.Width, Round(ControlBounds.Height * Position)); 96 103 end; 97 104 end; … … 119 126 procedure TCDAutoHide.Hide; 120 127 begin 121 StartBounds := Control.BoundsRect; 128 HideBounds.AsTRect := Control.BoundsRect; 129 ControlBounds.Assign(HideBounds); 122 130 Control.Show; 123 131 Control.BringToFront; 132 Application.ProcessMessages; 124 133 Direction := -1; 125 134 Position := 1; … … 130 139 procedure TCDAutoHide.Show; 131 140 begin 132 StartBounds := Control.BoundsRect; 133 //StartBounds := Bounds(0, 0, Control.UndockWidth, Control.UndockHeight); 134 Control.Show; 135 Control.BringToFront; 136 Control.Align := alClient; 137 Direction := 1; 138 Position := 0; 139 Timer.Enabled := True; 140 UpdateBounds; 141 ShowBounds.AsTRect := Control.BoundsRect; 142 ControlBounds.Assign(HideBounds); 143 if Position > 0 then begin 144 DoShow := True; 145 Hide; 146 end else begin 147 //StartBounds := Bounds(0, 0, Control.UndockWidth, Control.UndockHeight); 148 Control.Show; 149 Control.BringToFront; 150 //Control.Align := alClient; 151 Direction := 1; 152 Position := 0; 153 Timer.Enabled := True; 154 UpdateBounds; 155 end; 141 156 end; 142 157 … … 144 159 begin 145 160 inherited; 161 ShowBounds := TRectangle.Create; 162 HideBounds := TRectangle.Create; 163 ControlBounds := TRectangle.Create; 146 164 Timer := TTimer.Create(nil); 147 165 Timer.Enabled := False; … … 149 167 StepCount := 10; 150 168 Duration := 0.05; 169 ShowBounds := TRectangle.Create; 151 170 end; 152 171 153 172 destructor TCDAutoHide.Destroy; 154 173 begin 174 ShowBounds.Free; 175 HideBounds.Free; 176 ControlBounds.Free; 155 177 Timer.Free; 156 178 inherited Destroy; … … 165 187 Timer.Enabled := False; 166 188 ControlVisible := True; 189 DoShow := False; 190 HideBounds := ShowBounds; 167 191 end; 168 192 end else … … 171 195 if Position < 0 then begin 172 196 Position := 0; 173 Timer.Enabled := False; 174 ControlVisible := False; 197 if DoShow then begin 198 Direction := 1; 199 ControlBounds.Assign(ShowBounds); 200 end else begin 201 Timer.Enabled := False; 202 ControlVisible := False; 203 end; 175 204 end; 176 205 end; … … 194 223 Pos: TPoint; 195 224 C: TControl; 225 TopParent: TWinControl; 196 226 begin 197 227 inherited TabControlChange(Sender); 198 228 MouseDownSkip := True; 199 if PopupForm.ControlCount > 0 then 200 PopupForm.Controls[0].Parent := nil; 201 AutoHide.Hide; 202 while AutoHide.Position > 0 do begin 203 Application.ProcessMessages; 204 Sleep(1); 205 end; 229 206 230 if PageControl.TabIndex >= 0 then begin 207 231 C := TCDManagerTabsPopupItem(DockItems[PageControl.TabIndex]).Control; 232 C.Align := alClient; 208 233 C.Parent := PopupForm; 234 Pos := Point(PageControl.Left, PageControl.Top); 235 236 TopParent := DockSite; 237 while Assigned(TopParent.Parent) do begin 238 Pos.X := Pos.X + TopParent.Left;; 239 Pos.Y := Pos.Y + TopParent.Top; 240 TopParent := TopParent.Parent; 241 end; 242 PopupForm.Parent := TopParent; 209 243 //AutoHide.Control.Align := alCustom; 210 Pos := Point(PageControl.Left, PageControl.Top); 211 Pos := DockSite.ClientToScreen(Pos); 244 //Pos := DockSite.ClientToScreen(Pos); 245 C.TBDockHeight := 100; 246 C.LRDockWidth := 100; 212 247 with AutoHide.Control do 213 248 case AutoHide.TabPosition of … … 243 278 PopupForm.DockManager := TCDManagerRegions.Create(PopupForm); 244 279 PopupForm.Visible := True; 245 //PopupForm.Parent := ADockSite;246 280 PopupForm.BorderStyle := bsNone; 247 281 AutoHide := TCDAutoHide.Create;
Note:
See TracChangeset
for help on using the changeset viewer.