1. Steen Jakobsen
  2. PowerBuilder
  3. Thursday, 24 November 2022 06:25 AM UTC

Hi,

 

Is there a way to place a Close button on a Ribbonbar-category-Tab?

We use the SUPER nice RibbonBar (since beta) extensively and we are opening new category-tabs all the time.

 

Thanks Steen

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 25 November 2022 19:33 PM UTC
  2. PowerBuilder
  3. # 1

Hi Steen;

  No, that is not possible in the current RB implementation. One workaround that I can think of, it to have various RB XMLfiles with different tab configurations. Then you could swap out the current RB for the one that has the full tabs minus one. However, that would be  PIA IMHO requiring too many RB definitions with all the possible Tab combinations.

  The other approach wold be to write your own PB JSON builder to dynamically build "custom" RB's "on the fly" to match your desired TB Tab combination(s). Again, not a trivial matter.

  Even if the PB runtime provided an "X" close feature, the programming would have to account for missing Tabs / Controls when they are closed (destroyed). So that feature would also introduce further headaches IMHO.

  All-in-all, I think that the RB Tab close feature would be better handled as a Tab visible / invisible feature when the "X" close was triggered. Further analysis would need to be done first IMHO for supporting that aspect.

Regards ... Chris

Comment
  1. Steen Jakobsen
  2. Monday, 28 November 2022 12:45 PM UTC
pls. see my reply above :-)
  1. Helpful
There are no comments made yet.
Steen Jakobsen Accepted Answer Pending Moderation
  1. Monday, 28 November 2022 12:44 PM UTC
  2. PowerBuilder
  3. # 2

Thanks Chris,

The bottom line is that there is no "Close button" option on any RB tab (static or dynamically created). Just like it is not there and will never be there on the standard tab control. At least this is true for the foreseeable future (according to Appeon).

I'm EXTREMELY HAPPY with the RibbonBar - it woks GREAT. But there is room for improvement also.

You can see some of the UI we have created with the RB control here on YouTube. I think sweet :-)

 

//Steen

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.