Hello,
I compile ribbon sample with 2010 style but does not work fine. Please, see picture.
Uploaded with ImageShack.us
Thank you.
METHOD AddGroup( nWidth, cCaption, nDialogs, bAction, cBitmap, aGrad )
local oGroup, nCol := 1, n
local hBmp
DEFAULT nWidth:= 150, cCaption := "", nDialogs := 150
if nDialogs > Len( ::aDialogs ) .or. nDialogs < 1
MsgStop( "Non defined dialogs", "Fivewin: Ribbonbar Support" )
return nil
endif
if !empty( ::aDialogs[ nDialogs ]:aControls )
for n= 1 to Len( ::aDialogs[ nDialogs ]:aControls )
if ::aDialogs[ nDialogs ]:aControls[ n ]:ClassName() == "TRBGROUP"
nCol += ::aDialogs[ nDialogs ]:aControls[ n ]:nWidth + ::nGroupSeparation
endif
next
endif
if aGrad != NIL
hBmp = GradientBmp( Self, ::nRight - ::nRightMargin - 3, ::nBottom - ::nTopMargin + 1, aGrad )
else
hBmp = ::hBmpBrushEx
endif
oGroup := TRBGroup():New( ::aDialogs[ nDialogs ], 1, nCol,;
::aDialogs[ nDialogs ]:nHeight - 3, nWidth, ;
Len( ::aControls )+1, cCaption, bAction , ::nClrBoxIn, ::nClrBoxOut,,;
CreatePatternBrush( hBmp ), , , , Self, ,cBitmap )
if aGrad != NIL
DeleteObject( hBmp )
endif
return oGroup
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: SantaCroya and 46 guests