1. Stefan Malkwitz
  2. PowerBuilder
  3. Wednesday, 12 August 2020 08:16 AM UTC

 

Hello,

we have migrated your mdi application to use the Ribbonbar. All works fine but we are missing one thing.
In the old menu there was automaticly under Window/Fenster a list of all opened sheets/windows. Is there something similar in the ribbon bar?


the functionality we need:
- shows a list of all open windows
- the active one (the one in front) is marked (Nr 3 in the Picture)
- if you click on one, the corresponding window is brought to the front
- if you close a window the on is removed from the list


I found out that the OpenSheet function does all the magic in the background in the old menu. We have not coded any special code for it.
So is there a "simple" solution to get Opensheet works the same way in the Ribbonbar without rewriting a lot of sourcecode?

I Know there is something called "recend windows" but it dosnt lock like its doing the same.


Kind regards Stefan

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 12 August 2020 11:55 AM UTC
  2. PowerBuilder
  3. # 1

Hi Stephan;

  Only the menu object supports this automatic feature. For the Ribbon Bar, you would have to custom program this behaviour.

   Conversely, if you leave the menu in place and remove it's toolbar properties...adding user object(s) to mimic the Ribbon Bar would allow the menu to function as before. Then the UO would have the Look & Feel of the RB and would be fully inheritable.  ;-)

Regards... Chris

Comment
There are no comments made yet.
Brad Wery Accepted Answer Pending Moderation
  1. Wednesday, 12 August 2020 14:40 PM UTC
  2. PowerBuilder
  3. # 2

Having a list of open sheets directly in the ribbon doesn't seem to work with this type of UI. You can code an alternative quite easily though. Add a button to your ribbon to access the list of open sheets. When clicked, loop through all your open sheets and dynamically generate a pop menu. Then just display the pop menu where your ribbon button is. I'm not terribly familiar with this Ribbon but maybe you can dynamically add child items to the ribbon button itself?

Comment
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.