![]() ULTIMATE Page Control Suite™ |
|
Ultimate Page Control Suite™ Win32 | Delphi™ | C++Builder™ |
|
D.05. TADVANCE_MasterToolbarInterface |
|
TComponent TADVANCE_MasterToolbarInterface TADVANCE_MasterToolbarInterfaceWToolEvents |
MasterToolbar™ (full size), immediately below LogoPanel™. |
|
TADVANCE_MasterToolbarInterface exposes a pre-populated MasterToolbar™ which can negotiate all the tables of DBMS (relational database) applications. |
|
DEPLOYING THE MASTERTOOLBAR™ FOR *ANY* RDBMS API |
|
The MasterToolbar™ is designed to readily process any DBMS/RDBMS API (Paradox TTable, MySQL, MS SQL, Oracle, etc.), and to allow you to move or extend your code base to other DBMS APIs by simply modifying the few lines of code which declare and process the API objects:
As a result,
The following examples illustrate how both approaches auto-focus MasterToolbar™ processes on the focused page, and are readily moved or extended to further APIs with minimal coding. Resultant designs are flexible, and leverage the small footprint of the MasterToolbar™ across unlimited tables. |
|
EXAMPLES — PROCESSING FORMAL API OBJECT MEMBERS |
|
DELPHI FORMAL MEMBER EXAMPLE C++ FORMAL MEMBER EXAMPLE |
|
EXAMPLES — PROCESSING INFORMAL API OBJECT MEMBERS |
|
DELPHI EXAMPLE — PAGE.ONFOCUS EVENT HANDLER DELPHI EXAMPLE — MASTERTOOLBAR™ TOOL CLICK HANDLER CALLING 'NEXT' METHOD OF TTABLE C++ EXAMPLE — PAGE->ONFOCUS EVENT HANDLER C++ EXAMPLE — MASTERTOOLBAR™ TOOL CLICK HANDLER CALLING 'NEXT' METHOD OF TTABLE |
|
GUIDELINE FOR CONTROLLING VISIBLE AND ENABLED BUTTONS |
|
|
HANDLING THE INTEGRITY OF AN APPLICATION'S CONNECTION TO ITS SERVER |
Assigning False to MasterToolbar.ConnectedToServer displays the MT_RECONNECT button (right) and automatically disables tools not included in ButtonsEnabledAfterDisconnect. Assigning True to ConnectedToServer hides the MT_RECONNECT button and re-enables intended tools. |
|
The MasterToolbar™ allows you to easily support attempts to re-establish failed network connectivity, and to protect processes from execution while failed connectivity persists. The following code examples show how easy it is to do this.
|
|
DELPHI EXAMPLE — HANDLING A DYSFUNCTIONAL CONNECTION, AND REC0NNECTING TO THE SERVER C++ EXAMPLE — HANDLING A DYSFUNCTIONAL CONNECTION, AND REC0NNECTING TO THE SERVER |
|
EVENTS |
|
Former MasterToolbar™ events have been moved to the root module. |
|
PROPERTIES |
MasterToolbar™ properties in the Object Inspector™ (C++Builder™). |
|
ButtonsEnabledAfterDisconnect : TADVANCE_MasterToolbar_Set read FButtonsEnabledAfterDisconnect write SetButtonsEnabledAfterDisconnect default [MT_RESTOREToOriginal, MT_UNDO, MT_REDO, MT_TentativeACCEPT, MT_ConfirmCANCEL, MT_HELP];
TADVANCE_MasterToolbar_EnumeratedType = (MT_ConfirmREFRESH, MT_FINDSQL, MT_FIND, MT_FIRST, MT_PRIOR, MT_NEXT, MT_LAST, MT_ConfirmDELETE, MT_ADD, MT_CLONE, MT_RESTOREToOriginal, MT_UNDO, MT_REDO, MT_TentativeACCEPT, MT_ConfirmCANCEL, MT_OKPOST, MT_HELP, MT_RECONNECT);
TADVANCE_MasterToolbar_Set = set of TADVANCE_MasterToolbar_EnumeratedType;
Prescribes MT toolbuttons which will remain enabled when ConnectedToServer is False.
property ButtonsVisible : TADVANCE_MasterToolbar_Set read FButtonsVisible write SetButtonsVisible default [MT_ConfirmREFRESH..MT_HELP];
Prescribes visible MT buttons. MT_RECONNECT is ignored unless ConnectedToServer is False.
property ConnectedToServer : Boolean read FConnectedToServer write SetConnectedToServer default True;
See Handling the Integrity of an Application's Connection to its Server, above.
property Enabled : Boolean read FEnabled write SetEnabled default True;
Disables the MasterToolbar™ region. Does not call the alternate drawing methods invoked when buttons are disabled.
property ToolButton_ProportionalSpacerWidthPercent: TADVANCE_ToolButton_ProportionalSpacerWidthPercent read FToolButton_ProportionalSpacerWidthPercent write SetToolButton_ProportionalSpacerWidthPercent default pswp100;
TADVANCE_ToolButton_ProportionalSpacerWidthPercent = (pswp100, pswp050, pswp025);
Button spacer width as a percentage of button width.
property Tools_HeightAndWidth : Integer read FTools_HeightAndWidth write SetTools_HeightAndWidth; // [Minimum = 24, Maximum = 50]
MT toolbutton height and width.
property Visible : Boolean read FVisible write SetVisible default True;
MasterToolbar.Visible.
property Wrap : Boolean read FWrap write SetWrap default True;
MasterToolbar™ events have been moved to the root module.
property Wrap_OffAtWidthLessThan : Integer read FWrap_OffAtWidthLessThan write SetWrap_OffAtWidthLessThan default 10; // [Minimum = 25, Maximum = 25000]
Disables wrapping when client width < than Wrap_OffAtWidthLessThan. |
|
NEXT •
|
|
|