How to change a bitmap in message bar in runtime ?

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

How to change a bitmap in message bar in runtime ?

Post by RAMESHBABU »

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
yury
Posts: 56
Joined: Wed May 23, 2007 2:01 pm

Post by yury »

hello Mr.Ramesh,

try this:

Code: Select all

oMsgBarItem:hBitmap1 = LoadBitmap( GetResources(), cNewResorce )
oMsgBarItem:Paint()
where oMsgBarItem is the TMsgItem component and cNewResource the name of new resource

regards
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Yuri, Ramesh,

First do a:

DeleteObject( oMsgBarItem:hBitmap1 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply