| View previous topic :: View next topic |
| Author |
Message |
Eugene Guest
|
Posted: Wed Apr 21, 2004 6:13 pm Post subject: How to leave speedbutton clicked? |
|
|
Hi,
I'm using speed buttons and when i click to speedbutton, i want to leave speedbutton pressed in till second click(or another event).How to leave speedbutton clicked?
Eugene
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Apr 21, 2004 6:30 pm Post subject: Re: How to leave speedbutton clicked? |
|
|
"Eugene" <Eugene (AT) dmx (DOT) de> wrote
| Quote: | I'm using speed buttons and when i click to speedbutton, i
want to leave speedbutton pressed in till second click(or
another event).How to leave speedbutton clicked?
|
Set the GroupIndex property to a value greater than zero and make sure the
AllowAllUp property is set to true.
Gambit
|
|
| Back to top |
|
 |
Eugene Guest
|
Posted: Wed Apr 21, 2004 8:03 pm Post subject: Re: How to leave speedbutton clicked? |
|
|
Hi,
Thanks.It works.I placed a SpeedButton and BitBtn to a form
and i set up the properties of speedbutton.When i click to
SpeedButton it is pressed-in it's ok.I wrote to BitBtn
OnClick, zero to GroupIndex of SpeedButton and AllowAllUp =
false but when i click to BitBtn, SpeedButton does not change
its position.So how can i normalize speedbutton now with a
procedure?
Thanks in advance
Eugene
|
|
| Back to top |
|
 |
george Guest
|
Posted: Wed Apr 21, 2004 8:28 pm Post subject: Re: How to leave speedbutton clicked? |
|
|
"Eugene" <Eugene (AT) dmx (DOT) de> wrote:
| Quote: |
Hi,
Thanks.It works.I placed a SpeedButton and BitBtn to a form
and i set up the properties of speedbutton.When i click to
SpeedButton it is pressed-in it's ok.I wrote to BitBtn
OnClick, zero to GroupIndex of SpeedButton and AllowAllUp =
false but when i click to BitBtn, SpeedButton does not change
its position.So how can i normalize speedbutton now with a
procedure?
Thanks in advance
Eugene
|
Try
SpeedButton->Down=false;
george
|
|
| Back to top |
|
 |
Eugene Guest
|
Posted: Wed Apr 21, 2004 9:07 pm Post subject: Re: How to leave speedbutton clicked? |
|
|
Ok, i missed Down property.Thank you, i solved all problems :)
Eugene
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Thu Apr 22, 2004 8:22 am Post subject: Re: How to leave speedbutton clicked? |
|
|
As an aside, for anyone working with components, it's worth selecting the
component on the BCB toolbar and pressing F1 to get the help on that
component. The click on the list of Properties and go through each property
finding out what they do.
Create some dummy forms if you really want to learn more.
This is a very good way of finding out what you can do with different
components.
Most of Borland's components are actually quite well featured and the help
isn't all that bad.
Perhaps someone should write a BDN article on the 'hidden' features of
components!
Rgds Pete
"Eugene" <Eugene (AT) dmx (DOT) de> wrote
| Quote: |
Ok, i missed Down property.Thank you, i solved all problems :)
Eugene
|
|
|
| Back to top |
|
 |
|