Page 1 of 1

rolloverImageMedia

PostPosted: Mon Feb 22, 2016 4:53 pm
by james.doonan
Hi there,

Is there a way to code the rolloverImageMedia property? I cannot set it through the form designer and seem to have hit a brick wall.

Thanks,

Re: rolloverImageMedia

PostPosted: Mon Feb 22, 2016 6:03 pm
by ROCLASI
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.