metro2.prg
- Code: Select all Expand view
- #include "FiveWin.ch"
#include "xbrowse.ch"
function Main()
local oWnd, oFont, oBrw, oFont2
local aItems := { "Personalize", "Users", "Wireless" }
DEFINE FONT oFont NAME "Segoe UI Light" SIZE 0, -52
DEFINE FONT oFont2 NAME "Segoe UI Light" SIZE 0, -32
DEFINE WINDOW oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;
COLOR RGB( 170, 170, 170 ), CLR_WHITE
@ 2, 10 SAY "Control Panel" FONT oFont SIZE 300, 100
@ 2, 80 SAY "Personalize" FONT oFont SIZE 300, 100
@ 10, 7 XBROWSE oBrw ARRAY aItems COLSIZES 800 CELL ;
FONT oFont2 SIZE 400, 650 NOBORDER OF oWnd
oBrw:nDataLines = 2
oBrw:lRecordSelector = .F.
oBrw:lHeader = .F.
oBrw:lHScroll = .F.
oBrw:lVScroll = .F.
oBrw:nStretchCol = 1
oBrw:bClrStd = { || { RGB( 170, 170, 170 ), CLR_WHITE } }
oBrw:bClrSelFocus = { || { CLR_WHITE, RGB( 34, 177, 76 ) } }
oBrw:SetColor( "B/W*" )
oBrw:CreateFromCode()
oBrw:SetFocus()
ACTIVATE WINDOW oWNd MAXIMIZED ;
ON CLICK oWnd:End()
return nil