>>>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only