Hi James,
You code example is not a Servoy build-in function but a method in your solution (or of a framework you are using) so I have no idea what that function is doing for you.
But I can answer your question in general.
You can set the rollover media using the following syntax:
- Code: Select all
Gets/Sets the image displayed on a button or label roll over; based on URL.
//dynamically sets a roll over image displayed on a button or label
elements.elem.rolloverImageURL = "http://www.servoy.com/images/test.gif";
//sets an image from your own image library
elements.elem.rolloverImageURL = "media:///arrow.gif";
//loads an image (BLOB) from a field in a selected record into HTML
elements.elem.rolloverImageURL = 'media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2';
(Example taken from the tooltip of this property)I think the second example is what you are looking for.
Hope this helps.