if a cxBarEditItem1 is a checkbox, how to get it's state?

自作多情 提交于 2019-12-11 05:52:08

问题


On my dxBarManager1Bar1 a cxBarEditItem1 is a checkbox. How can I check it's state (if it's checked or not checked) ?


回答1:


For accomplishing your task, you can use the EditValue property.

if (cxBarEditItem1.EditValue <> Null) AND (cxBarEditItem1.EditValue = True) then 
  ShowMessage('Checked!')
else 
  ShowMessage('Not Checked! (or null)');

Note that EditValue is a Variant property which can also have Null value.



来源:https://stackoverflow.com/questions/41296661/if-a-cxbaredititem1-is-a-checkbox-how-to-get-its-state

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!