@Michel B Brock, this is great. Any chance you could share the way you do that ? Not long ago I tried to insert pictures in a WebListBox. The pictures displayed fine, but the control froze.
Currently I'm doing it like this:
dim cc as new MyContainerToEmbed cc.EmbedWithin(self, 0, 0, 20, 20) ListBox1.cellAppendControl(cc, 0, 0) currentControl = cc
The cellAppendControl extension method looks like this:
The JqeurySelector extension method looks like this:
Function JqeurySelector(extends wc as webControl) As String return "$('#"+wc.ControlID+"')" End Function
Keep in mind you will need to include JQuery into your project (add this to the app header "<script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script>") and that if you a dynamically adding and removing content from you listbox after the initial pageload, then you will need to keep references to the ContainerControls you embed in the listbox so you can clear them out of memory when removing a row. This could also be done automatically with a subclass of the WebListBox. Keep in mind this is a hack on the existing Xojo framework and can not be guaranteed to work in all future releases. I also have a jquery library that makes Jquery a lot easier but it's not yet public. But you can essentially do stuff like: