Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : PHREAD.ZIP
Filename : TEST.PRG
#include "inkey.ch"
#translate LOCVARBLK() => ;
{ |xxxpthxxx| if ( xxxpthxxx == NIL, , := xxxpthxxx ) }
static gobj
func test
local dummy1 := 'Cogito ergo sum'
local dummy2 := 'I rationalize; therefore, I am.'
local dummy3 := '385941995'
local dummy4 := 'Dummy4'
local dummy5 := 'Dummy5'
local dummy6 := TRUE
local glist := { }
local Bblock := { |obj| ButtonReader ( obj ) }
MOUSE_INIT ( )
scroll ( )
gobj := getnew ( 1, 10, LOCVARBLK(dummy1), 'dummy1' )
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:display ( )
AADD ( glist, gobj )
gobj := getnew ( 2, 10, LOCVARBLK(dummy2), 'dummy2' )
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:display ( )
AADD ( glist, gobj )
gobj := getnew ( 3, 10, LOCVARBLK(dummy3), 'dummy3' )
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:picture := '@KR 999-99-9999'
gobj:preBlock := { || FALSE }
gobj:display ( )
AADD ( glist, gobj )
gobj := getnew ( 4, 10, LOCVARBLK(dummy4), 'dummy4' )
gobj:reader := { |obj| ButtonReader ( obj ) }
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:cargo := { || TwoTone ( ) }
gobj:display ( )
AADD ( glist, gobj )
SETKEY ( K_ALT_J, { || GetGotoFld ( 4 ) } )
gobj := getnew ( 5, 10, LOCVARBLK(dummy5), 'dummy5' )
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:display ( )
AADD ( glist, gobj )
gobj := getnew ( 6, 10, LOCVARBLK(dummy6), 'dummy6' )
gobj:colorSpec := 'W+/BG,BG/W+'
gobj:reader := { |obj| YNReader ( obj ) }
gobj:display ( )
AADD ( glist, gobj )
Set ( _SET_WRAP, TRUE )
PHRead ( glist, 3, ;
{ { K_ALT_Q, 5 }, ;
{ K_ALT_W, 'dummy2' }, ;
{ K_ALT_E, { || TwoTone () } } } )
return 0
//
func twotone
tone ( 100 )
tone ( 500 )
return NIL
//
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/