Antonio: Suggested changes in class TRBGroup
Posted: Tue Apr 16, 2013 2:14 pm
1.) When i use a second window with ribbonbar and open and close this second window several times, the font in the first window is destroyed. We should not end the font.
2.)
This code is to reach a better linement of the text when texthigh is greater.
Code: Select all | Expand
METHOD Destroy() CLASS TRBGroup
...
// ::oFont:End()
...
2.)
This code is to reach a better linement of the text when texthigh is greater.
Code: Select all | Expand
METHOD Paint() CLASS TRBGroup
...
nOldBk := SetBkMode( ::hDC, TRANSPARENT )
DrawText( ::hDC, ::cCaption,{ aRect[ 3 ] - ::oFont:nHeight * nLine * 1.3 , aRect[ 2 ] + 3, aRect[ 3 ] - 1, aRect[ 4 ] - 3 }, nStyle ) //NEW
SetBkMode( ::hDC, nOldBk )
...