Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load new images into a speed button.

Status
Not open for further replies.

Tremorblue

Programmer
Apr 30, 2004
56
GB
At present in my application
I change the images on a speed button by calling loadfromfile.

the problem with this is he users are able to edit the .bmp files.

Is it possible to load a new picture file onto a speed button using an Imagelist or Image already containing the desired bitmap ?

Thanks,
TB.
 
I realised I have already solved this one a while back..

Graphics::TBitmap *pBitmap = new Graphics::TBitmap();
pBitmap->Assign(Image1->Picture->Graphic);
SpeedButton1->Glyph->Assign(pBitmap);
delete pBitmap;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top