OnBeginningOfPanel - TabDialog
Sent to the tab-dialog when Beginning_of_panel is sent by a parent
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| hoPanel | Integer | The handle of the panel object |
Syntax
Procedure OnBeginningOfPanel Integer hoPanel
Description
OnBeginningOfPanel is sent to the tab-dialog when Beginning_of_panel is sent by a parent (normally the view). This notification can be used to switch to any desired tab page as part of a beginning_of_panel event. These events are most often triggered by a clear or a save.
By default this method brings the tab page number stored in the default_tab property back to the top. The code in the package looks like this:
Procedure OnBeginningOfPanel integer hoPanel
// note if default tab is -1, this behavior is stopped
if (Button_Count(self) and Default_Tab(self)>=0) ;
send Request_Tab_display
end_procedure
By default, default_tab is 0 so this will cause the first tab page to be displayed.
This method can be augmented to change the behavior as you wish. Note that setting the default_tab property of the tab-dialog to -1 will disable this behavior.
To see this behavior try running the customer view with tab dialogs. When you press clear, the first tab page is restored.