* src/pp/ppcore.c
* src/vm/macro.c
* src/vm/runner.c
* src/vm/codebloc.c
* src/vm/garbage.c
* src/vm/hvm.c
* src/vm/maindllp.c
* src/vm/fm.c
* src/vm/extrap.c
* src/vm/memvars.c
* src/common/expropt1.c
* src/common/expropt2.c
* src/common/hbarch.c
* src/common/hbmem.c
* src/nortl/nortl.c
* src/rtl/gtdos/gtdos.c
* src/rtl/gtwin/gtwin.c
* src/rtl/gtxwc/gtxwc.h
* src/rtl/gtxwc/gtxwc.c
* src/rtl/gtcrs/gtcrs.c
* src/rtl/gtstd/gtstd.c
* src/rtl/gttrm/gttrm.c
* src/rtl/gtcgi/gtcgi.c
* src/rtl/gtapi.c
* src/rtl/gtos2/gtos2.c
* src/rtl/hbgtcore.c
* src/rtl/gtsln/gtsln.c
* src/rtl/gtsln/kbsln.c
* src/rtl/gtsln/gtsln.h
* src/rtl/gtpca/gtpca.c
* src/rtl/gt_tpl/gt_tpl.c
* src/rtl/gtwvt/gtwvt.h
* src/rtl/gtwvt/gtwvt.c
* src/rdd/dbfntx/dbfntx1.c
* src/rdd/dbsql.c
* src/rdd/hbdbsort.c
* src/rdd/workarea.c
* src/rdd/sdf1.c
* src/rdd/dbfnsx/dbfnsx1.c
* src/rdd/dbfcdx/dbfcdx1.c
* src/rdd/delim1.c
* src/rdd/dbf1.c
* src/rdd/hsx/hsx.c
* src/rdd/usrrdd/usrrdd.c
* src/rdd/dbffpt/dbffpt1.c
* src/rdd/hbsix/sxsem.c
* src/rdd/hbsix/sxcompr.c
* src/compiler/ppcomp.c
* src/compiler/hbmain.c
* src/compiler/hbfix.c
* src/compiler/hbdbginf.c
* src/compiler/hbpcode.c
* src/compiler/genhrb.c
* src/compiler/hbdead.c
* src/compiler/genobj32.c
* src/compiler/genc.c
* src/compiler/hbopt.c
* src/compiler/gencc.c
* src/compiler/hbcmplib.c
* src/compiler/hblbl.c
* src/compiler/harbour.yyc
* src/compiler/harbour.y
* src/compiler/harbour.yyh
* tests/bldtest/bldtest.c
* tests/tstgtapi.c
* include/hbpp.h
* include/hbrdddbf.h
* include/hbvmpub.h
* include/hbrddnsx.h
* include/hbgtcore.h
* include/hbxvm.h
* include/hbdefs.h
* include/hbmacro.h
* include/hbtypes.h
* include/hbrddsdf.h
* include/hbapi.h
* include/hbrddntx.h
* include/hbvm.h
* include/hbcomp.h
* include/hbapirdd.h
* include/hbcompdf.h
* include/hbrdddel.h
* include/hbexpra.c
* include/hbexprop.h
* include/hbdbf.h
* include/hbdbsort.h
* include/hbapigt.h
* include/hbrddcdx.h
* include/hbrddfpt.h
* include/hbexprb.c
* contrib/gtalleg/gtalleg.c
* contrib/hbct/ctwin.c
* contrib/hbct/ascpos.c
* contrib/hbct/screen1.c
* contrib/hbct/ctcrypt.c
* contrib/xhb/hbxml.c
* contrib/xhb/xhbis.c
* contrib/xhb/fparse.c
* contrib/xhb/xhbat.c
* contrib/xhb/xhbcopyf.c
* contrib/xhb/cstructc.c
* contrib/hbqt/gtqtc/gtqtc.cpp
* contrib/hbqt/gtqtc/gtqtc.h
* contrib/xpp/philesx.c
* contrib/hbnf/ftshadow.c
* contrib/hbnf/ftattr.c
* contrib/hbnetio/netiocli.c
* contrib/hbnetio/netiosrv.c
* contrib/rddsql/sddmy/mysqldd.c
* contrib/rddsql/sddpg/pgsqldd.c
* contrib/rddsql/sddfb/fbirddd.c
* contrib/rddsql/sddodbc/odbcdd.c
* contrib/rddsql/hbrddsql.h
* contrib/rddsql/sqlbase.c
* contrib/rddsql/sqlmix.c
* contrib/gtwvg/gtwvg.c
* contrib/gtwvg/wvggui.c
* contrib/gtwvg/wvgcore.c
* contrib/gtwvg/wvgwing.c
* contrib/rddads/adsx.c
* contrib/rddads/rddads.h
* contrib/rddads/ads1.c
* contrib/hbtip/utils.c
* contrib/hbwin/win_regc.c
* contrib/hbwin/win_prn2.c
* contrib/hbbmcdx/bmdbfcdx.c
* contrib/hbbmcdx/hbbmcdx.h
* contrib/hbbtree/hb_btree.c
* BYTE -> HB_BYTE except where BYTE was used in OS-specific context.
* Some formatting.
; I didn't realign structure definitions in hbrdd*.h yet.
* contrib/hbwin/win_regc.c
* Minor type cleanup.
* src/rtl/gt_tpl/gt_tpl.c
* BYTE -> int for color.
* examples/hbapollo/apollo.c
% Deleted MAX_STR_LEN.
77 lines
1.6 KiB
C
77 lines
1.6 KiB
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#include "hbapigt.h"
|
|
|
|
void main( void )
|
|
{
|
|
HB_BYTE * test = "Testing GT API Functions";
|
|
HB_BYTE * test2 = "This message wraps!";
|
|
int iRow, iCol;
|
|
|
|
/* NOTE: always have to initialze video subsystem */
|
|
hb_gtInit();
|
|
|
|
/* save screen (doesn't work under DOS) */
|
|
/*
|
|
HB_BYTE * scr;
|
|
HB_SIZE size;
|
|
|
|
hb_gtRectSize( 1, 1, hb_gtMaxRow(), hb_gtMaxCol(), &size );
|
|
scr = ( HB_BYTE * ) hb_xgrab( size );
|
|
hb_gtSave( 1, 1, hb_gtMaxRow() - 1, hb_gtMaxCol() - 1, scr );
|
|
*/
|
|
|
|
/* writing text */
|
|
hb_gtSetPos( 3, 3 );
|
|
hb_gtWrite( test, strlen( test ) );
|
|
hb_gtSetPos( 12, 42 );
|
|
hb_gtWrite( test, strlen( test ) );
|
|
|
|
/* wrapping text */
|
|
hb_gtSetPos( 7, 70 );
|
|
hb_gtWrite( test2, strlen( test2 ) );
|
|
|
|
/* writing color text */
|
|
hb_gtSetColorStr( "W+/B, B/W" );
|
|
hb_gtColorSelect( _CLR_STANDARD );
|
|
hb_gtWrite( "Enhanced color (B/W)", 20 );
|
|
hb_gtSetPos( 22, 62 );
|
|
hb_gtColorSelect( _CLR_ENHANCED );
|
|
hb_gtWrite( "Standard Color (W+/B)", 21 );
|
|
|
|
/* boxes */
|
|
hb_gtBoxS( 10, 10, 20, 20 );
|
|
hb_gtBoxD( 10, 40, 15, 45 );
|
|
|
|
/* cursor functions */
|
|
hb_gtSetPos( 12, 1 );
|
|
|
|
/* none */
|
|
hb_gtSetCursor( _SC_NONE );
|
|
getch();
|
|
|
|
/* underline */
|
|
hb_gtSetCursor( _SC_NORMAL );
|
|
getch();
|
|
|
|
/* lower half block */
|
|
hb_gtSetCursor( _SC_INSERT );
|
|
getch();
|
|
|
|
/* full block */
|
|
hb_gtSetCursor( _SC_SPECIAL1 );
|
|
getch();
|
|
|
|
/* upper half block */
|
|
hb_gtSetCursor( _SC_SPECIAL2 );
|
|
getch();
|
|
|
|
/* restore screen (doesn't work under DOS) */
|
|
/*
|
|
hb_gtRest( 1, 1, hb_gtMaxRow() - 1, hb_gtMaxCol() - 1, scr );
|
|
hb_xfree( scr );
|
|
*/
|
|
}
|