Dockable Windows
Developed by Brad Wery [TeamPB]
bradwery@gmail.com
-----------------------------------

This is my attempt at duplicating the look and feel of dockable windows. Hopefully you will find it usefull.



Inheriting New Dockable Windows:
-----------------------------------
 - Inherit a new window from w_dockancestor
 - Place your control on the window.
 - Place only one control on the window. The window will take care of resizing and positioning.
 - If more than one control needs to be placed on the window then put them in a user object then add the user object to the new window.



How To Use:
-----------------------------------

//Declare Global Variable
//Important: It must be declared this way

n_cst_dockwindowmanager gnv_dockmanager

//Application Open Event
//Before you open your frame

gnv_dockmanager = CREATE n_cst_dockwindowmanager

//Application Close Event

DESTROY gnv_dockmanager

//Frame Open Event
//Reference to Client Area
gnv_dockmanager.of_SetClientArea(THIS.MDI_1)

//Open Dockable Windows
gnv_dockmanager.of_OpenWindow('w_dockpblselect', gnv_dockmanager.LEFT)

//w_dockpblselect is inherited from w_dockancestor
//All your dockwindows should be inhereted from this window.

//Frame Resize Event
gnv_dockmanager.of_ResizeDockWindows(0, gnv_toolbar.of_GetToolbarHeight(), THIS.WorkSpaceWidth(), THIS.WorkSpaceHeight() - MDI_1.MicroHelpHeight)

//Height of 1 toolbar is approx. 100
//Use this method if you are using standard pb toolbars
//Add 100 to the height for each toolbar
//Add 100 to the y for each toolbar
//gnv_dockmanager.of_ResizeDockWindows(0, 100, THIS.WorkSpaceWidth(), THIS.WorkSpaceHeight() - MDI_1.MicroHelpHeight + 100)



PB Editor Control:
-----------------------------------

In order to use the PB Editor Control you must download the Scintilla DLL. You can find it here:

http://scintilla.sourceforge.net/SciTEDownload.html

Click on the "full download" link.

Once you have downloaded the zip file open it and extract SciLexer.dll to your Windows System32 folder.

u_pbeditor contains many functions that make it a usefull editor control. Take a look at the function list to see how you can customize it to your needs. Also, for more information view the pbeditor.hlp help file.

