I changed the method in TRibbonBar and added a class TXPanel.
But I must do something wrong. If I press the ALT key I don’t see the panel. Would you be so kind to post a working sample.
Thanks in advance
Otto
Otto,
We are working on a Method KeybMode() that first of all may show those little buttons with the letters.
This is still a work in progress but here you can review it:
Code: Select all Expand view
METHOD KeybMode() CLASS TRibbonBar
local oPanel, oBtn
oPanel = TXPanel():New( 0, 0, ::nHeight(), ::nWidth(), ::oWnd )
SetWindowLong( oPanel:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( ::hWnd, GWL_EXSTYLE ), WS_EX_TRANSPARENT ) )
BringWindowToTop( oPanel:hWnd )
@ 20, 20 BTNBMP oBtn SIZE 20, 20 OF oPanel 2007
return nil
CLASS TXPanel FROM TPanel
METHOD Paint() VIRTUAL
ENDCLASS
The idea is to place a transparent Panel on top of the Ribbon, so we can place some BtnBmps (or standard Buttons with accelerators) and the user may select the accelerator for each little button.