1. Christopher Craft
  2. PowerBuilder
  3. Tuesday, 17 December 2019 18:00 PM UTC

I am developing an application where I need to show the user all the images associated to a particular inspection. I want these images to be grouped and displayed from left to right just like File Explorer does. 

I would have thought PB would have this functionality but I am coming up empty. Has anyone ever developed this or am I missing something in PB (ie. Picture Control, etc)

Thanks,

Chris Craft

Dennis Little Accepted Answer Pending Moderation
  1. Tuesday, 17 December 2019 20:56 PM UTC
  2. PowerBuilder
  3. # 1

We do something like that.  The picture_name is the file path that is stored in the database and we use a computed column and use the bitmap function.  Seems to work pretty well for what we need.

 bitmap(picture_name) 

 

Attachments (1)
Comment
  1. Christopher Craft
  2. Wednesday, 18 December 2019 22:22 PM UTC
Thanks Dennis - I was hoping to get the pictures going from left to right and have them auto move when expanded but it seems this is not doable. I will look at the Picture Control, ListView and DW to see which one is best suited for the task at hand.



Chris
  1. Helpful
  1. Dennis Little
  2. Thursday, 19 December 2019 14:17 PM UTC
Chris,

I wonder if setting it up with newspaper columns would take care of that.

Dennis
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 19 December 2019 18:58 PM UTC
Hi Dennis;

A good thought but, I do not think that that format will support what Chris is looking for. T he problem is to get a variable and continuous horizontal list of pictures. PB's controls are great at vertical lists for the most part.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Christopher Craft Accepted Answer Pending Moderation
  1. Tuesday, 17 December 2019 19:31 PM UTC
  2. PowerBuilder
  3. # 2

Can you control the images showing in a left to right order for a ListView or DW Object? I need it to display X number of images in a single row plus have some sort of group text above them. If I could use a DW Object that would be great but I do not see any options for this.

Chris

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 18 December 2019 18:29 PM UTC
Hi Chris;

The User can align the images horizontally within a List View if you allow drag & drop - but, to control that aspect via PowerScript is very limited. My inclination for your implementation might be to look at either a CrossTab DWO or a group of User objects dynamically created via the OpenUserObject() command.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 17 December 2019 19:13 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris;

   Have you tried a LISTView control or DW object for this?

Regards ... Chris

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.