iconstrips wont dispaly in comboboxes.

BlitzPlus Forums/BlitzPlus Programming/iconstrips wont dispaly in comboboxes.

Kev(Posted 2003) [#1]
hi

ive been playing with the new icons in comboboxes, but im getting no icon in the combobox. i just cant seem to get them to work.

heres what im doing, im sure im doing everything right.


iconstrip=LoadIconStrip("iconstrip.bmp")

Combo1 = CreateComboBox(105,177,326,100,Win1,0)
SetGadgetLayout Combo1,1,0,1,0
SetGadgetIconStrip Combo1,iconstrip

;
AddGadgetItem Combo1,"item ",0,0


im not sure though if the problem is with the 'AddGadgetItem Combo1,"item ",0,0'

i also made sure that the iconstrip .bmp is the correct size, ive 2 icons in the stip, 8x8 in size.

as anyone got these working?

*EDIT ok it looks like 'AddGadgetItem Combo1,"item ",0,0' is used correctly, the last 2 paramiters are used to select the item and the icon index number. but theres still no icons displayed? can anyone confirm that theres problems with iconstrips and comboboxes?


kev


marksibly(Posted 2003) [#2]
Hi,

I can confirm this is a bug in AddGagetItem.

However, InsertGadgetItem works.


Kev(Posted 2003) [#3]
cheers mark.

works a treat

kev