RemoveApplicationButton
PowerScript function
Description
Removes the application button from the RibbonBar control.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.RemoveApplicationButton ( ) |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Usage
Only one application button is allowed in a ribbon bar, therefore,
you can directly get (set or remove) the application button without
needing to insert the application button first or identify the application
button by its handle.
Examples
This example sets the Text property of the application button to
“MyApp”, and then removes the application button.
|
1 2 3 4 5 6 |
Integer li_Return RibbonApplicationButtonItem lr_AppButton lr_AppButton.Text = "MyApp" li_Return = rbb_1.SetApplicationButton(lr_AppButton) li_Return = rbb_1.RemoveApplicationButton() |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest