1. Stefano Calciati
  2. PowerBuilder
  3. Wednesday, 17 March 2021 08:42 AM UTC

I need read all the control of a Ribbonbar at runtime.

I need know all the small, large, tab button in a ribbonbar and read the relative properties.

I have the object ribbonbar, but i don't know the structure of this ribbonbar in memory, how can read all this information?

René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 17 March 2021 09:02 AM UTC
  2. PowerBuilder
  3. # 1

Hi Stefano,

The ribbonBar control have are a lot of functions to do that.

If you start you have to know that the Application Button, Tab Button and Categories have different functions.

 

To handle Application button start with GetApplicationButton and call GetMenu for the RibbonApplicationButtonItem. For the Menu you can get the Master items and the Recent Items.

 

To handle Tab button start with GetTabButtonCount and go to Tab Buttons with GetTabButtonByIndex.

 

Same with Categories: GetCategoriyCount, GetCategoryByIndex.

Inside a Category you can go down through Panels and Groups with GetChildItemCount and GetChildItemByIndex

 

HTH you to start,

René

 

Comment
  1. Stefano Calciati
  2. Wednesday, 17 March 2021 09:04 AM UTC
thanks
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.