This has undoubtedly been asked before.
GAMBAS 2.2
I am trying to add an icon to the listview items, to that end this
code snippet should do the trick;
Private SUB Initialize_Listview1()
DIM Icon AS NEW Picture
Icon.Load("/home/username/mypicture.png") ' This png file is 26x16
and has a transparent background
Listview1.Add("1","Entry 1", Icon)
END
No errors generated, no picture appears in the listview. Examining
the Icon object sees an hex value in Image and 0 width and 0 height.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user