MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.I'm drawing into a listbox but don't see something.
Feedback.

Answer: If you draw this in a listbox cellbackground, you need to draw on the correct position
Example:
Function CellBackgroundPaint(g As Graphics, row as Integer, column as Integer) As Boolean
dim f as FolderItem
f=SpecialFolder.Desktop
f.DrawWideIconMBS(g,listbox1.left,listbox1.top+row*20,16)
Return true
End Function
Notes: Try this in a listbox. The Graphics object there has a cliping and an offset which the plugin doesn't know about.




Links
MBS Xojo PDF Plugins