Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids & icons
Message
From
17/03/2002 23:52:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grids & icons
Miscellaneous
Thread ID:
00633979
Message ID:
00633979
Views:
58
Hi

I have a grid in which I am displaying icons for each different type of order (in this case 3 types). I create a container and place my picture in it and then use a 'gridhook()' function via the dynamicbackcolor property of the column.
Column1.DynamicBackColor=thisform.gridhook()
Column1.ControlSource=invcont.wotype

thisform.gridhook()
Thisform.grdInvcont.Columns(1).typeicon.icon.Picture=icotypes(AT(invcont.wotype,'UGP'))
Return thisform.grdInvcont.Columns(2).Backcolor
Nothing to unusual in that and it displays wonderfully.

Unfortunately, when I click on the icon and then click on another the previous icon displays as the same as the current one. I assume this is because my hook is getting called during the lostfocus phase.

Because all I have is a container with a picture in it I dont have some of the methods other objects have.

The question is what exactly is going wrong and how do I correct this???

regards
Geoff Scott
May all your weeds be wildflowers
Next
Reply
Map
View

Click here to load this message in the networking platform