1. Tomáš Podzimek
  2. PowerBuilder
  3. Wednesday, 8 February 2023 13:07 PM UTC

Hi,

Some datawindows in PB 22 MR 1892 lose scrollbars when using themes.
The same code when run in PB 21 1509 will display the scrollbars correctly.
Likewise, it will display correctly in PB 22 1892 when themes are turned off.
Unfortunately, I was not able to reproduce this behavior in a small sample application.

I am able to put the scrollbars back using
<dw_window>.vscrollbar = true
<dw_window>.hscrollbar = true
but after resizing the app window, the scrollbars are gone again.

I can't say what these DWs have in common. To me, they're all the same as the ones where the scrollbars work as they should.

Any idea? Thanks in advance.

Regards,

Tomáš

Attachments (2)
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 8 February 2023 14:48 PM UTC
  2. PowerBuilder
  3. # 1

I was just referring to this part of the image (in yellow), that shows up in the one that doesn't show the scrollbars.

The one with the scrollbars, doesn't seem to have that .

Yes, weird if they are the same datawindows.

regards

 

Comment
  1. Miguel Leeuwe
  2. Thursday, 9 February 2023 16:40 PM UTC
true
  1. Helpful
  1. Tomáš Podzimek
  2. Thursday, 9 February 2023 21:17 PM UTC
We could provide a virtual machine with a PB source code. That mght be helpful.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 9 February 2023 22:17 PM UTC
Hi Tomáš;

I would then suggest opening a Support Ticket for this issue if you would like the Appeon team to dial into your VM and investigate this problem further, That way you can also protect your App's source code as Appeon can sign a "None Disclosure" agreement (if you require). Food for thought.

Regards ... Chris
  1. Helpful 1
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 8 February 2023 13:56 PM UTC
  2. PowerBuilder
  3. # 2

The one that doesn't show the scrollbar seems to have an extra column at the most right which is not showing any values?

Could there be a difference there?

regards.

Comment
  1. Tomáš Podzimek
  2. Wednesday, 8 February 2023 14:19 PM UTC
No, the DWs are the same, including data. There's only an invisible header of a column which is shown in a different view style.

And even if it would have some impact then it is only the horizontal scrollbar who should be related to it, not both of them, right?



Regards
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 8 February 2023 13:15 PM UTC
  2. PowerBuilder
  3. # 3

Hi Tomáš;

  My guess is that the scroll bars are there but your resizing code is off. Did you read the changes in Window sizes in PB 2022 vs 2021?

https://docs.appeon.com/pb/upgrading_pb_apps/ch04s01s04.html

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 8 February 2023 18:46 PM UTC
Hi Tomáš;



Are you changing the Themes "on the fly" or only setting the Theme use at your App's start-up (App Objects OPEN event)?



PS: I just ran through dozens of Windows in my STD Framework's demo App for PB 2022 build 1892 and did not encounter any disappearing scrollbar issues. FYI: https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry



Regards ... Chris
  1. Helpful 1
  1. Tomáš Podzimek
  2. Thursday, 9 February 2023 08:05 AM UTC
Hi Chris,

this one is interesting. When Theme is set in the app open event, the scrollbars are gone.

When set "on the fly", the scrollbars remain in position. After closing and reopening the form, they're gone.



I guess I'll have to come up with some workaround.



Regards,

Tomáš
  1. Helpful
  1. Tomáš Podzimek
  2. Thursday, 9 February 2023 08:53 AM UTC
One more observation - when the theme is applied, hscrollbar and vscrollbar have false value when the constructor is called. In the DW painter, these values are set to true. The theme seems to change these properties.
  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.