FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to change a bitmap in message bar in runtime ?
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to change a bitmap in message bar in runtime ?
Posted: Fri Oct 10, 2008 05: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
Posts: 56
Joined: Wed May 23, 2007 02:01 PM
How to change a bitmap in message bar in runtime ?
Posted: Fri Oct 10, 2008 08:07 PM
hello Mr.Ramesh,

try this:

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
How to change a bitmap in message bar in runtime ?
Posted: Fri Oct 10, 2008 09:18 PM

Yuri, Ramesh,

First do a:

DeleteObject( oMsgBarItem:hBitmap1 )

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion