¿ Se puede poner un SYSMENU en un dialogo (DIALOG) ?
Gracias por las respuestas...
ACTIVATE DIALOG oDlg ON INIT BuildSysMenu( oDlg )
...
function BuildSysMenu( oDlg )
local oSysMenu
REDEFINE SYSMENU oSysMenu OF oDlg
MENUITEM "&Hey! We are here" ACTION MsgInfo( "Yes, we are!" )
MENUITEM FILE "..\bitmaps\Ico.bmp" ;
ACTION MsgInfo( "FiveWin, Clipper + xBase + OOPS" )
MENUITEM "&Reset..." ACTION oSysMenu:Reset()
ENDMENU
return nil
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg STYLE WS_SYSMENU
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT BuildSysMenu( oDlg )
return nil
function BuildSysMenu( oDlg )
local oSysMenu
REDEFINE SYSMENU oSysMenu OF oDlg
MENUITEM "&Hey! We are here" ACTION MsgInfo( "Yes, we are!" )
MENUITEM FILE "..\bitmaps\Ico.bmp" ;
ACTION MsgInfo( "FiveWin, Clipper + xBase + OOPS" )
MENUITEM "&Reset..." ACTION oSysMenu:Reset()
ENDMENU
return nil
#include "FiveWin.ch"
function main()
local oDlg
DEFINE DIALOG oDlg NAME "DIALOGO"
// ...
ACTIVATE DIALOG oDlg CENTER ON INIT BuildSysMenu( oDlg )
return nil
function BuildSysMenu( oDlg )
local oSysMenu
REDEFINE SYSMENU oSysMenu OF oDlg
MENUITEM "&Hey! We are here" ACTION MsgInfo( "Yes, we are!" )
MENUITEM FILE "..\bitmaps\Ico.bmp" ;
ACTION MsgInfo( "FiveWin, Clipper + xBase + OOPS" )
MENUITEM "&Reset..." ACTION oSysMenu:Reset()
ENDMENU
return nil
/* Fichero RC
DIALOGO DIALOG 50, 50, 160, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
CAPTION "Prueba..."
FONT 8, "MS Sans Serif"
{
//...
}
*/
Antonio Linares wrote:Quita el estilo DS_MODALFRAME en tu RC y funcionando
#include "FiveWin.ch"
function Main()
local oDlg, oIco
DEFINE ICON oIco FILE "..\icons\fivewin.ico"
DEFINE DIALOG oDlg NAME "DIALOGO" ICON oIco
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT BuildSysMenu( oDlg )
return nil
function BuildSysMenu( oDlg )
local oSysMenu
REDEFINE SYSMENU oSysMenu OF oDlg
MENUITEM "&Hey! We are here" ACTION MsgInfo( "Yes, we are!" )
MENUITEM FILE "..\bitmaps\Ico.bmp" ;
ACTION MsgInfo( "FiveWin, Clipper + xBase + OOPS" )
MENUITEM "&Reset..." ACTION oSysMenu:Reset()
ENDMENU
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 39 guests