#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oLbx, nItem
DEFINE DIALOG oDlg
@ 0, 0 LISTBOX oLbx VAR nItem
oLbx:bRClicked = { || MyPopup( oLbx ) }
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
STATIC FUNCTION MYPOPUP( oLbx )
LOCAL oMenu
MENU oMenu POPUP
MENUITEM "Test"
ENDMENU
ACTIVATE MENU oMenu OF oLbx
RETURN NIL
METHOD DrawItem( nIdCtl, nPStruct ) CLASS TListBox
return If( ::lOwnerDraw,;
LbxDrawItem( nPStruct, ::aBitmaps, ::aItems, ::nBmpWidth, ::bDrawItem ),;
Super:DrawItem( nIdCtl, nPStruct ) )
Antonio Linares wrote:Thats a listbox bug. This is the fix:
- Code: Select all Expand view RUN
METHOD DrawItem( nIdCtl, nPStruct ) CLASS TListBox
return If( ::lOwnerDraw,;
LbxDrawItem( nPStruct, ::aBitmaps, ::aItems, ::nBmpWidth, ::bDrawItem ),;
Super:DrawItem( nIdCtl, nPStruct ) )
Many thanks for your feedback
Antonio Linares wrote:Enrico,
> It is not possible to set preview buttonbar and statusbar to 2007 look.
From rpreview.prg we could check if the main bar is ::l2007 and then build a buttonbar 2007 instead of a toolbar.
Is that fine ?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 55 guests