[Openroad-users] Displaying Image in optionfield
Antill, Jim
jantill at revenue.ie
Fri Nov 9 23:58:14 EST 2007
Martin,
Am I right in presuming that the optionfield is used to decode the values and
isn't shown to the user in the tablefield?
If so, instead of holding the code/decode values in an optionfield could you
use a ListViewField? The ListViewField uses a choicelist that is composed of
ChoiceBitmap objects, each of which has an enumvalue, enumtext and an
enumbitmap.
Hope that helps.
Regards,
Jim
-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com]On Behalf Of Bloomfield, Martin
(PSD)
Sent: 08 November 2007 10:41
To: Openroad-Users
Subject: [Openroad-users] Displaying Image in optionfield
*************************************
This e-mail has been received by the Revenue Internet e-mail service. (IP)
*************************************
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: <mailto:martin.bloomfield at psd.defra.gsi.gov.uk>
martin.bloomfield at psd.defra.gsi.gov.uk
Website: <http://www.pesticides.gov.uk> 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.
************************
This message has been delivered to the Internet by the Revenue Internet e-mail service (OP)
*************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20071109/250b995c/attachment.html
More information about the Openroad-users
mailing list