[Openroad-users] Displaying Image in optionfield
Kim Ginnerup
kgi at bording.dk
Fri Nov 9 23:24:27 EST 2007
I think the only way to do this if you want more then two images, (in case of two you can use a togglefield).
I think you need to have an imagefield coloumn and the placen the image on the row accroding to your one character code.
If you get it to work I will be very interested in hearing about have much the window will flash when you set/change the image.
Kim
________________________________
Fra: openroad-users-bounces at peerlessit.com [openroad-users-bounces at peerlessit.com] På vegne af Bloomfield, Martin (PSD) [Martin.Bloomfield at psd.defra.gsi.gov.uk]
Sendt: 8. november 2007 11:40
Til: Openroad-Users
Emne: [Openroad-users] Displaying Image in optionfield
In my latest project I have a class which contains a single character attribute to indicate whether a phrase has been Accepted, Rejected or is Pending Acceptance. Rather than displaying this as text in a tablefield, I would like to display a bitmap (Tick, Cross, Question mark). If I was displaying the text, I would use an optionfield to decode the single character into the required text.
I though it was possible to do the same thing with a bitmap. However, I cannot seem to find how to load and display a bitmap in an optionfield. Is this possible, or am I going to have to add code to copy the image from a (hidden) palette of images into an imagetrim in the tablefield based on the character code?
Thanks,
Martin Bloomfield.
_________________________________________________
Application Developer & Database Administrator
IT Branch,
Pesticides Safety Directorate
YORK
Email: martin.bloomfield at psd.defra.gsi.gov.uk<mailto:martin.bloomfield at psd.defra.gsi.gov.uk>
Website: www.pesticides.gov.uk<http://www.pesticides.gov.uk>
P Save a tree... please don't print this e-mail unless you really need to
Department for Environment, Food and Rural Affairs (Defra)
This email and any attachments is intended for the named recipient only.
If you have received it in error you have no authority to use, disclose,
store or copy any of its contents and you should destroy it and inform
the sender.
Whilst this email and associated attachments will have been checked
for known viruses whilst within Defra systems we can accept no
responsibility once it has left our systems.
Communications on Defra's computer systems may be monitored and/or
recorded to secure the effective operation of the system and for other
lawful purposes.
More information about the Openroad-users
mailing list