Can I use a Hand cursor on RibbonBar ? to have a compatibilidad with oBar?
Falconi Silvio
Can I use a Hand cursor on RibbonBar ? to have a compatibilidad with oBar?
Up
Yes, you can use a Hand cursor on
With
With
Since
And
So you can set it manually after creating the RibbonBar:
LOCAL oCursor
DEFINE CURSOR oCursor HAND
DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "Tab 01", "Tab 02" ;
HEIGHT 130 TOPMARGIN 25
// Set cursor on the ribbon bar itself
oRBar:oCursor := oCursor
// Set cursor on all ribbon buttons inside each group/tab
LOCAL n, m, p, oGroup, oButton
FOR n = 1 TO Len( oRBar:aDialogs )
IF oRBar:aDialogs[ n ]:aControls != NIL
FOR m = 1 TO Len( oRBar:aDialogs[ n ]:aControls )
oGroup := oRBar:aDialogs[ n ]:aControls[ m ]
oGroup:oCursor := oCursor
IF oGroup:aControls != NIL
FOR p = 1 TO Len( oGroup:aControls )
oGroup:aControls[ p ]:oCursor := oCursor
NEXT
ENDIF
NEXT
ENDIF
NEXTThis is the same pattern used in ButtonBar samples where cursors are applied via
The approach is functionally equivalent - it just requires iterating through the RibbonBar's dialog panels, groups, and buttons to set the cursor on each control individually, since