1. Géza Bartha
  2. PowerBuilder
  3. Monday, 2 September 2019 07:45 AM UTC

Hi!

How to add extra icon to a picture button or command button, without any picture manipulation.

for example

https://www.w3schools.com/howto/howto_css_icon_buttons.asp

Icon buttons with text

 

Regards, Géza

 

 

 

 

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Monday, 2 September 2019 12:35 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Géza,

it doesn't come built-in, but you can quickly create your own custom visual object.

For example, place a picture to the left of a textbutton, maybe framed into a border, no limit to what you can do.

Then, have instance variables to set picture name and label, and implement the constructor to use them.

From now on, use your VO instead of picture buttons.

Code once, use multiple times.

Best,

.m

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 2 September 2019 13:37 PM UTC
  2. PowerBuilder
  3. # 1

Hi Geza;

  Menu objects & Tab controls can do this natively. Other than that, I would recommend looking at Marco's suggestion as a User Object implementation.

Regards ... Chris

Comment
There are no comments made yet.
Géza Bartha Accepted Answer Pending Moderation
  1. Monday, 2 September 2019 12:49 PM UTC
  2. PowerBuilder
  3. # 2

"maybe framed into a border"

I cannot speak or write very good in English. 

Could you describe it in details.

What object is the border?

 

 

Comment
  1. Marco Meoni
  2. Tuesday, 3 September 2019 06:34 AM UTC
Hi,

by border I mean the black rectangle around the static text object, it is just an example.

You can make it a little nicer than default rectangular border by using a RoundRectangle control.

But, as I said, it is just a hint.

Best,

.m
  1. Helpful
There are no comments made yet.
Tobias Roth Accepted Answer Pending Moderation
  1. Monday, 2 September 2019 11:39 AM UTC
  2. PowerBuilder
  3. # 3

Hi Géza,

as i know there is no native control to display a picture next to the text.
You can use the free edition of pb ultimate suite (command button):

https://www.pbultimatesuite.com/EN/lp-pbus-free-edition.html?single#

Maybe there is something like this planned as new control, Armeen could answer that question, when he is reading this.

Regards,

Tobi

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.