简体   繁体   English

RAD Studio XE5移动应用程序中的TCheckBox

[英]TCheckBox in RAD Studio XE5 Mobile App

I tried to use a CheckBox in a Firemonkey Mobile App. 我试图在Firemonkey移动应用程序中使用CheckBox。 But when running the App I can't click on the CheckBox, eg it doesn't change it's IsSelected value. 但是在运行应用程序时,我无法单击CheckBox,例如,它不会更改IsSelected值。 Also if I try to handle the OnClick event I never receive this event. 另外,如果我尝试处理OnClick事件,则永远不会收到此事件。 On the same form I also use a TTMSFMXRating component. 在同一表格上,我还使用了TTMSFMXRating组件。 Most of the time it doesn't react when clicking on it. 大多数情况下,单击它时都不会反应。 On an other form that TTMSFMXRating works without problems. TTMSFMXRating可以以其他形式正常工作。 What do I do wrong ? 我做错了什么? I can't see any difference between these two forms (on both of them I also have some FireDAC DB access). 我看不到这两种形式之间的任何区别(在这两种形式上,我也都有一些FireDAC DB访问权限)。 I also tried to generate a new FireMonkey Mobile App with just a CheckBox. 我还尝试仅使用CheckBox生成一个新的FireMonkey Mobile App。 But also there I can't change it's IsChecked value by clicking on it and don't receive any onClick events. 但是我也无法通过单击它来更改它的IsChecked值,并且不会收到任何onClick事件。 I would be happy for every hint. 我会为每一个提示感到高兴。

TCheckBox is not a standard component on mobile platforms so is not supported by RAD Studio. TCheckBox不是移动平台上的标准组件,因此RAD Studio不支持。

Use TSwitch instead. 请改用TSwitch。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM