How to change a bitmap in message bar in runtime ?

How to change a bitmap in message bar in runtime ?

Postby RAMESHBABU » Fri Oct 10, 2008 5:16 am

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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby yury » Fri Oct 10, 2008 8:07 pm

hello Mr.Ramesh,

try this:

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

Postby Antonio Linares » Fri Oct 10, 2008 9:18 pm

Yuri, Ramesh,

First do a:

DeleteObject( oMsgBarItem:hBitmap1 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests