- Christopher Craft
- PowerBuilder
- Sunday, 31 January 2021 06:47 PM UTC
I have a Tab Button item which has a drop down list of opened windows. Each new window that opens will have its own Category (ie. Tab). This category has a Panel with a Small Button drop down. I need this Small Button to share the data from the Tab Button drop down because as other windows are opened this list needs to have the latest entries across all the Categories.
I was hoping I could create an instance variable of RibbonMenu and then assign that variable as the menu to the SmallButton. Then I would just add the entry to the instance variable and all the buttons that use it will get the updated data but that does not work. It seems for every new window that is opened I will need to add the menu item, insert that into the menu, set the menu and then set the item for the menu...and this needs to be done for every small button for every tab that is open.
I also tried to see if I could trigger an event when the user clicks on the button but since I need this button to be a Default Command of false the event will not trigger.
Is there a better way? ShareData?
Thank you
Chris Craft
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.