如何使pssed一个Delphi TSpeed​​Button停留$ P $如果它是该组中唯一的一个 [英] How to make a Delphi TSpeedButton stay pressed if it's the only one in the group

查看:114
本文介绍了如何使pssed一个Delphi TSpeed​​Button停留$ P $如果它是该组中唯一的一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么TSpeed​​Button具有这种特性,但是当一个TSpeed​​Button是一个给定对groupIndex唯一的按钮,它不留pressed,不管是不是AllowAllUp是pressed。也许一个绝地控制就足够了,但我希望有一些修正。任何帮助或轶事AP preciated。

I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, but hopefully there's some fix. Any help or anecdotes are appreciated.

顺便说一句,我(仍然)使用Delphi 7,不知道这是一个一刀切的难题。

BTW, I'm (still) using Delphi 7, not sure if this is an across the board conundrum.

推荐答案

我没有在这里D7,但在D2006一Speed​​Button的停留下来,如果的GroupIndex有值> 0

I have no D7 here, but in D2006 a Speedbutton stays down if the GroupIndex has a value > 0.

如果这不是你想要的行为,您可以手动在OnClick-事件处理程序设置向下地产(确保,该的GroupIndex为0)。

If this is not the behaviour you wish, you can set the Down-Property manually in the OnClick-Eventhandler (make sure, that the GroupIndex is 0).

这篇关于如何使pssed一个Delphi TSpeed​​Button停留$ P $如果它是该组中唯一的一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆