- Code: Select all Expand view
#include 'FIVEWIN.CH'
static oWinMain := nil
PROCEDURE Main()
local oFont, oDlg , oBut
define font oFont name 'MS Sans Serif' size 6,15
define window oWinMain from 5,5 to 30,85 title "TestBtns"// menu BuildMenu()
@ 3,10 BUTTON oBut PROMPT "Button 01" + CRLF + "Test" size 60,50 font oFont OF oWinMain ACTION MsgInfo("Button 01 Test on oWinMain")
oBut:nStyle := NOR( oBut:nStyle, 8192 )
@ 3,40 BUTTON "Button 02 Test" size 100,50 font oFont OF oWinMain ACTION MsgInfo("Button 02 Test on oWinMain")
set message of oWinMain to "TestBtns" date time noinset
activate window oWinMain maximized
return