Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BMP graphic in General field not showing in listbox?
Message
De
06/03/2002 09:40:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628878
Message ID:
00628974
Vues:
13
Steve,
I don't have an idea how you could make that with a cursor based listbox maybe someone else has. I simply prefer using grids. However below approach might fit you :
*arrList is custom form property
*form.init
select emp_id,first_name, last_name, title, ;
 iif(title='Sales',"bmps\bottom.bmp","bmps\cursor.bmp") ;
 from employee ;
 into array this.arrList

with ThisForm.List1
 .RowsourceType = 5
 .RowSource = 'thisform.arrList'
 .Columncount = ALEN(thisform.arrList,2)-1
 .Numberofelements = ALEN(thisform.arrList,1) * (ALEN(thisform.arrList,2)-1)
 .Columnlines = .F.
 .Columnwidths = '50,50,50,50'
 for m.ix=1 to .ListCount
   .Picture(m.ix) = thisform.arrList(m.ix,5)
 endfor
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform