Files
harbour-core/tests/checkbox.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

33 lines
849 B
Plaintext

PROCEDURE Main()
LOCAL GetList := {}
LOCAL cItem := "Windows"
LOCAL lx := .F.
LOCAL ly := .F.
LOCAL aItems[ 3 ]
aItems[ 1 ] := RadioButto( 3, 3, "&Windows" )
aItems[ 2 ] := RadioButto( 4, 3, "&Linux" )
aItems[ 3 ] := RadioButto( 5, 3, "&OS X" )
CLS
SetColor( "W/B+,R/B,G+/R,B+/R+,BG/N+,W/BG,RB/BG" )
@ 2, 2, 6, 40 GET cItem RADIOGROUP aItems COLOR "W/B+,R/B,G/B+" MESSAGE "Select your OS"
@ 8, 3 SAY "Married"
@ 8, 12 GET lx CHECKBOX COLOR "W/B+,W/B,W+/R,W/G+" MESSAGE "Are you married?"
@ 9, 3 SAY "Singer"
@ 9, 12 GET ly CHECKBOX COLOR "W/B+,W/B,W+/R,W/G+" MESSAGE "Are you a singer?"
READ MSG AT MaxRow(), 0, MaxCol() MSG COLOR "W/B+"
? "Is the person married:", iif( lx, "Yes", "No" )
? "Is the person a singer:", iif( ly, "Yes", "No" )
? "Your OS is", cItem
RETURN