Navigation: Ultimate Suite for PowerBuilder Help > Single Page Application Windows > Tabbed Caption > Functions >

of_canclose

Send comments on this topic.

 

Description:

Specifies if a tab can be closed by the user.

Syntax:

of_canclose (long al_index)
of_canclose (long al_index, boolean ab_canclose)
of_canclose (userobject auo_object)
of_canclose (userobject auo_object, boolean ab_canclose)

Argument

Description

al_index

The index of the tab.

auo_object

A reference to the user object control

ab_canclose

Pass TRUE to allow users to close the tab, FALSE to prevent users from closing the tab.

Return Value:

Returns 1 if you're setting the "can close" value; passing in a value for the ab_canclose parameter. Returns TRUE if the user can close the tab, or FALSE if the they can not

Usage:

This overloaded function has two purposes. If you call it without the second parameter, it will return a TRUE or FALSE value. If you pass in the second parameter, it will set the "Can Close" state of the tab.


Copyright © 2021 Werysoft Inc.