Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display Images on a Grid that is allways visible.
Message
From
14/10/1997 15:28:35
 
 
To
14/10/1997 15:20:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054503
Message ID:
00054517
Views:
31
>>>>>I have a grid class that creates an image on its header bars. The image is either an up arrow or down arrow to display which column the grid is sorted by and whether it is accending or decending. My problem is that after leaving the grid, the image is no longer visble. Using the event log the last grid event that occurs in this case is the paint event. I have put code in the grid refresh to redisplay the image but it still disappears. How can I make an image control to be visible at all times?
>>>>
>>>>Did you try Image.ZOrder(0) at the end of grid refresh? It usually helps for the case of overimposed controls.
>>>
>>>I tried it just now with no help.
>>
>>I would advise to make a test: add a button with Thisform.Image1.ZOrder(0) in click event, i.e. try to bring image up from separate place (you can also try Thisform.Grid.ZOrder(1)).
>
>Thanks for your quick replies. I tried the button click code calling image.zorder(0) before posting my original message. I actually had on button for zorder(0) and zorder(1) and I noticed that I had to cycle the zorder in order to make the control image visible. I then switched back to the image.visible = image.visible method I was using previously. I will try it with the grid.zorder. Cross your fingers.

The Grid.zorder didn't work either. it looks like foxpro refreshes the grid after leaving it and there is no method or way to intercept or call code within the class to prvent it. I was hoping there was some way in the image that the image could setitself on top all the time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform