Fernando,
Aqui tienes un ejemplo completo
test.prg
#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( oBtn ) ROUND ACTION MsgInfo( "click" ) ;
聽 聽 聽 PROMPT "Class TRBtn" BITMAP "..\bitmaps\16x16\fivetech.bmp" LEFT
聽 聽ACTIVATE DIALOG oDlg CENTERED
return nil
function BuildPopup( oBtn )
聽 聽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
test.rc
#include <windows.h>
#ifdef __FLAT__
聽 聽1 24 "WinXP/WindowsXP.Manifest"
#endif
#ifdef __64__
聽 聽1 24 "WinXP/WindowsXP.Manifest64"
#endif
Test DIALOG 17, 36, 185, 147
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Test" FONT 8, "MS Sans Serif"
{ 聽
聽 聽CONTROL "Test", 100, "TRBTN", WS_CHILD | WS_VISIBLE, 10, 15, 80, 20
聽 聽DEFPUSHBUTTON "OK", 1, 67, 128, 50, 14
}

Al pasar el rat贸n por encima de 茅l:
