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

Limited number of images in combo?

Status
Not open for further replies.

vitorsa

Programmer
Apr 28, 2000
13
0
0
PT
I can't put more than 55 images in my array combo
with 67 lines or more. Anyone knows whats happen?

Thanks.
 
I don't have a error message. My combo display only 55 lines
with images. Here down the RefreshPic method tha i use.
---
local nItem, cPic

if not empty(thisform.aLicoes)
cPic = ''
with thisform
for nItem = 1 to .lstLicoes.ListCount
do case
case thisform.aLicoes[nItem,4] = 'TEO'
cPic = "bitmaps\teo3.bmp"
case thisform.aLicoes[nItem,4] = 'TEC'
cPic = "bitmaps\tec2.bmp"
case thisform.aLicoes[nItem,4] = 'PRA'
cPic = "bitmaps\pra4.bmp"
case thisform.aLicoes[nItem,4] = 'LOC'
cPic = "bitmaps\lock3.bmp"
otherwise
cPic = "bitmaps\clock2.bmp"
endcase
.lstLicoes.Picture(nItem) = cPic
next
endwith
endif
---
the value of .lstLicoes.ListCount is 65 lines.
 
You don't indicate the version and Service Pack number of the VFP you are using, but are you running the most current available? The MSDN KnowledgeBase lists a couple known problems: - "PRB: Graphics Do Not Display When Using List Box with Pictures"
- "PRB: ListBox/ComboBox Picture Won't Display If Defined in Class"

Also you didn't indicate the OS you are running under - the Win9x's have always have resource limitations, and graphics can quickly exhaust them. Have you tried this code under NT / 2000 / XP ?

Rick
 
Thanks Rgbean, but the known problems in MS page is for VFP 3.0 and my version is VFP 6.0 SP5 and the problem is when i have more than 55 lines in combo.
About OS i've experience the problem with win2k and win98.
Problem can be reproduced if you try to select to an array, use this array in combo and then try to put a graphic to a combo item.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top