1. Bernhard Giesriegl
  2. PowerBuilder
  3. Thursday, 2 December 2021 08:44 AM UTC

Hi together,

when I create a lot of tabpages on a TabControl programmatically with OpenTab, the left/right arrow buttons to scroll through all the tabpages are not displayed.

Trying with Multiline TRUE/FALSE didn't work.

 

Anybody an idea how can I display the arrow buttons?

 

Thanks in advance,

Bernhard

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 December 2021 14:50 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Bernhard;

  Thought ... try resizing the TC a bit. For example, after the OpenTab command: 

  • TC.Width ++
  • Yield()
  • TC.Width --

See if that forces the arrows on.

Regards ... Chris

Comment
  1. Olan Knight
  2. Thursday, 2 December 2021 23:52 PM UTC
Yup, resizing an object forces a redraw of every item on that base object.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 3 December 2021 00:07 AM UTC
Awesome... At least you have a workaround.
  1. Helpful
There are no comments made yet.
Bernhard Giesriegl Accepted Answer Pending Moderation
  1. Friday, 3 December 2021 08:41 AM UTC
  2. PowerBuilder
  3. # 1

Hi Chris,

thank you very much for your suggestion, this works for me, because it showed me a mistake in calculating the tab width while resizing.

The resized tab was to wide so the arrows were hidden behind the parent window. After adjusting now it works fine!

Regards,

Bernhard

Comment
  1. Chris Pollach @Appeon
  2. Friday, 3 December 2021 15:39 PM UTC
Awesome .. thanks for the update!
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.