- Code: Select all Expand view
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg , omenutry
SET _3DLOOK ON
MENU omenutry POPUP 2007
MENUITEM "first menu"
MENUITEM "second menu"
ENDMENU
DEFINE DIALOG oDlg RESOURCE "Main" COLOR "N/B"
REDEFINE BTNBMP ID 110 OF oDlg ;
RESOURCE "Yes" NOBORDER ACTION oDlg:End()
oDlg:aControls[ 1 ]:lTransparent = .t.
REDEFINE BTNBMP ID 120 OF oDlg ;
RESOURCE "No"
oDlg:aControls[ 2 ]:oPopup := omenutry
REDEFINE BTNBMP ID 130 OF oDlg ;
RESOURCE "Cancel"
ACTIVATE DIALOG oDlg CENTERED
return nil
THE RESOURCES FILE IS TESTBTNB.RC ( ON SAMPLES FOLDER OF FWH)
it make error on the secondo button when I click to open the menu popup
NCMOUSEMOVE
at TBTNBMP:LBUTTONUP(0)
How I can resolve it ?