Hi Pritpal,

SetMode( nRows, nCols )   =>   SetMode( pGT, nRows, nCols )  =>
pGT == ( hb_pcount()==3 ? hb_parGT( 1 ) : hb_DetectCurrentGT() )

And alike for all other GT commands.

We may also need to adjust Tbrowse(), Memoedit(), ReadModal() passing them
pGT as a parameter.

This would introduce incompatibility
for these functions, which we try to
avoid, so I think we should rather use
something similar to rddSetDefault()
but for the GTs, like:

hb_gtSetDefault() or hb_gtSelect()

This way we're not hurting any existing
calling interfaces. Also, I'd expect
an application programm to not require using
a different GT for consecutive display commands,
so this may also better fit real-life usage.

cOldGT := hb_gtSelect( "GTWIN" )
DispOutAt( 10, 10, "hello1" )
DispOutAt( 11, 10, "hello2" )
...
hb_gtSelect( "GTWVG" )
DispOutAt( 10, 10, "hello3" )
DispOutAt( 11, 10, "hello4" )
...
hb_gtSelect( cOldGT )

Brgds,
Viktor

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to