Home > Back-end >  ListView OwnerDraw=true, CheckBoxs shows problems???????
ListView OwnerDraw=true, CheckBoxs shows problems???????

Time:10-10

Delphi ListView when using the OwnerDraw, CheckBoxs does not show! O solve!!!!!
Listen to a somebody else say need to redraw!!!!!

CodePudding user response:

http://www.dotblogs.com.tw/jgame2012/archive/2011/09/16/36367.aspx
Find it online? Who can translate into a D? Don't know how the effect

CodePudding user response:

CodePudding user response:

Since OwnerDraw is, of course, by the onwer to draw,
What is called "listen to a somebody else say need to redraw", you also don't know why the OwnerDraw is, is what still OwnerDraw

CodePudding user response:

reference sololie reply: 3/f
since OwnerDraw, is, of course, by the onwer to draw,
What is called "listen to a somebody else say need to redraw", you also don't know why the OwnerDraw is, is what still OwnerDraw


Wrong! Is opened the OwnerData, not OwnerDraw! But they are almost!
How can we can have a check box under the OwnerData? Trouble to help!
Thank you very much

CodePudding user response:

TListView OwnerData help in such a words:
"You must explicitly dojo.provide a value to a list item 's StateIndex property if it is to display a check box."

So will give the ListView1 StateImages attribute assignment, preserved in the StateImages selected and uncheck both CheckBox pictures, change the ListItem StateIndex can realize the switch and not selected,

CodePudding user response:

This is the best way to deal with? How special this strange feeling
  • Related