1. Pau Haro
  2. PowerBuilder
  3. Thursday, 30 July 2020 14:58 PM UTC

Hello guys,

 

Im doing a look like action bar menu to control my windows, but I need to set border on a "menu item", this border is a (StyleRaised!) border and it does this to the image.

 

As you guys can see the image is normal size but when I activate the border makes it bigger automaticaly. I tried to put a resize after and before the border activation, but does nothing. You guys have any clue about what is happening?

 

Btw the "menu items" are picture objects, I let you guys the small piece of code that activates the border property.

 

 

Thanks & Regards.

Accepted Answer
Pau Haro Accepted Answer Pending Moderation
  1. Friday, 31 July 2020 08:44 AM UTC
  2. PowerBuilder
  3. # Permalink

Hey guys,

That's not really a bugg, it seem like PB is setting the (OriginalSize) property to true when I set the (Border) property to true. So I fixed it by setting the property (OriginalSize) to false before of the border activation.

Regards.

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 31 July 2020 14:27 PM UTC
Thanks for sharing the solution!
  1. Helpful
  1. Miguel Leeuwe
  2. Saturday, 1 August 2020 15:24 PM UTC
Nice one!

FYI: I've learned that from pb 2017 and later, when you set the Originalsize to true, your picture initially looks sharp in the IDE, but when you run the application, it's no longer sharp.

What I do is: set the originalsize to true in the IDE, so that the picture adapts its size and looks sharp. Immediately after that, I then uncheck the box of originalsize and save the object. That way I get a much clearer picture when running the application.

regards.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 30 July 2020 15:25 PM UTC
  2. PowerBuilder
  3. # 1

I agree. Did you report it as a bug here?

https://www.appeon.com/standardsupport/newbug

 

Comment
  1. Pau Haro
  2. Thursday, 30 July 2020 15:33 PM UTC
Yes, I just posted it.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 30 July 2020 15:09 PM UTC
  2. PowerBuilder
  3. # 2

Maybe it's a better idea to change the picture to another similar one with the border you want. There seems to be some problems with the borders and windows 10 doesn't help much either in showing 3d raised or lowered border.

Report it as a bug though I would say.

regards.

Comment
  1. Pau Haro
  2. Thursday, 30 July 2020 15:23 PM UTC
Hi Miguel,



Thanks for your reply, but I need to find a better way to do it or just do this temporaly and wait for them to fix it.



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