PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Image woes
Image woes
Iniciado por DT, 21,nov. 2005 15:08 - No hay respuesta
Publicado el 21,noviembre 2005 - 15:08
Hi All
I have a Treeview displaying a list of people.
On the same form (plane 1) I display the persons details which includes a photo in an image control.
The image control is linked to the data file.
If I click on a person I get their ID using TreeIdentifier, run a procedure which by Using FileToScreen displays the data.
Clicking on a second person runs the same process and will display an image if one is available or, if not, will clear the image.
So far so good but.....
In the 'Click on' section of the Treeview I have the following code
cTreeType is string = TreeTypeItem(tv_Employee,TreeSelect(MySelf))
IF cTreeType = tvLeaf THEN
lp_ReadEmp() //Display employee detail
ELSE
Reset
HReset(Employee)
END
In the 'Node Collapse/Expand of' section I have the Reset and HReset(Employee) commands.
Everything works fine until I click on a Node or collapse a section.
Reset and HReset(Employee) spring into action and all controls are reset with no values displayed.
All controls that is except the image which steadfastly continues to display the last image.
I have checked with Trace and confirmed that the image link does not contain a value.
The question is how do I reset the image control?
Regards
DerekT