List Info

Thread: RE: Locating Speedbutton controls




RE: Locating Speedbutton controls
country flaguser name
United States
2008-03-06 07:59:53

That's what I was looking for! I will try out your suggestions and let
you know if I have any followup questions.

Thanks again!

Tom Nesler

Live long!... Code Well!... and Prosper!... V

-----Original Message-----
From: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com [mailto: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com] On
Behalf Of Charlie Chambers
Sent: Wednesday, March 05, 2008 6:39 PM
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
Subject: Re: [delphi-en] Locating Speedbutton controls

Hi Tom,

i think your looking for:
if (Sender as TSpeedbutton).Name='SpdBtn1' then
//do something

if you don't know the name of the component then when you create the
component set the Tag property to a known amount as 20-41 to find
components as

if (Sender as TSpeedbutton).Tag=21 then
//do something

Or you can iterate through all the components on the form as

for C:=0 to Form1.ComponentCount-1 do begin
if Components[C] is TSpeedbutton then begin
//do something
end;
end;

Cheers,
Charlie

----- Original Message -----
From: Nesler, Thomas J
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
Sent: Wednesday, March 05, 2008 4:26 PM
Subject: [delphi-en] Locating Speedbutton controls

Hello!

I have a Coolbar with 21speed buttons on it. I need to enter captions
on the fly for these speedbuttons. How can I find these buttons and
load the captions?

I know there is some kind of search find function but I can't seem to
locate it right now.

Thanks in advance!

Tom Nesler

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: delphi-en-unsubscribe%40yahoogroups.com">delphi-en-unsubscribeyahoogroups.com
Yahoo! Groups Links

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )