Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView ActiveX Refresh in VFP 6.0 SP3

Status
Not open for further replies.

blatta

Programmer
Apr 4, 2000
3
CA
I have a ListView in a container that will not refresh correctly. When I resize the container the Listview appears outside of the boundaries of the container! If the ActiveX is in a form it will behave itself.
 
It <i>sounds</i> like the List is not actually in the container, but sitting on top of (or behind) it.&nbsp;&nbsp;While in design mode, can you grab the List and move it completely outside the container?
 
The list is in the container. I have created a container class the holds the ActiveX and then I add the container object to a form.<br><br>
 
I had a similar problem a year back with Access. After much investigation, I came to the conclusion that Access container controls are crap and don't handle complex controls very well.

My solution was to *not* place the activex control within the container control, but place it on the form, as a normal control, in the appropriate position, on top of where it should be.

I then use code to resize it manually. This code is triggered when the form/container is resized. You might wanna try this for VFP - it could be the same.

 
TheQuestioner,

Your solution is probably right for Access, but it is unnecesary in VFP. I have written a freeware listview class which consists of a ListView inside a container. It is used by hundreds of programmers, and the resizing works fine.

(If anyone would like a copy of the class, with my compliments, you can grab it from:
).

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top