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
			
			
									
									
						ListIconGadget Icon Placement
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
- 
				BackupUser
- PureBasic Guru 
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm