by 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
-
RAMESHBABU
-
- Posts: 624
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
by 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
-
- Posts: 56
- Joined: Wed May 23, 2007 2:01 pm
by Antonio Linares » Fri Oct 10, 2008 9:18 pm
Yuri, Ramesh,
First do a:
DeleteObject( oMsgBarItem:hBitmap1 )
-
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