MSGItem 2007
MSGItem 2007
I have modify the method paint to change the msgbar
I rem
WndBoxIn( hDC, 3, nLeft - 2, ::oMsgBar:nHeight-5, nLeft + ::nWidth - 6 )
and I insert
WndBoxRaised( hDC, 0, nLeft - 4, 22, nLeft + ::nWidth -1)
Now when I define a msgitem ( txt) it show the txt on white background
I insert also before the DrawMsgItem function the command SetBkMode( hDC, 1 )
but it not change the error ... How I can make it ?
I rem
WndBoxIn( hDC, 3, nLeft - 2, ::oMsgBar:nHeight-5, nLeft + ::nWidth - 6 )
and I insert
WndBoxRaised( hDC, 0, nLeft - 4, 22, nLeft + ::nWidth -1)
Now when I define a msgitem ( txt) it show the txt on white background
I insert also before the DrawMsgItem function the command SetBkMode( hDC, 1 )
but it not change the error ... How I can make it ?
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
yes look thi s message on footer http://fivetechsoft.com/forums/viewtopic.php?t=8744
there is the picture
there is the picture
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Silvio,
MsgItems can be painted transparent, modifying the DRAWMSGITEM() function this way:
The problem is that the background is not erased, so the new text does not erase the previous one. i.e.: see the clock running. We need to find a workaround for it
MsgItems can be painted transparent, modifying the DRAWMSGITEM() function this way:
Code: Select all
...
SetBkMode( hDC, TRANSPARENT ); // new
// ExtTextOut( hDC, 2, 4, ETO_OPAQUE, &rc, "", 0, 0 ); no
DrawText( hDC, cMsg, wLen, &rc, DT_CENTER);
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Antonio, I insert the code you sent me :
SetBkMode( hDC, TRANSPARENT ); // new
// ExtTextOut( hDC, 2, 4, ETO_OPAQUE, &rc, "", 0, 0 ); no
DrawText( hDC, cMsg, wLen, &rc, DT_CENTER);
but not run ok
Then Another question I wanted modify the color when the mouse is over the msgitem
where I must modify this color ?
SetBkMode( hDC, TRANSPARENT ); // new
// ExtTextOut( hDC, 2, 4, ETO_OPAQUE, &rc, "", 0, 0 ); no
DrawText( hDC, cMsg, wLen, &rc, DT_CENTER);
but not run ok
Then Another question I wanted modify the color when the mouse is over the msgitem
where I must modify this color ?
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: