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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview control in Fox

Status
Not open for further replies.

konLao

Programmer
Mar 10, 2003
61
US
Dear FoxPro Users,
I'm using FoxPro 6. I'm using MS-Listview Control Version 5 (SP2). It seems like many method and property doesn't work in Fox. I try it use checkboxes,gridlines,...etc.

Thank you,
KonLao
 
KonLao,

Can you be more specific?

I've used the ListView quite a lot in VFP 6.0. Although it can be quite complicated to use, I've never found things that don't work.

You might want to try my SimpleList control, which puts the ListView in an easy-to-use wrapper. See:
for details.

SimpeList requres VFP 7.0, but only because of a few shortcuts I took with ASCAN() and the like. You are free to borrow the ideas for getting the Listview to work with 6.0.

Mike


Mike Lewis
Edinburgh, Scotland
 
Mike,
I try to set listview gridelines,colunmheader.width,multiselected,and checkboxes properties. I'm sorry I'm new at FoxPro.

Thank you,
Konlao
 
konlao,

go to:


You will find probably one of the best examples of using a listview in VFP. Be forewarned that it uses the Listview Control - version 6.0 SP(4), but I figure it may give you some idea of where you are going wrong with the Listview Control - Version 5 SP(2). And you may want to consider using the version 6 listview rather than the one you are using now, unless you have specific requirements that are making you use the older listview control.

Slighthaze = NULL
 
slighthaze,
Thank you. I have another question for you. You mentioned listview in VFP. How? where? I can't find it and I'm using VFP 6.0
 
Go to the system menu in VFP...

TOOLS - OPTIONS - CONTROLS (tab) and you will see a list of all the controls that are registered on your system. Scroll down through the list and look for "Microsoft Listview Control 6.0 (SP4)" put a check mark next to it and then click OK button. Now go up to your Form Controls toolbar and click on the little books that are at the far left of it (next to pointer)...drop-down will give you option of "ActiveX Controls". You should now see the Listview control and you can just add it to your form like any other control.

Slighthaze = NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top