Page 1 of 1

Posted: Tue Apr 01, 2003 9:51 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

Is it possible to place the icon in a ListIconGadget in any column,
other than the first one. It seems that I can drag it to a different
area, but it always is initialised in the first column.

Below is some code you could tweak for me if you want.


;- Window Constants
;
#Window_0 = 0

;- Gadget Constants
;
#Gadget_0 = 0



Procedure Open_Window_0()
If OpenWindow(#Window_0, 216, 1, 351, 258, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "New window")
If CreateGadgetList(WindowID())
ListIconGadget(#gadget_0,15,0,300,150,"Note",40,#PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect )
AddGadgetColumn(#gadget_0,1, "Col2",60)
AddGadgetColumn(#gadget_0,2, "Col3",60)
AddGadgetColumn(#gadget_0,3, "Col4",60)
LoadImage(4,".\images\note.ico")
AddGadgetItem(#gadget_0,-1,"Test1",UseImage(3))


EndIf
EndIf
EndProcedure

open_window_0()
Repeat
evnt=WaitWindowEvent()


If evnt=#wm_close
quit=1
EndIf
Until quit=1


End

Thanks

Derek

Posted: Tue Apr 01, 2003 10:35 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

I have another problem with this as well.

Is it possible to have a different icon in every line?

It seems that it will use whatever icon I used last???

Derek - PB Newbie

Posted: Tue Apr 01, 2003 10:38 pm
by BackupUser
Restored from previous forum. Originally posted by effigy.

Ok.. never mind about the Second problem, but the first one still stands