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.