- Code: Select all Expand view RUN
#include "FiveWin.ch"
#include "Ribbon.ch"
function Main()
local oDlg, oPopup, oBtn
DEFINE DIALOG oDlg RESOURCE "Test"
REDEFINE RBBTN oBtn ID 100 OF oDlg POPUP ;
MENU BuildPopup() ROUND ACTION MsgInfo( "click" ) ;
PROMPT "Class TRBtn" BITMAP "..\bitmaps\16x16\fivetech.bmp" LEFT
ACTIVATE DIALOG oDlg CENTERED
FreeResources()
SysRefresh()
DbCloseAll()
RELEASE All
Hb_GCAll( .T. )
CLEAR MEMORY
CheckRes()
PostQuitMessage( 0 )
__QUIT()
return nil
function BuildPopup()
local oPopup
MENU oPopup POPUP 2007
MENUITEM "One" ACTION MsgInfo( "One" ) FILE "..\bitmaps\16x16\fivetech.bmp"
MENUITEM "Two" ACTION MsgInfo( "Two" ) FILE "..\bitmaps\16x16\fivetech.bmp"
SEPARATOR
MENUITEM "Three" ACTION MsgInfo( "Three" ) FILE "..\bitmaps\16x16\fivetech.bmp"
ENDMENU
return oPopup