PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [7.5] image display on button
[7.5] image display on button
Started by Tom, Sep., 07 2005 8:13 PM - 1 reply
Posted on September, 07 2005 - 8:13 PM
Hello,
I use the following code to display an image on a button. the images are stored in hyperfile memo field.
HExtractMemo(FILE,ITEM_IMAGE,LOCAL_PATH)
CTRL_BUTTON..Image = LOCAL_PATH
this works fine but is a bit slow because each time the image has to be created on hard disk.
Is there a way to directly assign the file item to the button-image property?
Thanks in advance,
Tom
Posted on September, 09 2005 - 2:38 AM
Tom,
Perhaps you could leave the image file on the hard disk after it has been extracted and then for subsequent uses read it directly from the disk ie put some conditional code in that checks for the existence of the image and reads it from the disk if it already exists. That way it would be slow the first time the window is accessed but quicker for subsequent times.
hth
Clive