![]() |
|
#1
|
|||
|
|||
|
I am dyanamicaaly creating speedbuttons in tab change, i want to made speed button disabled , when it is disabled it is not showing the loaded image. how to see the image on speed button when it is in disable state. I am using the code
SpeedButton,Newimage.Glyph.LoadFromFile('Path') |
|
#2
|
|||
|
|||
|
works fine with me:
Code:
procedure TFormKOCExport.Button1Click(Sender: TObject);
begin
SpeedButton1.Enabled := not SpeedButton1.Enabled;
end;
procedure TFormKOCExport.Button2Click(Sender: TObject);
begin
SpeedButton1.Glyph.LoadFromFile('C:\temp\attachment.bmp');
end;
This code is so straight-forward that i'm guessing the problem is in the bitmap itself |
![]() |
| Thread Tools | |
| Display Modes | |
|
|