1. Christopher Craft
  2. PowerBuilder
  3. Monday, 15 March 2021 19:33 PM UTC

I am looking to enhance the look of our application by adding a menu option on the left side of my frame much like Microsoft Teams has.  I would like the ability to have the image select and unselect either by highlighting it or having the image change colors.  What control would be my best option? Picture List, List view, Datawindow, ...? They all would work but I am looking for the pro's and con's of using one over the other.

Thanks,

Chris Craft

 

Attachments (1)
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 15 March 2021 23:37 PM UTC
  2. PowerBuilder
  3. # 1

Yes, definitely go with a datawindow object and pictures on it.

I've once thought to be "smart" and made a custom userobject, showing several picture of that object type on top of another userobject.... It worked great but when resizing my window and all the objects in it, the redraw was horrible!

Setredraw to false and true didn't make much of a difference. When you use a dw, things become a lot smoother (a part from all the other advantages mentioned by others already).

regards.

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 15 March 2021 21:06 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

I use a datawindow for my menu.  it gives you a lot more control.  i show both (very short) text and a picture.  I also use the dw tooltip to provide a description.

I show it being selected by adding a partial rectangle around the selected menu item, plus i bold the text.  I could change the picture to  'hot' version, but just never implemented that.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 15 March 2021 20:59 PM UTC
  2. PowerBuilder
  3. # 3

Chris;

   FWIW:  I have implemented this before using a Visual User Object that contains a DW object for the icon display

Food for thought.


Regards ... Chris

Comment
  1. Miguel Leeuwe
  2. Monday, 15 March 2021 23:39 PM UTC
LOL, still hoping for that yacht Chris?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 16 March 2021 01:45 AM UTC
Nope ... but, look at the guys name who started this thread. ;-)
  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.