Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2008, 04:17 AM
Samuel Samuel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 247
Default Speedbutton up and down

Hi
I have only one speedbutton in this groupindex.

How can I change it up and down inside the onclick procedure?
What I want is to change the bitmap image,

[DELPHI]spVerao.GroupIndex=1; spVerao.NumGlyphs=4;

procedure Tpede10Form.spVeraoClick(Sender: TObject);
begin
spVerao.Down := Not spVerao.Down; // here it doesn't work
end;


procedure Tpede10Form.Button1Click(Sender: TObject);
begin
spVerao.Down := Not spVerao.Down; // here it works
end;[/DELPHI]

Thanks
Sam
Reply With Quote
  #2  
Old 07-31-2008, 04:40 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: Speedbutton up and down

procedure Tpede10Form.spVeraoClick(Sender: TObject);
begin
spVerao.Down := Not spVerao.Down; // here it doesn't work
end;

You do not need the code for spVeraoClick because Down state for button changed automatically (after click in button)

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #3  
Old 07-31-2008, 05:57 AM
Samuel Samuel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 247
Default RE: Speedbutton up and down

You're right.
But i needed to have AllowAllUp set to True, it was set to false
Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:54 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.