关于控件的状态
我在C++builder 中用一个Panel 上放了几个SpeedButon ,但问题出在执行时,按下却不能呈按下状态。帮助里面说:“To make speed buttons act as a group, give the GroupIndex property of all the buttons the same nonzero value.
By default, speed buttons appear in an up (unselected) state. To initially display a speed button as selected, set the Down property to true.
If AllowAllUp is true, all of the speed buttons in a group can be unselected. Set AllowAllUp to false if you want a group of buttons to act like a radio group.”
现在我不能set the Down property to true呀。每次执行都不行?怎么办?谢谢!
问题点数:20、回复次数:3Top
1 楼hdaq(一生何求)回复于 2002-11-10 18:26:08 得分 10
把你这组SpeedButon的GroupIndex = 1;
AllowAllUp = true;
这样你就可以让他Down和UP了Top
2 楼dahuzizyd(你就是我心中的女神)回复于 2002-11-11 14:10:50 得分 10
补充楼上的,这组SpeedButton的Down是互斥的,就是同时只能有一个按下去。Top
3 楼sgulyssess(乐)回复于 2002-11-11 22:06:17 得分 0
谢谢
Top




