Winston
Well-known member
Ok, this might be hard to understand but anyways:
im currently inheriting from the ListBox control and providing my own drawing code.
Im drawing a gradient background on each listbox item. All fine, however the gradient im drawing is a little away from the edge of the actual rectangle so youll see some white space around the actual rectangle.
All fine till when you run it and when u resize the listbox, only the first item gets refreshed and draw appropriately.
If i drew the gradient so that it covered the whole rectangle up with no spaces between the edges, and if i resize it during runtime, all the items become drawn correctly.
Heres a screenshot of the issue when its resized
http://www.ug.it.usyd.edu.au/~wpan6331/ss/ss.JPG
Has anyone experienced the same situation before?
Thanks
im currently inheriting from the ListBox control and providing my own drawing code.
Im drawing a gradient background on each listbox item. All fine, however the gradient im drawing is a little away from the edge of the actual rectangle so youll see some white space around the actual rectangle.
All fine till when you run it and when u resize the listbox, only the first item gets refreshed and draw appropriately.
If i drew the gradient so that it covered the whole rectangle up with no spaces between the edges, and if i resize it during runtime, all the items become drawn correctly.
Heres a screenshot of the issue when its resized
http://www.ug.it.usyd.edu.au/~wpan6331/ss/ss.JPG
Has anyone experienced the same situation before?
Thanks