作为Delphi的忠实用户,我想大家对Delphi中的停靠窗体应该比较熟悉吧,是不是也希望自己编的程序也具有这样的功能?使她看起来更漂亮,更专业,更方便。 本人做的一套停靠控件DockPresident正好能满足您的要求,DockPresident包含六个控件, 她们分别是TlbDockServer, TlbDockClient, TlbDelphiDockStyle, TlbVCDockStyle, TlbVIDDockStyle, TlbVSNETDockStyle。只要在主窗口上放上TDockServer控件,在一般窗口上放上TlbDockClient控件,这两个窗体就有了停靠功能。不用编写一行代码,效果和Delphi的IDE一样,并且比她功能更强。并且两个都放了TlbDockClient控件的窗体还可以相互停靠,分别停靠成平铺型和分页型的窗体。 用户还可以改变停靠的风格, TlbDockServer和TlbDockClient都有一个属性叫做DockStyle, 只要把TlbDelphiDockStyle, TlbVCDockStyle或者TlbVIDDockStyle控件赋值给DockStyle属性, 用户您就拥有了Delphi, Visual C++, Visual InterDev或者Visual Studio.net的停靠风格。 这套控件还有很多属性供用户设置,来改变她们的停靠特性。
在当前文件夹中又有一些子文件夹,分别是: Source: 控件的源代码. SupportClass: 一个第三方控件wmEdit的DCU文件,用于Demo程序中. Help: 帮助文件,请读者务必仔细阅读,里面有控件的详细说明. Document: 文档资料,如果读者想对DockPresident有更深入的了解, 阅读里面的文章. Demo: 例子程序,用来演示DockPresident控件的使用方法和效果,里面有几个效果很好的Demo. Bin 用来存储Source文件夹中对应文件的中间文件的目标文件,编译后会产生,用户可以把它删除掉.
控件安装: 如果用户使用的是Delphi5.0,请打开DockControl_D5.dpk文件安装,如果用户使用的是Delphi6.0,请打开DockControl_D6.dpk文件安装.
控件安装完成后,用户还需要配置一下Delphi,好让Delphi能找到源文件的路经, 设置方法,点击Tools菜单的Environment Options,弹出Environment Options对话框, 点击Library页,然后点击Library path右边的按钮,在弹出的Directories对话框中添加上控件源文件所在的文件夹,比如:D:\DockPresident\Source.
如果用户没有配置Delphi,Demo文件夹中的程序也是可以使用的,因为作者已经帮用户设置好了,但是如果用户要自己做一个全新的程序,请按照前面的方法配置您的Delphi.
作者的主页: http://www.pigtwo.com/CtrlData/WebSite/luxiaoban.htm 邮箱:[email protected]或者[email protected] DockPresident v1.01 (停靠窗口) (1 folders, 1 files, 20.53 KB, 12.39 MB in total.) DockPresident.gif 20.53 KB DockPresident101 (6 folders, 18 files, 36.29 KB, 12.37 MB in total.) DockControl_CB5.bpk 4.23 KB DockControl_CB5.cpp 1.23 KB DockControl_CB5.res 1.50 KB DockControl_CB6.bpk 8.21 KB DockControl_CB6.cpp 528 bytes DockControl_CB6.res 1.50 KB DockControl_D5.cfg 405 bytes DockControl_D5.dof 1.51 KB DockControl_D5.dpk 602 bytes DockControl_D5.res 1.50 KB DockControl_D6_D7.cfg 405 bytes DockControl_D6_D7.dof 1.39 KB DockControl_D6_D7.dpk 628 bytes DockControl_D6_D7.res 1.50 KB lbRegister.dcr 5.57 KB lbRegister.pas 356 bytes 读我.txt 2.11 KB 疑难详解.txt 3.17 KB Bin (0 folders, 0 files, 0 bytes, 0 bytes in total.) Demo (6 folders, 0 files, 0 bytes, 3.96 MB in total.) AdvanceDemo (3 folders, 0 files, 0 bytes, 119.52 KB in total.) BCB_Source (0 folders, 23 files, 57.69 KB, 57.69 KB in total.) AdvancePro_CB5.bpr 3.65 KB AdvancePro_CB5.cpp 754 bytes AdvancePro_CB5.res 876 bytes AdvancePro_CB6.bpr 4.94 KB AdvancePro_CB6.cpp 1.17 KB AdvancePro_CB6.res 876 bytes Main.cpp 8.99 KB Main.dfm 13.89 KB Main.h 4.15 KB Unit1.cpp 948 bytes Unit1.dfm 977 bytes Unit1.h 945 bytes Unit2.cpp 929 bytes Unit2.dfm 1.23 KB Unit2.h 989 bytes Unit2.~cpp 929 bytes Unit2.~dfm 1.25 KB Unit3.cpp 948 bytes Unit3.dfm 971 bytes Unit3.h 945 bytes Unit4.cpp 948 bytes Unit4.dfm 5.75 KB Unit4.h 945 bytes Bin (0 folders, 2 files, 16.70 KB, 16.70 KB in total.) AdvancePro.obj 16.70 KB DockInfo.ini 0 bytes Delphi_Source (0 folders, 15 files, 45.13 KB, 45.13 KB in total.) AdvancePro.cfg 494 bytes AdvancePro.dof 1.79 KB AdvancePro.dpr 329 bytes AdvancePro.res 876 bytes Main.ddp 51 bytes Main.dfm 14.95 KB Main.pas 13.78 KB Unit1.dfm 985 bytes Unit1.pas 789 bytes Unit2.dfm 1.25 KB Unit2.pas 786 bytes Unit3.dfm 1.23 KB Unit3.pas 1.39 KB Unit4.dfm 5.78 KB Unit4.pas 765 bytes DockOptionDemo (2 folders, 0 files, 0 bytes, 70.06 KB in total.) Bin (0 folders, 1 files, 8.49 KB, 8.49 KB in total.) DockInfo.ini 8.49 KB Source (0 folders, 8 files, 61.57 KB, 61.57 KB in total.) DockOptionDemo.cfg 666 bytes DockOptionDemo.dof 1.66 KB DockOptionDemo.dpr 305 bytes DockOptionDemo.res 876 bytes DockWindow.dfm 829 bytes DockWindow.pas 445 bytes MainForm.dfm 47.24 KB MainForm.pas 9.62 KB HowtoUse (0 folders, 10 files, 13.86 KB, 13.86 KB in total.) Project1.cfg 630 bytes Project1.dof 1.90 KB Project1.dpr 263 bytes Project1.res 876 bytes Unit1.dcu 3.21 KB Unit1.dfm 2.55 KB Unit1.pas 434 bytes Unit2.dcu 3.08 KB Unit2.dfm 618 bytes Unit2.pas 369 bytes MSDN2002 (3 folders, 0 files, 0 bytes, 471.79 KB in total.) Bin (1 folders, 1 files, 8.48 KB, 35.98 KB in total.) DockLayout.ini 8.48 KB msdnstart (0 folders, 7 files, 27.50 KB, 27.50 KB in total.) jan_start_illust.jpg 14.04 KB msdnstart.htm 5.48 KB netsdk.gif 1.59 KB red_bullet.gif 862 bytes vsnet.gif 1.93 KB win-ce.gif 1.67 KB win-embed.gif 1.95 KB Bitmap (0 folders, 8 files, 10.74 KB, 10.74 KB in total.) Contents.bmp 758 bytes Edit_Menu.bmp 5.30 KB FavoritesForm.bmp 374 bytes File_Menu.bmp 822 bytes Help_Menu.bmp 1.49 KB MSDNMainForm.ico 318 bytes View_Menu.bmp 1.24 KB Window_Menu.bmp 502 bytes Source (0 folders, 21 files, 425.06 KB, 425.06 KB in total.) ContentsFormUnit.dfm 32.31 KB ContentsFormUnit.pas 917 bytes FavoritesFormUnit.dfm 11.04 KB FavoritesFormUnit.pas 605 bytes IndexFormUnit.dfm 2.09 KB IndexFormUnit.pas 965 bytes IndexResultFormUnit.dfm 1.02 KB IndexResultFormUnit.pas 490 bytes MSDN2002Main.dfm 56.72 KB MSDN2002MainUnit.dfm 109.56 KB MSDN2002MainUnit.pas 13.29 KB MSDN2002Pro.cfg 666 bytes MSDN2002Pro.dof 1.60 KB MSDN2002Pro.dpr 656 bytes MSDN2002Pro.res 428 bytes SearchFormUnit.dfm 2.88 KB SearchFormUnit.pas 1.13 KB SearchResultFormUnit.dfm 1.09 KB SearchResultFormUnit.pas 494 bytes XPBarMenu.pas 67.71 KB XPMenu.pas 119.51 KB VCDemo (4 folders, 0 files, 0 bytes, 2.54 MB in total.) Bin (0 folders, 1 files, 5.81 KB, 5.81 KB in total.) DockInfo.ini 5.81 KB Bitmap (0 folders, 123 files, 1.16 MB, 1.16 MB in total.) aa.bmp 2.05 KB About_Visual_C++.bmp 246 bytes ActiveX_Control_Test.bmp 246 bytes Apply_Code_Change.bmp 246 bytes Bookmarks.bmp 246 bytes Break_Execution.bmp 246 bytes Build.bmp 246 bytes Build_Menu.bmp 6.05 KB Build_MimiBar_ToolBar.bmp 6.05 KB Call_Stack.bmp 246 bytes Cascade.bmp 246 bytes Class_Class.bmp 246 bytes Class_Close_File.bmp 246 bytes Class_Globals_Files.bmp 246 bytes Class_Private_Function.bmp 246 bytes Class_Private_Member.bmp 246 bytes Class_Project.bmp 246 bytes Class_Protect_Function.bmp 246 bytes Class_Protect_Member.bmp 246 bytes Class_Public_Function.bmp 246 bytes Class_Public_Member.bmp 246 bytes Class_Wizard.bmp 246 bytes ClassView.bmp 246 bytes Clear_All_Bookmark.bmp 246 bytes Close.bmp 246 bytes Compile.bmp 246 bytes Complete_Word.bmp 246 bytes Copy.bmp 246 bytes Cut.bmp 246 bytes Debug_Menu.bmp 13.05 KB Debug_ToolBar.bmp 18.05 KB Decrease_Indent.bmp 246 bytes Delete.bmp 246 bytes Disassembly.bmp 246 bytes Edit_Menu.bmp 14.05 KB Edit_ToolBar.bmp 8.05 KB Error_Lookup.bmp 246 bytes Exception.bmp 246 bytes Execute_Program.bmp 246 bytes File_Cpp.bmp 246 bytes File_File.bmp 246 bytes File_H.bmp 246 bytes File_Menu.bmp 5.05 KB File_Project.bmp 246 bytes FileView.bmp 246 bytes Find.bmp 246 bytes Find_In_File.bmp 246 bytes Full_Screen.bmp 246 bytes Go.bmp 246 bytes Help_Menu.bmp 3.05 KB Increase_Indent.bmp 246 bytes Insert_Menu.bmp 1.05 KB Insert_Remove_BreakPoint.bmp 246 bytes List_Members.bmp 246 bytes Macro.bmp 246 bytes Memory.bmp 246 bytes MFC_Tracer.bmp 246 bytes Microsoft_On_the_Web.bmp 246 bytes New.bmp 246 bytes New_ATL_Object.bmp 246 bytes New_Text_File.bmp 246 bytes New_Window.bmp 246 bytes Next.bmp 246 bytes Next_Bookmark.bmp 246 bytes OLE_COM_Object_Viewer.bmp 246 bytes OpenFile.bmp 246 bytes OutPut.bmp 246 bytes Parameter_Info.bmp 246 bytes Paste.bmp 246 bytes Previous.bmp 246 bytes Previous_Bookmark.bmp 246 bytes Print.bmp 246 bytes Properties.bmp 246 bytes Quick_Witch.bmp 246 bytes Redo.bmp 246 bytes Register.bmp 246 bytes Register_Control.bmp 246 bytes Resource_Accelerator.bmp 246 bytes Resource_Dialog.bmp 246 bytes Resource_Icon.bmp 246 bytes Resource_Menu.bmp 246 bytes Resource_Project.bmp 246 bytes Resource_String_Table.bmp 246 bytes Resource_Symbols.bmp 246 bytes Resource_Toolbar.bmp 246 bytes Resource_Version.bmp 246 bytes ResourceView.bmp 246 bytes Restart.bmp 246 bytes Run_To_Curser.bmp 246 bytes SaveAllFile.bmp 246 bytes SaveAsFile.bmp 246 bytes SaveFile.bmp 246 bytes Search.bmp 246 bytes Show_Next_Statement.bmp 246 bytes Split.bmp 246 bytes Spy++.bmp 246 bytes Standard_ToolBar.bmp 14.05 KB Step_Into.bmp 246 bytes Step_Out.bmp 246 bytes Step_Over.bmp 246 bytes Stop_Build.bmp 246 bytes Stop_Debuging.bmp 246 bytes Threads.bmp 246 bytes Thumbs.db 215.68 KB Tile_Horizontally.bmp 246 bytes Tile_Vertically.bmp 246 bytes Toggle_Bookmark.bmp 246 bytes Toggle_WhiteSpace_Display.bmp 246 bytes Tools_Menu.bmp 8.05 KB Type_Info.bmp 246 bytes Undo.bmp 246 bytes Variable.bmp 246 bytes VC++_Flash.bmp 418.97 KB VC++_Flash1.bmp 418.97 KB VC++_Title.ico 766 bytes VC++_Title_Icon.bmp 246 bytes View_Menu.bmp 4.05 KB Visual_Components_Manager.bmp 246 bytes Windows.bmp 246 bytes Windows_List.bmp 246 bytes Windows_Menu.bmp 9.05 KB Witch.bmp 246 bytes WorkSpace.bmp 246 bytes C++ File (0 folders, 11 files, 18.54 KB, 18.54 KB in total.) MainFrm.cpp 2.45 KB MainFrm.h 1.54 KB MyApp.cpp 4.09 KB MyApp.h 1.31 KB MyAppDoc.cpp 1.68 KB MyAppDoc.h 1.43 KB MyAppView.cpp 2.49 KB MyAppView.h 1.83 KB Resource.h 492 bytes StdAfx.cpp 207 bytes StdAfx.h 1.03 KB Source (0 folders, 30 files, 1.35 MB, 1.35 MB in total.) CallStackUnit.dfm 1.34 KB CallStackUnit.pas 675 bytes Main.dfm 248.32 KB Main.pas 31.19 KB MemoryUnit.dfm 38.33 KB MemoryUnit.pas 895 bytes OutputUnit.dfm 2.27 KB OutputUnit.pas 1.47 KB RegistersUnit.dfm 1.67 KB RegistersUnit.pas 695 bytes SourceEditUnit.dfm 470 bytes SourceEditUnit.pas 2.46 KB Splash.dfm 943.38 KB Splash.pas 803 bytes VariablesUnit.dfm 2.22 KB VariablesUnit.pas 1.17 KB VCDemoPro_D5.cfg 794 bytes VCDemoPro_D5.dof 1.81 KB VCDemoPro_D5.dpr 953 bytes VCDemoPro_D5.res 876 bytes VCDemoPro_D6.cfg 622 bytes VCDemoPro_D6.dof 1.78 KB VCDemoPro_D6.dpr 952 bytes VCDemoPro_D6.dsk 4.53 KB VCDemoPro_D6.res 876 bytes WatchUnit.dfm 1.85 KB WatchUnit.pas 962 bytes WorkSpaceUnit.dfm 84.64 KB WorkSpaceUnit.pas 2.36 KB 读我.txt 320 bytes VIDDemo (3 folders, 0 files, 0 bytes, 780.52 KB in total.) Bin (0 folders, 8 files, 66.01 KB, 66.01 KB in total.) .ini 9.41 KB Debug.ini 9.40 KB DefineWindowLayout.ini 190 bytes Design.ini 9.41 KB DevStudio.ini 9.40 KB Edit HTML.ini 9.40 KB Full Screen.ini 9.41 KB Visual Basic.ini 9.41 KB Bitmap (0 folders, 29 files, 247.91 KB, 247.91 KB in total.) MainMenu_Debug.bmp 13.55 KB MainMenu_Edit.bmp 5.30 KB MainMenu_File.bmp 5.30 KB MainMenu_Format.bmp 6.80 KB MainMenu_Help.bmp 2.30 KB MainMenu_HTML.bmp 822 bytes MainMenu_Project.bmp 822 bytes MainMenu_Tools.bmp 2.30 KB MainMenu_View.bmp 7.55 KB MainMenu_View_DebugWindows.bmp 5.30 KB MainMenu_View_OtherWindows.bmp 5.30 KB MainMenu_Windows.bmp 3.80 KB Splash.jpg 58.93 KB ToolBar_Analyzer.bmp 9.05 KB ToolBar_AnalyzerWindows.bmp 10.55 KB ToolBar_Build.bmp 2.30 KB ToolBar_DatabaseDiagram.bmp 13.55 KB ToolBar_Debug.bmp 18.05 KB ToolBar_Design.bmp 4.55 KB ToolBar_FullScreen.bmp 822 bytes ToolBar_HTML.bmp 9.80 KB ToolBar_LinkView.bmp 11.30 KB ToolBar_Query.bmp 7.55 KB ToolBar_SiteDiagram.bmp 6.05 KB ToolBar_SourceControl.bmp 10.55 KB ToolBar_Standard.bmp 13.55 KB ToolBar_Table.bmp 1.55 KB ToolBar_View.bmp 6.05 KB ToolBar_WindowUI.bmp 4.55 KB Source (0 folders, 44 files, 466.60 KB, 466.60 KB in total.) AutosUnit.dfm 1.32 KB AutosUnit.pas 949 bytes CallStackUnit.dfm 1.65 KB CallStackUnit.pas 897 bytes DefineWindowLayoutUnit.dfm 2.06 KB DefineWindowLayoutUnit.pas 4.91 KB DocumentOutlineUnit.dfm 0.99 KB DocumentOutlineUnit.pas 684 bytes FindAndReplaceUnit.dfm 4.01 KB FindAndReplaceUnit.pas 3.25 KB ImmediateUnit.dfm 1.21 KB ImmediateUnit.pas 495 bytes LocalsUnit.dfm 1.90 KB LocalsUnit.pas 1.06 KB MainFormUnit.dfm 252.51 KB MainFormUnit.pas 24.05 KB OutputUnit.dfm 1.16 KB OutputUnit.pas 687 bytes ProjectExplorerUnit.dfm 1.75 KB ProjectExplorerUnit.pas 627 bytes PropertiesUnit.dfm 2.42 KB PropertiesUnit.pas 1.06 KB RunningDocumentsUnit.dfm 1.23 KB RunningDocumentsUnit.pas 523 bytes ScriptOutlineUnit.dfm 908 bytes ScriptOutlineUnit.pas 681 bytes SplashUnit.dfm 133.30 KB SplashUnit.pas 819 bytes TaskListUnit.dfm 1.28 KB TaskListUnit.pas 891 bytes ThreadsUnit.dfm 1.67 KB ThreadsUnit.pas 1.08 KB ToolboxUnit.dfm 1.50 KB ToolboxUnit.pas 930 bytes VIDDemoPro_D5.cfg 666 bytes VIDDemoPro_D5.dof 2.02 KB VIDDemoPro_D5.dpr 1.53 KB VIDDemoPro_D5.res 876 bytes VIDDemoPro_D6.cfg 666 bytes VIDDemoPro_D6.dof 2.02 KB VIDDemoPro_D6.dpr 1.53 KB VIDDemoPro_D6.res 876 bytes WatchUnit.dfm 1.32 KB WatchUnit.pas 949 bytes Document (0 folders, 9 files, 1.61 MB, 1.61 MB in total.) Delphi中停靠技术的实现.doc 62.50 KB Delphi的停靠规则.doc 61.50 KB DockPresident系列控件的使用说明.doc 455.50 KB Visual C++的停靠规则.doc 140.00 KB Visual InterDev的停靠规则.doc 356.50 KB Visual InterDev的主窗体的停靠风格的算法.doc 104.50 KB Visual Studio.net的停靠规则.doc 399.00 KB 按比例放大缩小的计算公式.doc 38.00 KB 浮动和停靠相互转换时位置存储算法.doc 31.00 KB Help (0 folders, 2 files, 4.60 MB, 4.60 MB in total.) DockPresidentHlp.cnt 1.70 KB DOCKPRESIDENTHLP.HLP 4.60 MB Source (0 folders, 20 files, 861.66 KB, 861.66 KB in total.) cdiroutl.cpp 11.25 KB cdiroutl.h 4.00 KB lbConjoinDockHost.dfm 353 bytes lbDelphiDockStyle.pas 7.30 KB lbDockableForm.dfm 351 bytes lbDockControlReg.pas 742 bytes lbDockFormControl.pas 184.05 KB lbDockHashTable.pas 6.05 KB lbDockInfo.pas 32.18 KB lbDockSupportControl.pas 107.82 KB lbDockTree.pas 136.78 KB lbDPVer.inc 1.20 KB lbGlobal.pas 3.96 KB lbPropertyReg.pas 4.58 KB lbTabDockHost.dfm 345 bytes lbVCDockStyle.pas 71.01 KB lbVIDDockStyle.pas 158.65 KB lbVSNETDockStyle.pas 91.50 KB SupportClass.pas 28.41 KB SupportProc.pas 11.17 KB SupportClass (2 folders, 0 files, 0 bytes, 1.32 MB in total.) Delphi5.0 (0 folders, 31 files, 1.00 MB, 1.00 MB in total.) DcjCppSyn.dcu 43.56 KB DcjCppSyn.hpp 10.19 KB DcjCppSyn.obj 78.13 KB mwCustomEdit.dcu 179.65 KB mwCustomEdit.hpp 32.94 KB mwCustomEdit.obj 261.33 KB mwCustomEdit.res 984 bytes mwEditSearch.dcu 6.04 KB mwEditSearch.hpp 2.82 KB mwEditSearch.obj 12.14 KB mwExport.dcu 12.15 KB mwExport.hpp 4.75 KB mwExport.obj 23.39 KB mwHighlighter.dcu 22.79 KB mwHighlighter.hpp 8.20 KB mwHighlighter.obj 42.99 KB mwKeyCmds.dcu 21.01 KB mwKeyCmds.hpp 10.17 KB mwKeyCmds.obj 31.42 KB mwLocalStr.dcu 10.34 KB mwLocalStr.hpp 21.08 KB mwLocalStr.obj 23.43 KB mwSupportClasses.dcu 16.48 KB mwSupportClasses.hpp 9.85 KB mwSupportClasses.obj 32.33 KB mwSupportProcs.dcu 5.87 KB mwSupportProcs.hpp 2.27 KB mwSupportProcs.obj 11.22 KB uTextDrawer.dcu 24.98 KB uTextDrawer.hpp 13.63 KB uTextDrawer.obj 47.79 KB Delphi6.0 (0 folders, 11 files, 332.32 KB, 332.32 KB in total.) DcjCppSyn.dcu 43.50 KB mwCustomEdit.dcu 170.34 KB mwCustomEdit.res 984 bytes mwEditSearch.dcu 6.02 KB mwExport.dcu 12.17 KB mwHighlighter.dcu 23.63 KB mwKeyCmds.dcu 20.31 KB mwLocalStr.dcu 8.08 KB mwSupportClasses.dcu 16.45 KB mwSupportProcs.dcu 5.87 KB uTextDrawer.dcu 24.99 KB
|
请发表评论