V.3.1
ctlUniMDITabs

An Unicode component that permits you to organize your MDI child windows using a Top or Bottom tabulator like the Microsoft Visual Studio environment.

>>Common properties

Some Properties/Methods:
Attach / Detach Starts or stops the control activity
AllowScroll Permits the tabulator to scroll horizontally
AutoClose If enabled, the control automatically closes the active MDI child window when the "X" button is pressed
CanDragTabs Enables the user to move the tabs
Font Represents the font used
SelectedFont Represent the font used for the active tab
ShowTabs Temporary enables/disables the control
TabAlignTop Should the Tabs be displayed on the top?
Refresh Permits you to refresh the MDI Tabulator; useful when for example when a form caption is changed at run-time
Events:
CloseWindow raised when someone clicks the "X" button;
if AutoClose is False you have to close the MDI Child window manually sending for example a WM_CLOSE message with the PostMessage API function or you can cicle through active forms and close the one which contains the passed window handle
DrawingCaptionText raised before writing the form caption on the Tab; by managing this event and changing the passed "sWindowText" string you can return Unicode captions for your forms (see the sample)
TabBarClick raised when the user clicks the Tabulator bar
TabClick raised when the user clicks over a Tab
WindowChanged raised when the active MDI child changes
How to use this control:
Simply draw it on a MDI container form and in the MDIForm_Load event attach it to the form using the "Attach" method.
http://www.hexagora.com
Thu, 20 Oct 2011 07:20:48 UT
Copyright 2003-11 by Lorenzi Davide