Hello,
As per subject. I did not find any method to change the bitmaps in TMsgItem Class in run time similar to ::SetText(cText) method.
Can anybody guide me how to do it.
- Ramesh Babu
How to change a bitmap in message bar in runtime ?
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
hello Mr.Ramesh,
try this:
where oMsgBarItem is the TMsgItem component and cNewResource the name of new resource
regards
try this:
Code: Select all
oMsgBarItem:hBitmap1 = LoadBitmap( GetResources(), cNewResorce )
oMsgBarItem:Paint()
regards
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: