[Openroad-users] Displaying Image in optionfield
Bloomfield, Martin (PSD)
Martin.Bloomfield at psd.defra.gsi.gov.uk
Sat Nov 10 01:32:47 EST 2007
Thanks for all your replies. It confirmed my suspicion that you can add
bitmaps to choicelists, but cannot view them. I have reverted to
copying the bitmaps from a hidden palette field into a bitmapobject
attribute of my userclass. I did, however, discover that the tablefield
attribute containing the bitmap also has to exist in the userclass
otherwise it does not get displayed and openROAD crashes (there are no
compilation errors however).
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
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Sean Thrower
Sent: Friday, November 09, 2007 1:55 PM
To: International OpenROAD Users
Subject: Re: [Openroad-users] Displaying Image in optionfield
Martin,
All choice lists have enumbitmap (as part of the ChoiceDetail class), at
least since version 4.0, but only palettefields display them;
ListViewFields by contrast display images from a smallimagelist and
largeimagelist, both of which are array of bitmapobject. I tend to use
the palettefield editor to load my lookup images + keyword (the editor
puts them in the tooltiptext); then in the startup code I loop through
to copy the keyword to the enumtext so I can subsequently use
valuelist.BitmapByText().
Regards,
Sean.
Sean Thrower
Ingres Premium Services.
________________________________
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Antill, Jim
Sent: Friday, November 09, 2007 12:58 PM
To: International OpenROAD Users
Subject: Re: [Openroad-users] Displaying Image in optionfield
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: 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.
************************
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/84db1031/attachment.html
More information about the Openroad-users
mailing list