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

ItemType – PB Docs 2022 – PowerBuilder Library

ItemType – PB Docs 2022

ItemType

property for PowerScript controls

Applies to

RibbonMenuItem controls

Description

Specifies the type of the menu item (Default is 0). Values
are:

  • Normal(0) — Can be inserted as the master menu item in
    RibbonApplicationMenu or as the menu item in RibbonMenu.

  • Separator(1) — Can be inserted as a separator in the master
    menu in RibbonApplicationMenu or in the menu in RibbonMenu. A
    separator is a horizontal line used to visually distinguish between
    groups of menu items.

  • Recent(2) — Can be inserted as the recent menu item in
    RibbonApplicationMenu.

Inserting an item with the wrong type would be invalid and return
-1, for example, inserting a recent item to the master menu, or inserting
a master item to the recent menu.

The ItemType property (called Type attribute in XML/JSON) should not
be changed at runtime, for example, you cannot change an item from Normal
to Recent (or from Recent to Normal), the operation would fail (return
-1); and you should not change an item from Normal to Separator (or from
Separator to Normal), although the operation would return 1, the item and
the ItemType value are still unchanged.

Examples


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