Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Events for the parts of the Tab control – PB Docs 2022 – PowerBuilder Library

Events for the parts of the Tab control – PB Docs 2022

Events
for the parts of the Tab control

With so many overlapping pieces in a Tab control, you need to know
where to code scripts for events.

To respond to actions in the

Write a script for events belonging
to

Tab area of the Tab control, including clicks or
drag actions on tabs

The Tab control

Tab page (but not the tab)

The tab page (for embedded tab pages) or the user
object (for independent tab pages)

Control on a tab page

That control

For example, if the user drags to a tab and you want to do
something to the tab page associated with the tab, you need to code the
DragDrop event for the Tab control, not the tab page.

Examples

This code in the DragDrop event of the tab_1 control selects the
tab page when the user drops something onto its tab. The index of the
tab that is the drop target is an argument for the DragDrop
event:

The following code in the DragDrop event for the Tab control lets
the user drag DataWindow information to a tab and then inserts the
dragged information in a list on the tab page associated with the
tab.

A user object of type tabpage_listbox that contains a ListBox
control, lb_list, has been defined in the User Object painter. The Tab
control contains several independent tab pages of type
tabpage_listbox.

You can use the index argument for the DragDrop event to get a tab
page reference from the Tab control’s Control property array. The user
object reference lets the script access the controls on the tab
page.

The Parent pronoun in this script for the Tab control refers to
the window:

If the tab page has not been created

If the CreateOnDemand property for the Tab control is TRUE, the
Constructor events for a tab page and its controls are not triggered
until the tab page is selected. In the previous example, making the
tab page the selected tab page triggers the Constructor events. You
could also use the CreatePage function to trigger them:


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