Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About the listview control and the image list control
Message
From
04/07/2003 11:29:43
 
 
To
03/07/2003 13:04:50
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00806594
Message ID:
00806996
Views:
21
Thanks for you example, but couldn't understand it. Could you give a
short explanation on what it does.

So far, I've tried this:

selec codigo

SELEC codigo.pic, codigo.descripcion FROM codigo INTO ARRAY fotos

*filling the image list control

FOR i=1 TO ALEN(fotos,1)

THIS.olecontrol1.listimages.ADD(i,fotos[i,2],LOADPICTURE(fotos[i,1]))

ENDFOR


** filling the listview control with images from image list

FOR i=1 TO ALEN(fotos,1)

THIS.olecontrol2.listitems.ADD(i,,fotos[i,2],this.olecontrol1.listimages.item[i].picture)

ENDFOR


But I get a message indicating me that image list control hasn't been initiliazed yet.

Practically, What I need is: fill the image list, then fill the list view
control wiht those images, it seems like is not so hard but I can't figure
out what's exactly my error

TIA

>Here is one instance of some code that I have:
>
>
>procedure mylistview.init
>this.object.icons        = ThisForm.myimagelist.object
>this.object.smallicons   = ThisForm.myimagelist.object
>
>sele mytable
>scan
>    oObj                 = THIS.listitems.ADD
>    cwtype               = IIF(DATE() > ddata_vali .OR. !lstatus, "btn_off", "btn_on")
>    oObj.TAG             = mytable.cfaixa_id + mytable.ctabela_id
>    oObj.smallicon       = cwtype
>    oObj.ICON            = cwtype
>endscan
>endproc
>
>
>HTH
>
>Claudio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform