Changeset 48 for DockManager/Lazarus/Demo
- Timestamp:
- Sep 17, 2010, 3:34:31 PM (14 years ago)
- Location:
- DockManager/Lazarus
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
DockManager/Lazarus/Demo/Demo.lpi
r47 r48 27 27 </local> 28 28 </RunParams> 29 <RequiredPackages Count=" 1">29 <RequiredPackages Count="2"> 30 30 <Item1> 31 <PackageName Value="CustomDockManager"/> 32 </Item1> 33 <Item2> 31 34 <PackageName Value="LCL"/> 32 </Item 1>35 </Item2> 33 36 </RequiredPackages> 34 <Units Count=" 29">37 <Units Count="31"> 35 38 <Unit0> 36 39 <Filename Value="Demo.lpr"/> 37 40 <IsPartOfProject Value="True"/> 38 41 <UnitName Value="Demo"/> 39 <EditorIndex Value=" 2"/>42 <EditorIndex Value="4"/> 40 43 <WindowIndex Value="0"/> 41 44 <TopLine Value="1"/> 42 45 <CursorPos X="7" Y="3"/> 43 <UsageCount Value="3 6"/>46 <UsageCount Value="37"/> 44 47 <Loaded Value="True"/> 45 48 <DefaultSyntaxHighlighter Value="Delphi"/> … … 53 56 <EditorIndex Value="0"/> 54 57 <WindowIndex Value="0"/> 55 <TopLine Value=" 47"/>56 <CursorPos X="2 6" Y="61"/>57 <UsageCount Value="3 6"/>58 <TopLine Value="1"/> 59 <CursorPos X="20" Y="17"/> 60 <UsageCount Value="37"/> 58 61 <Loaded Value="True"/> 59 62 <LoadedDesigner Value="True"/> … … 63 66 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 64 67 <UnitName Value="Controls"/> 65 <EditorIndex Value=" 7"/>68 <EditorIndex Value="9"/> 66 69 <WindowIndex Value="0"/> 67 70 <TopLine Value="3840"/> … … 81 84 <Unit4> 82 85 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 83 <EditorIndex Value="1 0"/>86 <EditorIndex Value="12"/> 84 87 <WindowIndex Value="0"/> 85 88 <TopLine Value="1035"/> … … 90 93 <Unit5> 91 94 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 92 <EditorIndex Value=" 8"/>95 <EditorIndex Value="10"/> 93 96 <WindowIndex Value="0"/> 94 97 <TopLine Value="7631"/> … … 171 174 <ResourceBaseClass Value="Form"/> 172 175 <UnitName Value="UDockForm"/> 173 <EditorIndex Value="1 2"/>176 <EditorIndex Value="14"/> 174 177 <WindowIndex Value="0"/> 175 178 <TopLine Value="1"/> 176 179 <CursorPos X="47" Y="8"/> 177 <UsageCount Value="3 5"/>180 <UsageCount Value="36"/> 178 181 <Loaded Value="True"/> 179 182 <LoadedDesigner Value="True"/> … … 199 202 <Filename Value="E:\Projekty jine\Lazarus\examples\anchordocking\anchordocking.pas"/> 200 203 <UnitName Value="AnchorDocking"/> 201 <EditorIndex Value="1 1"/>204 <EditorIndex Value="13"/> 202 205 <WindowIndex Value="0"/> 203 206 <TopLine Value="4754"/> … … 217 220 <Unit20> 218 221 <Filename Value="..\UCustomDockManager.pas"/> 219 <IsPartOfProject Value="True"/>220 222 <UnitName Value="UCustomDockManager"/> 221 223 <IsVisibleTab Value="True"/> 222 <EditorIndex Value=" 3"/>223 <WindowIndex Value="0"/> 224 <TopLine Value="1 84"/>225 <CursorPos X=" 45" Y="209"/>224 <EditorIndex Value="1"/> 225 <WindowIndex Value="0"/> 226 <TopLine Value="1"/> 227 <CursorPos X="39" Y="19"/> 226 228 <UsageCount Value="31"/> 227 229 <Loaded Value="True"/> … … 231 233 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 232 234 <UnitName Value="ExtCtrls"/> 235 <EditorIndex Value="2"/> 233 236 <WindowIndex Value="0"/> 234 237 <TopLine Value="1183"/> 235 <CursorPos X="9" Y="1183"/> 236 <UsageCount Value="9"/> 238 <CursorPos X="24" Y="1199"/> 239 <UsageCount Value="10"/> 240 <Loaded Value="True"/> 237 241 </Unit21> 238 242 <Unit22> … … 246 250 <Unit23> 247 251 <Filename Value="E:\Programy\Lazarus\lcl\include\dragmanager.inc"/> 248 <EditorIndex Value=" 5"/>252 <EditorIndex Value="7"/> 249 253 <WindowIndex Value="0"/> 250 254 <TopLine Value="553"/> … … 263 267 <Filename Value="E:\Programy\Lazarus\lcl\widgetset\wscontrols.pp"/> 264 268 <UnitName Value="WSControls"/> 265 <EditorIndex Value=" 9"/>269 <EditorIndex Value="11"/> 266 270 <WindowIndex Value="0"/> 267 271 <TopLine Value="267"/> … … 273 277 <Filename Value="E:\Programy\Lazarus\lcl\comctrls.pp"/> 274 278 <UnitName Value="ComCtrls"/> 275 <EditorIndex Value=" 1"/>279 <EditorIndex Value="3"/> 276 280 <WindowIndex Value="0"/> 277 281 <TopLine Value="545"/> … … 283 287 <Filename Value="E:\Programy\Lazarus\lcl\forms.pp"/> 284 288 <UnitName Value="Forms"/> 285 <EditorIndex Value=" 6"/>289 <EditorIndex Value="8"/> 286 290 <WindowIndex Value="0"/> 287 291 <TopLine Value="687"/> … … 293 297 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 294 298 <UnitName Value="Themes"/> 295 <EditorIndex Value=" 4"/>296 <WindowIndex Value="0"/> 297 <TopLine Value="5 43"/>298 <CursorPos X=" 24" Y="557"/>299 <EditorIndex Value="5"/> 300 <WindowIndex Value="0"/> 301 <TopLine Value="550"/> 302 <CursorPos X="13" Y="556"/> 299 303 <UsageCount Value="11"/> 300 304 <Loaded Value="True"/> 301 305 </Unit28> 306 <Unit29> 307 <Filename Value="E:\Programy\Lazarus\lcl\menus.pp"/> 308 <UnitName Value="Menus"/> 309 <WindowIndex Value="0"/> 310 <TopLine Value="374"/> 311 <CursorPos X="3" Y="387"/> 312 <UsageCount Value="10"/> 313 </Unit29> 314 <Unit30> 315 <Filename Value="..\..\..\ExceptionLogger\UExceptionLogger.pas"/> 316 <UnitName Value="UExceptionLogger"/> 317 <EditorIndex Value="6"/> 318 <WindowIndex Value="0"/> 319 <TopLine Value="34"/> 320 <CursorPos X="1" Y="56"/> 321 <UsageCount Value="10"/> 322 <Loaded Value="True"/> 323 <DefaultSyntaxHighlighter Value="Delphi"/> 324 </Unit30> 302 325 </Units> 303 326 <JumpHistory Count="30" HistoryIndex="29"> 304 327 <Position1> 305 <Filename Value=" UMainForm.pas"/>306 <Caret Line=" 57" Column="80" TopLine="44"/>328 <Filename Value="..\UCustomDockManager.pas"/> 329 <Caret Line="360" Column="1" TopLine="354"/> 307 330 </Position1> 308 331 <Position2> 309 332 <Filename Value="..\UCustomDockManager.pas"/> 310 <Caret Line="3 39" Column="62" TopLine="339"/>333 <Caret Line="361" Column="1" TopLine="354"/> 311 334 </Position2> 312 335 <Position3> 313 <Filename Value=" UMainForm.pas"/>314 <Caret Line=" 61" Column="39" TopLine="44"/>336 <Filename Value="..\UCustomDockManager.pas"/> 337 <Caret Line="362" Column="1" TopLine="354"/> 315 338 </Position3> 316 339 <Position4> 317 340 <Filename Value="..\UCustomDockManager.pas"/> 318 <Caret Line="3 81" Column="38" TopLine="368"/>341 <Caret Line="363" Column="1" TopLine="354"/> 319 342 </Position4> 320 343 <Position5> 321 <Filename Value=" UMainForm.pas"/>322 <Caret Line=" 60" Column="50" TopLine="44"/>344 <Filename Value="..\UCustomDockManager.pas"/> 345 <Caret Line="369" Column="1" TopLine="354"/> 323 346 </Position5> 324 347 <Position6> 325 <Filename Value=" UMainForm.pas"/>326 <Caret Line=" 58" Column="38" TopLine="44"/>348 <Filename Value="..\UCustomDockManager.pas"/> 349 <Caret Line="380" Column="1" TopLine="367"/> 327 350 </Position6> 328 351 <Position7> 329 <Filename Value=" UMainForm.pas"/>330 <Caret Line=" 60" Column="47" TopLine="47"/>352 <Filename Value="..\UCustomDockManager.pas"/> 353 <Caret Line="381" Column="1" TopLine="367"/> 331 354 </Position7> 332 355 <Position8> 333 <Filename Value=" ..\UCustomDockManager.pas"/>334 <Caret Line=" 416" Column="1" TopLine="399"/>356 <Filename Value="UMainForm.pas"/> 357 <Caret Line="61" Column="1" TopLine="47"/> 335 358 </Position8> 336 359 <Position9> 337 360 <Filename Value="UMainForm.pas"/> 338 <Caret Line="6 0" Column="68" TopLine="47"/>361 <Caret Line="62" Column="1" TopLine="47"/> 339 362 </Position9> 340 363 <Position10> 341 <Filename Value=" ..\UCustomDockManager.pas"/>342 <Caret Line=" 90" Column="66" TopLine="77"/>364 <Filename Value="UMainForm.pas"/> 365 <Caret Line="63" Column="1" TopLine="47"/> 343 366 </Position10> 344 367 <Position11> 345 <Filename Value=" ..\UCustomDockManager.pas"/>346 <Caret Line=" 359" Column="1" TopLine="354"/>368 <Filename Value="UMainForm.pas"/> 369 <Caret Line="64" Column="1" TopLine="47"/> 347 370 </Position11> 348 371 <Position12> 349 <Filename Value=" ..\UCustomDockManager.pas"/>350 <Caret Line=" 360" Column="1" TopLine="354"/>372 <Filename Value="UMainForm.pas"/> 373 <Caret Line="60" Column="64" TopLine="47"/> 351 374 </Position12> 352 375 <Position13> 353 376 <Filename Value="..\UCustomDockManager.pas"/> 354 <Caret Line=" 361" Column="1" TopLine="354"/>377 <Caret Line="90" Column="62" TopLine="77"/> 355 378 </Position13> 356 379 <Position14> 357 380 <Filename Value="..\UCustomDockManager.pas"/> 358 <Caret Line="3 62" Column="1" TopLine="354"/>381 <Caret Line="359" Column="1" TopLine="354"/> 359 382 </Position14> 360 383 <Position15> 361 384 <Filename Value="..\UCustomDockManager.pas"/> 362 <Caret Line="36 3" Column="1" TopLine="354"/>385 <Caret Line="360" Column="1" TopLine="354"/> 363 386 </Position15> 364 387 <Position16> 365 388 <Filename Value="..\UCustomDockManager.pas"/> 366 <Caret Line="36 9" Column="1" TopLine="354"/>389 <Caret Line="361" Column="1" TopLine="354"/> 367 390 </Position16> 368 391 <Position17> 369 392 <Filename Value="..\UCustomDockManager.pas"/> 370 <Caret Line="3 80" Column="1" TopLine="367"/>393 <Caret Line="362" Column="1" TopLine="354"/> 371 394 </Position17> 372 395 <Position18> 373 396 <Filename Value="..\UCustomDockManager.pas"/> 374 <Caret Line="3 81" Column="1" TopLine="367"/>397 <Caret Line="363" Column="1" TopLine="354"/> 375 398 </Position18> 376 399 <Position19> 377 <Filename Value=" UMainForm.pas"/>378 <Caret Line=" 61" Column="1" TopLine="47"/>400 <Filename Value="..\UCustomDockManager.pas"/> 401 <Caret Line="242" Column="20" TopLine="224"/> 379 402 </Position19> 380 403 <Position20> 381 404 <Filename Value="UMainForm.pas"/> 382 <Caret Line="6 2" Column="1" TopLine="47"/>405 <Caret Line="61" Column="26" TopLine="47"/> 383 406 </Position20> 384 407 <Position21> 385 408 <Filename Value="UMainForm.pas"/> 386 <Caret Line=" 63" Column="1" TopLine="47"/>409 <Caret Line="17" Column="18" TopLine="1"/> 387 410 </Position21> 388 411 <Position22> 389 412 <Filename Value="UMainForm.pas"/> 390 <Caret Line=" 64" Column="1" TopLine="47"/>413 <Caret Line="18" Column="23" TopLine="1"/> 391 414 </Position22> 392 415 <Position23> 393 416 <Filename Value="UMainForm.pas"/> 394 <Caret Line=" 60" Column="64" TopLine="47"/>417 <Caret Line="17" Column="20" TopLine="1"/> 395 418 </Position23> 396 419 <Position24> 397 420 <Filename Value="..\UCustomDockManager.pas"/> 398 <Caret Line=" 90" Column="62" TopLine="77"/>421 <Caret Line="167" Column="44" TopLine="157"/> 399 422 </Position24> 400 423 <Position25> 401 424 <Filename Value="..\UCustomDockManager.pas"/> 402 <Caret Line=" 359" Column="1" TopLine="354"/>425 <Caret Line="2" Column="52" TopLine="1"/> 403 426 </Position25> 404 427 <Position26> 405 428 <Filename Value="..\UCustomDockManager.pas"/> 406 <Caret Line=" 360" Column="1" TopLine="354"/>429 <Caret Line="108" Column="5" TopLine="83"/> 407 430 </Position26> 408 431 <Position27> 409 432 <Filename Value="..\UCustomDockManager.pas"/> 410 <Caret Line=" 361" Column="1" TopLine="354"/>433 <Caret Line="106" Column="45" TopLine="90"/> 411 434 </Position27> 412 435 <Position28> 413 436 <Filename Value="..\UCustomDockManager.pas"/> 414 <Caret Line=" 362" Column="1" TopLine="354"/>437 <Caret Line="635" Column="1" TopLine="626"/> 415 438 </Position28> 416 439 <Position29> 417 440 <Filename Value="..\UCustomDockManager.pas"/> 418 <Caret Line=" 363" Column="1" TopLine="354"/>441 <Caret Line="100" Column="40" TopLine="97"/> 419 442 </Position29> 420 443 <Position30> 421 444 <Filename Value="..\UCustomDockManager.pas"/> 422 <Caret Line=" 242" Column="20" TopLine="224"/>445 <Caret Line="11" Column="72" TopLine="1"/> 423 446 </Position30> 424 447 </JumpHistory> … … 440 463 </SyntaxOptions> 441 464 </Parsing> 465 <CodeGeneration> 466 <Checks> 467 <IOChecks Value="True"/> 468 <RangeChecks Value="True"/> 469 <OverflowChecks Value="True"/> 470 <StackChecks Value="True"/> 471 </Checks> 472 <VerifyObjMethodCallValidity Value="True"/> 473 </CodeGeneration> 442 474 <Linking> 443 475 <Options> -
DockManager/Lazarus/Demo/Demo.lpr
r41 r48 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UMainForm, UDockForm, UCustomDockManager 11 { you can add units after this }; 10 Forms, UMainForm, UDockForm, CustomDockManager; 12 11 13 12 {$R *.res} -
DockManager/Lazarus/Demo/UMainForm.lfm
r47 r48 1 1 object MainForm: TMainForm 2 Left = 3 112 Left = 341 3 3 Height = 435 4 Top = 914 Top = 158 5 5 Width = 576 6 6 Caption = 'MainForm' … … 22 22 object Panel1: TPanel 23 23 Left = 0 24 Height = 3 9525 Top = 4 024 Height = 387 25 Top = 48 26 26 Width = 576 27 27 Align = alBottom 28 28 Anchors = [akTop, akLeft, akRight, akBottom] 29 BevelOuter = bvNone30 29 DockSite = True 31 30 TabOrder = 1 32 31 end 33 object TabControl1: TTabControl 34 Left = 118 35 Height = 33 36 Top = 7 37 Width = 184 38 TabIndex = 0 39 TabOrder = 2 40 Tabs.Strings = ( 41 'dd' 42 'ffdfd' 43 'fdf' 44 ) 45 TabStop = False 32 object CustomDockMaster1: TCustomDockMaster 33 TabsEnabled = False 34 DefaultHeaderPos = hpAuto 35 left = 376 36 top = 24 46 37 end 47 38 end -
DockManager/Lazarus/Demo/UMainForm.pas
r47 r48 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, ExtCtrls, Buttons, UCustomDockManager, UDockForm;9 ComCtrls, ExtCtrls, Buttons, Menus, UCustomDockManager, UDockForm; 10 10 11 11 type … … 15 15 TMainForm = class(TForm) 16 16 Button1: TButton; 17 CustomDockMaster1: TCustomDockMaster; 17 18 Panel1: TPanel; 18 TabControl1: TTabControl;19 19 procedure Button1Click(Sender: TObject); 20 20 procedure FormCreate(Sender: TObject); … … 54 54 begin 55 55 NewDockForm.ManualDock(Panel1); 56 NewDockForm.ManualDock(Panel1, nil, alBottom);57 ConjoinedDockForm1 := TCustomDockManager( TForm(DockForms[1]).DockManager).CreateContainer;56 // NewDockForm.ManualDock(Panel1, nil, a); 57 ConjoinedDockForm1 := TCustomDockManager(Panel1.DockManager).CreateContainer(alRight); 58 58 ConjoinedDockForm1.Name := 'Model';; 59 ConjoinedDockForm1.ManualDock(Panel1);59 //ConjoinedDockForm1.ManualDock(Panel1); 60 60 TCustomDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs; 61 61 NewDockForm.ManualDock(ConjoinedDockForm1.Panel);
Note:
See TracChangeset
for help on using the changeset viewer.