Code: Select all
#include "FiveWin.ch"
static oWnd
static oFont
static oFont2
function Main()
public oBru
DEFINE BRUSH oBru COLOR nrgb(0,0,30)
DEFINE FONT oFont NAME "MS Sans Serif" SIZE 0, -12
DEFINE FONT oFont2 NAME "MS Sans Serif" SIZE 0, -14 BOLD
DEFINE WINDOW oWnd TITLE 'PRUEBAFONT' BRUSH oBru MENU MenuPpal()
@ 18,10 BUTTON oBtn1 PROMPT 'Fonts Publicas' OF oWnd;
ACTION DialogoPublic(oWnd);
SIZE 150,40; // Ancho, Alto
UPDATE
ACTIVATE WINDOW oWnd MAXIMIZED
oFont:End()
return nil
function DialogoPublic(oPadre)
local oDlg, oBtn1
local oTbr, aRolloCalc:={1,2,3,4,5,6}
DEFINE DIALOG oDlg OF oPadre FROM 1,10 TO 25,80;
@ 1, 1 SAY "Pruebas con Fonts" FONT oFont2;
COLOR nrgb(0,0,170),nrgb(220,220,220);
SIZE 150, 19 ;
OF oDlg
@ 3, 3 LISTBOX oTbr FIELDS ;
aRolloCalc;
HEAD 'valor' OF oDlg ;
FONT oFont2 COLOR nrgb(0,0,0),nrgb(255,255,200) ;
UPDATE
@ 3,30 BUTTON oBtn1 PROMPT 'Salir' OF oDlg;
ACTION oDlg:end();
SIZE 25,20 ;
UPDATE
ACTIVATE DIALOG oDlg CENTERED
return nil
static function MenuPpal()
local oMenu
MENU oMenu
MENUITEM '&Publicas' ACTION DialogoPublic(oWnd) MESSAGE 'Opción con variables publicas'
MENUITEM '&Salida' ACTION oWnd:end() MESSAGE 'Salida del Programa'
ENDMENU
return oMenu