Syntax 1: For Tab controls – PB Docs 2017

Syntax
1: For Tab controls

Description

Occurs when another tab is about to be selected.

Event ID

Event ID

Objects

pbm_tcnselchanging

Tab

Arguments

Argument

Description

oldindex

Integer by value (the index of the currently
selected tab)

newindex

Integer by value (the index of the tab that is
about to be selected)

Return Values

Long.

Return code choices (specify in a RETURN statement):

0 — Allow the selection to change

1 — Prevent the selection from changing

Usage

Use the SelectionChanging event to prevent the selection from
changing or to do processing for the newly selected tab page before it
becomes visible. If CreateOnDemand is true and this is the first time
the tab page is selected, the controls on the page do not exist yet, and
you cannot refer to them in the event script.

Examples

When the user selects a tab, this code sizes the DataWindow
control on the tab page to match the size of another DataWindow control.
The resizing happens before the tab page becomes visible. This example
is from tab_uo in the w_phone_dir window in the PowerBuilder
Examples:

See also

Clicked

SelectionChanged


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x