Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BMP graphic in General field not showing in listbox?
Message
From
06/03/2002 09:40:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00628878
Message ID:
00628974
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform