Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Picture property in List control
I'd like to use small bitmaps in list control, but it doesnot work as documented in the developers guide.
When the RowSourceType is set to 0, and I add all the items to list and setting the picture property, it works fine. It also works fine, when I set the Picture in Form designer to a bitmap (it means it will be the same for all the rows.)
But I tried to use another type of RowSourceType (e.g. files, or fields) I tried out the example described in the Dev. guide. (In the Click event of List control there is the code:
for m.i=5 to This.ListCount
if mod(m.i,3)=1 && it is only test
this.picture(m.i)="c:\bitmap1.bmp"
else
this.picture(m.i)="c:\bitmap2.bmp"
endif
endfor
It changes the rows only which are out of the list. If I sroll out a row from the list when I scroll back again to be visible in the list it will contain the bitmap. But the rows, whic remains on the screen never get bitmap in them.
I tried to place this code into a Command button click event (adding the line thisform.list1.refresh and changing the references This to Thisform.list1), but it still didnot work.
The 2 bitmaps is available for fox, because I tested it so, that setting in the form designer the picture property to that file(s) and then the same bitmap appeared in the list.
Has anybody some opinion about it, or any advise?
P.S.: In the online help, there is no Picture property to list control.
I have another question. I noticed, that in the Sample file section there are files with extension .msk and their names are equal to .bmp files. I also noticed that with these files fox makes "transparent" colors to bitmaps. I opened this .msk files as bitmap and saw that they are bitmaps too. I searched all my documentation but I didnot found anything about these files. Can someone tell where I can find details about this feature?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement