Jeannot Muller

If you can't explain it simply, you don't understand it well enough.
en de

How To Put Images Into WebListBox Cell Xojo Web 2.0 via WebListBoxImageRenderer

2020-09-07 1 min read code Tutorials xojo jmu

Adding in embeded pictures into WebCell in Xojo Web 2.0 using ‘WebListBoxImageRenderer’.

Example Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Var counter as integer = 1
Var pic as WebPicture = gray // gray is a picture created within xojo

For each result as string in results
  myListBox.AddRow( "" )
  myListBox.CellValueAt( myListBox.LastAddedRowIndex, 0 ) = format( counter, "00000" )
  myListBox.CellValueAt( myListBox.LastAddedRowIndex, 1 ) = result
  var picCell as new WebListBoxImageRenderer
  picCell.URL = pic.URL // link to the embedded pic, alternatively use a url to any picture on the web
  myListBox.CellValueAt( myListBox.LastAddedRowIndex, 2 ) = picCell
  counter = counter + 1
next