1. Ashutosh Varshney
  2. PowerBuilder
  3. Monday, 29 August 2022 21:01 PM UTC

Hello folks,

I have a few picture buttons in a window. I have set them to Flat Style but they show a black border around them. How do I get rid of those borders?

 

Flat Style:

 

Thank You

- AV.

 

 

 

 

Accepted Answer
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 30 August 2022 13:15 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi, Ashutosh -

Consider using a Picture control instead of a PictureButton control. With a Picture control, you can hide or show the border, and this control also contains a Clicked event, just like a Button or PictureButton control.

Below is a partial screen shot of a window that uses a Picture control to show/hide a messages area on the right side of a window. As you can see, there is no border around the control.

Best regards, John

Comment
  1. Ashutosh Varshney
  2. Tuesday, 30 August 2022 18:42 PM UTC
Thanks John. I did experiment with picture control. I chose picture button so that the edge of the button would display only on mouse hover. Guess that is not how it works.

  1. Helpful
  1. Benjamin Gaesslein
  2. Wednesday, 31 August 2022 07:10 AM UTC
You could capture mouse movements within the picture control and show or hide the border accordingly but it's rather involved.
  1. Helpful
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 30 August 2022 05:43 AM UTC
  2. PowerBuilder
  3. # 1

I don't know a way to do it in painter or script.

But you could try to use themes. There you can change the color of the borders. But I think you can't hide them.

Comment
  1. Ashutosh Varshney
  2. Tuesday, 30 August 2022 18:42 PM UTC
Thanks Rene.
  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.