- Timestamp:
- Sep 23, 2010, 11:41:59 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/Demo.lpi
r56 r58 35 35 </Item2> 36 36 </RequiredPackages> 37 <Units Count="4 1">37 <Units Count="44"> 38 38 <Unit0> 39 39 <Filename Value="Demo.lpr"/> 40 40 <IsPartOfProject Value="True"/> 41 41 <UnitName Value="Demo"/> 42 <EditorIndex Value=" 13"/>42 <EditorIndex Value="0"/> 43 43 <WindowIndex Value="0"/> 44 44 <TopLine Value="1"/> 45 <CursorPos X=" 1" Y="18"/>46 <UsageCount Value=" 77"/>45 <CursorPos X="25" Y="8"/> 46 <UsageCount Value="82"/> 47 47 <Loaded Value="True"/> 48 48 <DefaultSyntaxHighlighter Value="Delphi"/> … … 54 54 <ResourceBaseClass Value="Form"/> 55 55 <UnitName Value="UMainForm"/> 56 <EditorIndex Value=" 0"/>57 <WindowIndex Value="0"/> 58 <TopLine Value=" 14"/>59 <CursorPos X=" 15" Y="27"/>60 <UsageCount Value=" 77"/>56 <EditorIndex Value="7"/> 57 <WindowIndex Value="0"/> 58 <TopLine Value="51"/> 59 <CursorPos X="38" Y="64"/> 60 <UsageCount Value="82"/> 61 61 <Loaded Value="True"/> 62 62 <LoadedDesigner Value="True"/> … … 66 66 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 67 67 <UnitName Value="Controls"/> 68 <EditorIndex Value=" 6"/>69 <WindowIndex Value="0"/> 70 <TopLine Value="1 891"/>71 <CursorPos X=" 31" Y="1907"/>72 <UsageCount Value=" 37"/>68 <EditorIndex Value="10"/> 69 <WindowIndex Value="0"/> 70 <TopLine Value="1673"/> 71 <CursorPos X="15" Y="1686"/> 72 <UsageCount Value="40"/> 73 73 <Loaded Value="True"/> 74 74 </Unit2> … … 84 84 <Unit4> 85 85 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 86 <EditorIndex Value="7"/>87 86 <WindowIndex Value="0"/> 88 87 <TopLine Value="1325"/> 89 88 <CursorPos X="20" Y="1335"/> 90 <UsageCount Value="35"/> 91 <Loaded Value="True"/> 89 <UsageCount Value="36"/> 92 90 </Unit4> 93 91 <Unit5> 94 92 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 95 <EditorIndex Value=" 8"/>96 <WindowIndex Value="0"/> 97 <TopLine Value=" 7669"/>98 <CursorPos X=" 37" Y="7672"/>99 <UsageCount Value="3 6"/>93 <EditorIndex Value="11"/> 94 <WindowIndex Value="0"/> 95 <TopLine Value="5341"/> 96 <CursorPos X="65" Y="5348"/> 97 <UsageCount Value="39"/> 100 98 <Loaded Value="True"/> 101 99 </Unit5> … … 110 108 <Unit7> 111 109 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\classesh.inc"/> 112 <EditorIndex Value=" 14"/>113 <WindowIndex Value="0"/> 114 <TopLine Value=" 259"/>115 <CursorPos X=" 14" Y="272"/>116 <UsageCount Value=" 29"/>110 <EditorIndex Value="3"/> 111 <WindowIndex Value="0"/> 112 <TopLine Value="484"/> 113 <CursorPos X="3" Y="497"/> 114 <UsageCount Value="32"/> 117 115 <Loaded Value="True"/> 118 116 </Unit7> … … 122 120 <TopLine Value="206"/> 123 121 <CursorPos X="8" Y="219"/> 124 <UsageCount Value=" 7"/>122 <UsageCount Value="10"/> 125 123 </Unit8> 126 124 <Unit9> … … 135 133 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 136 134 <UnitName Value="LCLProc"/> 137 <EditorIndex Value="10"/>138 135 <WindowIndex Value="0"/> 139 136 <TopLine Value="1493"/> 140 137 <CursorPos X="18" Y="1498"/> 141 <UsageCount Value="28"/> 142 <Loaded Value="True"/> 138 <UsageCount Value="29"/> 143 139 </Unit10> 144 140 <Unit11> … … 178 174 <ResourceBaseClass Value="Form"/> 179 175 <UnitName Value="UDockForm"/> 180 <EditorIndex Value=" 1"/>176 <EditorIndex Value="8"/> 181 177 <WindowIndex Value="0"/> 182 178 <TopLine Value="1"/> 183 <CursorPos X="47" Y="8"/> 184 <UsageCount Value="76"/> 185 <Loaded Value="True"/> 179 <CursorPos X="15" Y="9"/> 180 <UsageCount Value="81"/> 181 <Loaded Value="True"/> 182 <LoadedDesigner Value="True"/> 186 183 <DefaultSyntaxHighlighter Value="Delphi"/> 187 184 </Unit15> … … 197 194 <Filename Value="E:\Programy\Lazarus\lcl\stdctrls.pp"/> 198 195 <UnitName Value="StdCtrls"/> 199 <WindowIndex Value="0"/> 200 <TopLine Value="1092"/> 201 <CursorPos X="9" Y="1098"/> 202 <UsageCount Value="6"/> 196 <EditorIndex Value="6"/> 197 <WindowIndex Value="0"/> 198 <TopLine Value="813"/> 199 <CursorPos X="28" Y="826"/> 200 <UsageCount Value="11"/> 201 <Loaded Value="True"/> 203 202 </Unit17> 204 203 <Unit18> … … 231 230 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 232 231 <UnitName Value="ExtCtrls"/> 233 <EditorIndex Value="5"/>234 232 <WindowIndex Value="0"/> 235 233 <TopLine Value="1153"/> 236 234 <CursorPos X="32" Y="1160"/> 237 <UsageCount Value="29"/> 238 <Loaded Value="True"/> 235 <UsageCount Value="30"/> 239 236 </Unit21> 240 237 <Unit22> … … 279 276 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 280 277 <UnitName Value="Forms"/> 281 <WindowIndex Value="0"/> 282 <TopLine Value="693"/> 283 <CursorPos X="14" Y="700"/> 284 <UsageCount Value="11"/> 278 <EditorIndex Value="9"/> 279 <WindowIndex Value="0"/> 280 <TopLine Value="709"/> 281 <CursorPos X="18" Y="722"/> 282 <UsageCount Value="13"/> 283 <Loaded Value="True"/> 285 284 </Unit27> 286 285 <Unit28> 287 286 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 288 287 <UnitName Value="Themes"/> 289 <EditorIndex Value="16"/>290 288 <WindowIndex Value="0"/> 291 289 <TopLine Value="550"/> 292 290 <CursorPos X="26" Y="560"/> 293 <UsageCount Value="31"/> 294 <Loaded Value="True"/> 291 <UsageCount Value="32"/> 295 292 </Unit28> 296 293 <Unit29> … … 331 328 <UnitName Value="UCoolDocking"/> 332 329 <IsVisibleTab Value="True"/> 333 <EditorIndex Value=" 2"/>334 <WindowIndex Value="0"/> 335 <TopLine Value=" 1"/>336 <CursorPos X=" 66" Y="12"/>337 <UsageCount Value=" 28"/>330 <EditorIndex Value="1"/> 331 <WindowIndex Value="0"/> 332 <TopLine Value="987"/> 333 <CursorPos X="14" Y="1002"/> 334 <UsageCount Value="31"/> 338 335 <Loaded Value="True"/> 339 336 <DefaultSyntaxHighlighter Value="Delphi"/> … … 341 338 <Unit34> 342 339 <Filename Value="..\ReadMe.txt"/> 343 <EditorIndex Value="17"/>344 340 <WindowIndex Value="0"/> 345 341 <TopLine Value="1"/> 346 342 <CursorPos X="29" Y="16"/> 347 <UsageCount Value="28"/> 348 <Loaded Value="True"/> 343 <UsageCount Value="29"/> 349 344 <DefaultSyntaxHighlighter Value="None"/> 350 345 </Unit34> 351 346 <Unit35> 352 347 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\lists.inc"/> 353 <EditorIndex Value="15"/> 354 <WindowIndex Value="0"/> 355 <TopLine Value="641"/> 356 <CursorPos X="3" Y="643"/> 357 <UsageCount Value="28"/> 358 <Loaded Value="True"/> 348 <WindowIndex Value="0"/> 349 <TopLine Value="619"/> 350 <CursorPos X="22" Y="621"/> 351 <UsageCount Value="29"/> 359 352 </Unit35> 360 353 <Unit36> 361 354 <Filename Value="E:\Programy\Lazarus\lcl\include\custompanel.inc"/> 362 <EditorIndex Value="12"/>363 355 <WindowIndex Value="0"/> 364 356 <TopLine Value="27"/> 365 357 <CursorPos X="3" Y="32"/> 366 <UsageCount Value="28"/> 367 <Loaded Value="True"/> 358 <UsageCount Value="29"/> 368 359 </Unit36> 369 360 <Unit37> 370 361 <Filename Value="E:\Programy\Lazarus\lcl\include\customcontrol.inc"/> 371 <EditorIndex Value="11"/>372 362 <WindowIndex Value="0"/> 373 363 <TopLine Value="50"/> 374 364 <CursorPos X="18" Y="61"/> 375 <UsageCount Value="28"/> 376 <Loaded Value="True"/> 365 <UsageCount Value="29"/> 377 366 </Unit37> 378 367 <Unit38> 379 368 <Filename Value="E:\Programy\Lazarus\lcl\include\controlsproc.inc"/> 380 <EditorIndex Value="9"/>381 369 <WindowIndex Value="0"/> 382 370 <TopLine Value="84"/> 383 371 <CursorPos X="45" Y="90"/> 384 <UsageCount Value="28"/> 385 <Loaded Value="True"/> 372 <UsageCount Value="29"/> 386 373 </Unit38> 387 374 <Unit39> … … 391 378 <ResourceBaseClass Value="Form"/> 392 379 <UnitName Value="UCoolDockCustomize"/> 393 <EditorIndex Value=" 4"/>380 <EditorIndex Value="12"/> 394 381 <WindowIndex Value="0"/> 395 382 <TopLine Value="9"/> 396 383 <CursorPos X="19" Y="17"/> 397 <UsageCount Value="28"/> 398 <Loaded Value="True"/> 399 <LoadedDesigner Value="True"/> 384 <UsageCount Value="30"/> 385 <Loaded Value="True"/> 400 386 <DefaultSyntaxHighlighter Value="Delphi"/> 401 387 </Unit39> 402 388 <Unit40> 403 389 <Filename Value="..\UCoolDockWindowList.pas"/> 404 <ComponentName Value="CoolDockWindowList "/>390 <ComponentName Value="CoolDockWindowListForm"/> 405 391 <HasResources Value="True"/> 406 392 <ResourceBaseClass Value="Form"/> 407 393 <UnitName Value="UCoolDockWindowList"/> 408 <EditorIndex Value="3"/>409 394 <WindowIndex Value="0"/> 410 395 <TopLine Value="59"/> 411 396 <CursorPos X="44" Y="61"/> 412 <UsageCount Value="10"/> 397 <UsageCount Value="11"/> 398 <DefaultSyntaxHighlighter Value="Delphi"/> 399 </Unit40> 400 <Unit41> 401 <Filename Value="SampleDockableForm.pas"/> 402 <IsPartOfProject Value="True"/> 403 <ComponentName Value="Form1"/> 404 <ResourceBaseClass Value="Form"/> 405 <UnitName Value="SampleDockableForm"/> 406 <EditorIndex Value="5"/> 407 <WindowIndex Value="0"/> 408 <TopLine Value="1"/> 409 <CursorPos X="15" Y="18"/> 410 <UsageCount Value="24"/> 413 411 <Loaded Value="True"/> 414 412 <LoadedDesigner Value="True"/> 415 413 <DefaultSyntaxHighlighter Value="Delphi"/> 416 </Unit40> 414 </Unit41> 415 <Unit42> 416 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\compon.inc"/> 417 <EditorIndex Value="4"/> 418 <WindowIndex Value="0"/> 419 <TopLine Value="223"/> 420 <CursorPos X="3" Y="226"/> 421 <UsageCount Value="12"/> 422 <Loaded Value="True"/> 423 </Unit42> 424 <Unit43> 425 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\sysutils\sysutilh.inc"/> 426 <EditorIndex Value="2"/> 427 <WindowIndex Value="0"/> 428 <TopLine Value="53"/> 429 <CursorPos X="4" Y="66"/> 430 <UsageCount Value="12"/> 431 <Loaded Value="True"/> 432 </Unit43> 417 433 </Units> 418 434 <JumpHistory Count="30" HistoryIndex="29"> 419 435 <Position1> 420 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>421 <Caret Line="13 51" Column="16" TopLine="1336"/>436 <Filename Value="..\UCoolDocking.pas"/> 437 <Caret Line="1307" Column="15" TopLine="1289"/> 422 438 </Position1> 423 439 <Position2> 424 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>425 <Caret Line=" 5" Column="61" TopLine="1"/>440 <Filename Value="..\UCoolDocking.pas"/> 441 <Caret Line="1293" Column="23" TopLine="1280"/> 426 442 </Position2> 427 443 <Position3> 428 <Filename Value=" E:\Programy\Lazarus\lcl\include\control.inc"/>429 <Caret Line="1 338" Column="22" TopLine="1325"/>444 <Filename Value="..\UCoolDocking.pas"/> 445 <Caret Line="1147" Column="19" TopLine="1139"/> 430 446 </Position3> 431 447 <Position4> 432 448 <Filename Value="..\UCoolDocking.pas"/> 433 <Caret Line=" 469" Column="35" TopLine="450"/>449 <Caret Line="185" Column="16" TopLine="171"/> 434 450 </Position4> 435 451 <Position5> 436 <Filename Value=" ..\UCoolDocking.pas"/>437 <Caret Line=" 468" Column="12" TopLine="450"/>452 <Filename Value="UMainForm.pas"/> 453 <Caret Line="23" Column="42" TopLine="14"/> 438 454 </Position5> 439 455 <Position6> 440 456 <Filename Value="..\UCoolDocking.pas"/> 441 <Caret Line=" 417" Column="29" TopLine="404"/>457 <Caret Line="1301" Column="16" TopLine="1285"/> 442 458 </Position6> 443 459 <Position7> 444 460 <Filename Value="..\UCoolDocking.pas"/> 445 <Caret Line=" 59" Column="46" TopLine="50"/>461 <Caret Line="1298" Column="49" TopLine="1285"/> 446 462 </Position7> 447 463 <Position8> 448 464 <Filename Value="..\UCoolDocking.pas"/> 449 <Caret Line=" 470" Column="54" TopLine="454"/>465 <Caret Line="1302" Column="20" TopLine="1285"/> 450 466 </Position8> 451 467 <Position9> 452 468 <Filename Value="..\UCoolDocking.pas"/> 453 <Caret Line=" 832" Column="43" TopLine="828"/>469 <Caret Line="1303" Column="21" TopLine="1285"/> 454 470 </Position9> 455 471 <Position10> 456 <Filename Value=" ..\UCoolDocking.pas"/>457 <Caret Line=" 696" Column="12" TopLine="683"/>472 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 473 <Caret Line="722" Column="18" TopLine="709"/> 458 474 </Position10> 459 475 <Position11> 460 <Filename Value=" ..\UCoolDocking.pas"/>461 <Caret Line="1 40" Column="47" TopLine="127"/>476 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 477 <Caret Line="1878" Column="60" TopLine="1865"/> 462 478 </Position11> 463 479 <Position12> 464 <Filename Value=" ..\UCoolDocking.pas"/>465 <Caret Line=" 833" Column="31" TopLine="830"/>480 <Filename Value="SampleDockableForm.pas"/> 481 <Caret Line="4" Column="41" TopLine="1"/> 466 482 </Position12> 467 483 <Position13> 468 <Filename Value=" ..\UCoolDocking.pas"/>469 <Caret Line=" 699" Column="28" TopLine="692"/>484 <Filename Value="UDockForm.pas"/> 485 <Caret Line="8" Column="47" TopLine="1"/> 470 486 </Position13> 471 487 <Position14> 472 <Filename Value=" E:\Programy\Lazarus\lcl\controls.pp"/>473 <Caret Line=" 1904" Column="65" TopLine="1891"/>488 <Filename Value="UMainForm.pas"/> 489 <Caret Line="99" Column="5" TopLine="91"/> 474 490 </Position14> 475 491 <Position15> 476 492 <Filename Value="..\UCoolDocking.pas"/> 477 <Caret Line=" 835" Column="42" TopLine="830"/>493 <Caret Line="1309" Column="1" TopLine="1287"/> 478 494 </Position15> 479 495 <Position16> 480 <Filename Value=" ..\UCoolDocking.pas"/>481 <Caret Line=" 749" Column="1" TopLine="736"/>496 <Filename Value="UMainForm.pas"/> 497 <Caret Line="66" Column="26" TopLine="55"/> 482 498 </Position16> 483 499 <Position17> 484 <Filename Value=" ..\UCoolDocking.pas"/>485 <Caret Line=" 750" Column="1" TopLine="736"/>500 <Filename Value="UMainForm.pas"/> 501 <Caret Line="67" Column="26" TopLine="56"/> 486 502 </Position17> 487 503 <Position18> 488 <Filename Value=" ..\UCoolDocking.pas"/>489 <Caret Line=" 751" Column="1" TopLine="736"/>504 <Filename Value="UMainForm.pas"/> 505 <Caret Line="66" Column="26" TopLine="55"/> 490 506 </Position18> 491 507 <Position19> 492 508 <Filename Value="..\UCoolDocking.pas"/> 493 <Caret Line=" 754" Column="1" TopLine="736"/>509 <Caret Line="183" Column="34" TopLine="169"/> 494 510 </Position19> 495 511 <Position20> 496 512 <Filename Value="..\UCoolDocking.pas"/> 497 <Caret Line=" 699" Column="25" TopLine="686"/>513 <Caret Line="177" Column="70" TopLine="153"/> 498 514 </Position20> 499 515 <Position21> 500 <Filename Value=" E:\Programy\Lazarus\lcl\controls.pp"/>501 <Caret Line=" 1904" Column="69" TopLine="1891"/>516 <Filename Value="SampleDockableForm.pas"/> 517 <Caret Line="4" Column="41" TopLine="1"/> 502 518 </Position21> 503 519 <Position22> 504 <Filename Value=" E:\Programy\Lazarus\lcl\controls.pp"/>505 <Caret Line="1 689" Column="34" TopLine="1676"/>520 <Filename Value="SampleDockableForm.pas"/> 521 <Caret Line="18" Column="15" TopLine="1"/> 506 522 </Position22> 507 523 <Position23> 508 <Filename Value="E:\Programy\Lazarus\lcl\ controls.pp"/>509 <Caret Line=" 1907" Column="31" TopLine="1891"/>524 <Filename Value="E:\Programy\Lazarus\lcl\stdctrls.pp"/> 525 <Caret Line="918" Column="17" TopLine="906"/> 510 526 </Position23> 511 527 <Position24> 512 <Filename Value=" ..\UCoolDockWindowList.pas"/>513 <Caret Line=" 1" Column="1" TopLine="1"/>528 <Filename Value="E:\Programy\Lazarus\lcl\stdctrls.pp"/> 529 <Caret Line="826" Column="28" TopLine="813"/> 514 530 </Position24> 515 531 <Position25> 516 <Filename Value="..\UCoolDock WindowList.pas"/>517 <Caret Line="19 " Column="75" TopLine="1"/>532 <Filename Value="..\UCoolDocking.pas"/> 533 <Caret Line="192" Column="21" TopLine="178"/> 518 534 </Position25> 519 535 <Position26> 520 <Filename Value=" ..\UCoolDockWindowList.pas"/>521 <Caret Line=" 36" Column="9" TopLine="17"/>536 <Filename Value="UMainForm.pas"/> 537 <Caret Line="61" Column="45" TopLine="55"/> 522 538 </Position26> 523 539 <Position27> 524 <Filename Value=" ..\UCoolDockWindowList.pas"/>525 <Caret Line=" 24" Column="24" TopLine="11"/>540 <Filename Value="UMainForm.pas"/> 541 <Caret Line="66" Column="43" TopLine="56"/> 526 542 </Position27> 527 543 <Position28> 528 <Filename Value=" ..\UCoolDockWindowList.pas"/>529 <Caret Line=" 70" Column="41" TopLine="53"/>544 <Filename Value="UMainForm.pas"/> 545 <Caret Line="64" Column="32" TopLine="56"/> 530 546 </Position28> 531 547 <Position29> 532 <Filename Value=" ..\UCoolDockWindowList.pas"/>533 <Caret Line=" 49" Column="40" TopLine="34"/>548 <Filename Value="UMainForm.pas"/> 549 <Caret Line="71" Column="35" TopLine="56"/> 534 550 </Position29> 535 551 <Position30> 536 <Filename Value=" ..\UCoolDockWindowList.pas"/>537 <Caret Line=" 56" Column="26" TopLine="39"/>552 <Filename Value="UMainForm.pas"/> 553 <Caret Line="64" Column="38" TopLine="51"/> 538 554 </Position30> 539 555 </JumpHistory> … … 546 562 </Target> 547 563 <SearchPaths> 548 <IncludeFiles Value="$(ProjOutDir) \"/>549 <OtherUnitFiles Value=".. \"/>564 <IncludeFiles Value="$(ProjOutDir)"/> 565 <OtherUnitFiles Value=".."/> 550 566 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 551 567 </SearchPaths> … … 582 598 </CompilerOptions> 583 599 <Debugging> 600 <BreakPoints Count="1"> 601 <Item1> 602 <Source Value="..\UCoolDocking.pas"/> 603 <Line Value="883"/> 604 </Item1> 605 </BreakPoints> 584 606 <Watches Count="1"> 585 607 <Item1> -
Docking/CoolDocking/Demo/Demo.lpr
r54 r58 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UMainForm, UDockForm, CoolDocking ;10 Forms, UMainForm, UDockForm, CoolDocking, SampleDockableForm; 11 11 12 12 {$R *.res} … … 15 15 Application.Initialize; 16 16 Application.CreateForm(TMainForm, MainForm); 17 Application.CreateForm(TForm1, Form1); 17 18 Application.Run; 18 19 end. -
Docking/CoolDocking/Demo/UDockForm.lfm
r41 r58 1 1 object DockForm: TDockForm 2 Left = 39 12 Left = 396 3 3 Height = 240 4 Top = 1 254 Top = 142 5 5 Width = 320 6 6 Caption = 'DockForm' … … 16 16 TabOrder = 0 17 17 end 18 object CoolDockClient1: TCoolDockClient 19 Master = MainForm.CoolDockMaster1 20 left = 40 21 top = 24 22 end 18 23 end -
Docking/CoolDocking/Demo/UDockForm.pas
r41 r58 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UCoolDocking; 9 10 10 11 type … … 13 14 14 15 TDockForm = class(TForm) 16 CoolDockClient1: TCoolDockClient; 15 17 Memo1: TMemo; 16 18 private -
Docking/CoolDocking/Demo/UMainForm.lfm
r57 r58 35 35 DefaultHeaderPos = hpAuto 36 36 Customize = CoolDockCustomize1 37 ShowIcons = False 37 38 left = 384 38 39 end … … 62 63 end 63 64 end 65 object CoolDockClient1: TCoolDockClient 66 Master = CoolDockMaster1 67 Panel = Panel1 68 left = 376 69 top = 64 70 end 64 71 end -
Docking/CoolDocking/Demo/UMainForm.pas
r56 r58 16 16 TMainForm = class(TForm) 17 17 Button1: TButton; 18 CoolDockClient1: TCoolDockClient; 18 19 CoolDockCustomize1: TCoolDockCustomize; 19 20 CoolDockMaster1: TCoolDockMaster; … … 94 95 Result.Name := 'Form' + IntToStr(FormIndex); 95 96 Result.Memo1.Text := Result.Name; 96 Result.DragKind := dkDock;97 Result.DragMode := dmAutomatic;98 Result.DockSite := True;99 Result.UseDockManager := True;97 //Result.DragKind := dkDock; 98 //Result.DragMode := dmAutomatic; 99 //Result.DockSite := True; 100 //Result.UseDockManager := True; 100 101 Inc(FormIndex); 101 102 Result.Show; -
Docking/CoolDocking/UCoolDockWindowList.pas
r57 r58 103 103 //ShowMessage(IntToStr(Integer(Form.Icon.TransparentColor))); 104 104 IconBitmap.Assign(Form.Icon); 105 //IconBitmap.Canvas.Draw(0, 0, Form.Icon);105 //IconBitmap.Canvas.Draw(0, 0, Form.Icon); 106 106 107 Mask.Assign(Form.Icon);108 Mask.Canvas.Brush.Color := Form.Icon.TransparentColor;109 Mask.Monochrome := True;110 ImageList1.BkColor := clBlack;111 ImageList1.Add(IconBitmap, Mask);107 //Mask.Assign(Form.Icon); 108 //Mask.Canvas.Brush.Color := Form.Icon.TransparentColor; 109 //Mask.Monochrome := True; 110 //ImageList1.BkColor := clBlack; 111 ImageList1.Add(IconBitmap, nil); 112 112 finally 113 113 Mask.Free; -
Docking/CoolDocking/UCoolDocking.pas
r57 r58 22 22 TCoolDockClientPanel = class; 23 23 TCoolDockCustomize = class; 24 TCoolDockClient = class; 24 25 25 26 { TCoolDockConjoinForm } … … 27 28 TCoolDockConjoinForm = class(TForm) 28 29 Panel: TPanel; 30 CoolDockClient: TCoolDockClient; 29 31 constructor Create(TheOwner: TComponent); override; 30 32 end; … … 86 88 FDockStyle: TDockStyle; 87 89 TabControl: TTabControl; 90 TabImageList: TImageList; 88 91 FDockDirection: TDockDirection; 89 92 FDockSite: TWinControl; … … 149 152 FCoolDockCustomize: TCoolDockCustomize; 150 153 FDefaultHeaderPos: THeaderPos; 154 FShowIcons: Boolean; 151 155 FTabsEnabled: Boolean; 156 FClients: TObjectList; 157 function GetClient(Index: Integer): TCoolDockClient; 152 158 procedure SetCustomize(const AValue: TCoolDockCustomize); 159 procedure SetShowIcons(const AValue: Boolean); 153 160 procedure SetTabsEnabled(const AValue: Boolean); 154 161 public … … 157 164 procedure SaveLayoutToFile(FileName: string); 158 165 procedure LoadLayoutFromFile(FileName: string); 166 constructor Create(AOwner: TComponent); override; 159 167 destructor Destroy; override; 168 procedure RegisterClient(Client: TCoolDockClient); 169 procedure UnRegisterClient(Client: TCoolDockClient); 170 property Clients[Index: Integer]: TCoolDockClient read GetClient; 160 171 published 161 172 property TabsEnabled: Boolean read FTabsEnabled write SetTabsEnabled; … … 164 175 property Customize: TCoolDockCustomize read FCoolDockCustomize 165 176 write SetCustomize; 177 property ShowIcons: Boolean read FShowIcons 178 write SetShowIcons; 179 end; 180 181 TCoolDockClient = class(TComponent) 182 private 183 FMaster: TCoolDockMaster; 184 FPanel: TPanel; 185 procedure SetMaster(const AValue: TCoolDockMaster); 186 constructor Create(AOwner: TComponent); override; 187 destructor Destroy; override; 188 procedure SetPanel(const AValue: TPanel); 189 published 190 property Master: TCoolDockMaster read FMaster 191 write SetMaster; 192 property Panel: TPanel read FPanel 193 write SetPanel; 166 194 end; 167 195 … … 210 238 SUndock = 'Undock'; 211 239 SCustomize = 'Customize...'; 240 SWrongOwner = 'Owner of TCoolDockClient have to be TForm'; 212 241 213 242 procedure Register; 214 243 begin 215 244 RegisterComponents('CoolDocking', [TCoolDockMaster]); 245 RegisterComponents('CoolDocking', [TCoolDockClient]); 216 246 RegisterComponents('CoolDocking', [TCoolDockCustomize]); 217 247 RegisterComponents('CoolDocking', [TCoolDockWindowList]); … … 380 410 PopupMenuHeader.Items.Add(NewMenuItem); 381 411 412 TabImageList := TImageList.Create(FDockSite); 413 with TabImageList do begin 414 end; 382 415 TabControl := TTabControl.Create(FDockSite); 383 416 with TabControl do begin … … 389 422 PopupMenu := PopupMenuTabs; 390 423 OnMouseDown := TabControlMouseDown; 424 Images := TabImageList; 391 425 end; 392 426 TabsPos := hpTop; … … 646 680 TabControl.Visible := True; 647 681 TabControl.Tabs.Clear; 682 TabImageList.Clear; 648 683 for I := 0 to FDockPanels.Count - 1 do begin 649 684 TabControl.Tabs.Add(TCoolDockClientPanel(FDockPanels[I]).Control.Caption); 685 TabImageList.Add(TCoolDockClientPanel(FDockPanels[I]).Header.Icon.Picture.Bitmap, nil); 650 686 if Assigned(TCoolDockClientPanel(FDockPanels[I]).Splitter) then 651 687 TCoolDockClientPanel(FDockPanels[I]).Splitter.Visible := False; … … 846 882 procedure TCoolDockClientPanel.VisibleChange(Sender: TObject); 847 883 begin 848 (* if Assigned(Control) then begin 849 //OwnerDockManager.FDockPanels.Remove(Self); 884 if Assigned(Control) then begin 850 885 if Assigned(ClientAreaPanel) then 851 886 ClientAreaPanel.Visible := Control.Visible; … … 853 888 Splitter.Visible := Control.Visible; 854 889 OwnerDockManager.UpdateClientSize; 855 end; *)890 end; 856 891 end; 857 892 … … 963 998 // Color := clYellow; 964 999 end; 965 DragKind := dkDock; 966 DragMode := dmAutomatic; 1000 CoolDockClient := TCoolDockClient.Create(Self); 1001 with CoolDockClient do begin 1002 Panel := Self.Panel; 1003 end; 967 1004 end; 968 1005 … … 988 1025 OldCustomize.Master := nil; 989 1026 end; 1027 end; 1028 1029 function TCoolDockMaster.GetClient(Index: Integer): TCoolDockClient; 1030 begin 1031 Result := TCoolDockClient(FClients[Index]); 1032 end; 1033 1034 procedure TCoolDockMaster.SetShowIcons(const AValue: Boolean); 1035 begin 1036 if FShowIcons = AValue then Exit; 1037 FShowIcons := AValue; 990 1038 end; 991 1039 … … 1093 1141 end; 1094 1142 1143 constructor TCoolDockMaster.Create(AOwner: TComponent); 1144 begin 1145 inherited Create(AOwner); 1146 FClients := TObjectList.Create; 1147 FClients.OwnsObjects := False; 1148 end; 1149 1095 1150 destructor TCoolDockMaster.Destroy; 1096 1151 begin 1152 FClients.Free; 1097 1153 Customize := nil; 1098 1154 inherited Destroy; 1155 end; 1156 1157 procedure TCoolDockMaster.RegisterClient(Client: TCoolDockClient); 1158 begin 1159 if Assigned(Client) then 1160 if FClients.IndexOf(Client) <> -1 then begin 1161 FClients.Add(Client); 1162 Client.Master := Self; 1163 end; 1164 end; 1165 1166 procedure TCoolDockMaster.UnRegisterClient(Client: TCoolDockClient); 1167 begin 1168 if Assigned(Client) then begin 1169 Client.Master := nil; 1170 FClients.Remove(Client); 1171 end; 1099 1172 end; 1100 1173 … … 1140 1213 Parent := Self; 1141 1214 Left := 4; 1142 Top := 3;1215 Top := 2; 1143 1216 Visible := True; 1144 1217 end; … … 1223 1296 end; 1224 1297 1225 initialization 1226 DefaultDockManagerClass := TCoolDockManager; 1298 { TCoolDockClient } 1299 1300 procedure TCoolDockClient.SetMaster(const AValue: TCoolDockMaster); 1301 var 1302 FOldMaster: TCoolDockMaster; 1303 begin 1304 if FMaster = AValue then Exit; 1305 FOldMaster := FMaster; 1306 FMaster := AValue; 1307 if Assigned(FOldMaster) then 1308 FOldMaster.UnregisterClient(Self); 1309 if Assigned(FMaster) then 1310 FMaster.RegisterClient(Self); 1311 end; 1312 1313 constructor TCoolDockClient.Create(AOwner: TComponent); 1314 begin 1315 inherited Create(AOwner); 1316 if not (AOwner is TForm) then 1317 raise Exception.Create(SWrongOwner); 1318 with (AOwner as TForm) do begin 1319 if not (csDesigning in ComponentState) then begin 1320 DragKind := dkDock; 1321 DragMode := dmAutomatic; 1322 DockSite := True; 1323 UseDockManager := True; 1324 DockManager := TCoolDockManager.Create(TWinControl(AOwner)); 1325 end; 1326 end; 1327 end; 1328 1329 destructor TCoolDockClient.Destroy; 1330 begin 1331 inherited Destroy; 1332 Master := nil; 1333 end; 1334 1335 procedure TCoolDockClient.SetPanel(const AValue: TPanel); 1336 var 1337 OldPanel: TPanel; 1338 begin 1339 if FPanel = AValue then exit; 1340 OldPanel := FPanel; 1341 FPanel := AValue; 1342 if not (csDesigning in ComponentState) then begin 1343 if Assigned(FPanel) then 1344 with FPanel do begin 1345 DockSite := True; 1346 UseDockManager := True; 1347 DockManager := TCoolDockManager.Create(FPanel); 1348 end else begin 1349 OldPanel.DockSite := False; 1350 end; 1351 end; 1352 end; 1227 1353 1228 1354 end. -
Docking/CoolDocking/languages/UCoolDocking.cs.po
r56 r58 15 15 16 16 #: ucooldocking.scustomize 17 #, fuzzy18 17 #| msgid "Customize...s" 19 18 msgid "Customize..." … … 64 63 msgstr "Odkotvit" 65 64 65 #: ucooldocking.swrongowner 66 msgid "Owner of TCoolDockClient have to be TForm" 67 msgstr "" 68 -
Docking/CoolDocking/languages/UCoolDocking.po
r56 r58 54 54 msgstr "" 55 55 56 #: ucooldocking.swrongowner 57 msgid "Owner of TCoolDockClient have to be TForm" 58 msgstr "" 59
Note:
See TracChangeset
for help on using the changeset viewer.