简体   繁体   English

C++ 构建器中的 RadioGroup

[英]RadioGroup in c++ builder

I have two forms in my project in c++ Builder 2010. I have created RadioGroup in the second and listed all my buttons there, but I have few problems:我在 c++ Builder 2010 中的项目中有两个表单。我在第二个表单中创建了 RadioGroup 并在那里列出了我的所有按钮,但我几乎没有问题:

  1. When I load my form and check some button, the earlier selection stays checked until I hover mouse over it.当我加载表单并检查某个按钮时,先前的选择会保持选中状态,直到我将鼠标悬停在它上面。

  2. How to make the buttons from second form affect the first form?如何使第二种形式的按钮影响第一种形式?

  3. How to make certain TEdit box go grey and unselectable when checking certain radiobuttons?检查某些单选按钮时,如何使某些 TEdit 框变灰且不可选择?

I found this by googling embarcadero radio, first hit: embarcadero docs我通过谷歌搜索 embarcadero radio 找到了这个,第一次点击: embarcadero docs

Essentially, radio buttons are not mutually exclusive unless you use a radio group.本质上,除非您使用单选组,否则单选按钮并不相互排斥。

Two questions in one is not a great idea, but to answer the second just set TButton->Enabled to false.两个问题合二为一并不是一个好主意,但要回答第二个问题,只需将 TButton->Enabled 设置为 false。

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

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