Files
harbour-core/contrib/hbnf/tests/dispmsg.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

67 lines
1.4 KiB
Plaintext

#require "hbnf"
#include "inkey.ch"
#include "setcurs.ch"
PROCEDURE Main()
LOCAL cDosScrn
LOCAL nDosRow
LOCAL nDosCol
LOCAL lColor
LOCAL nMaxRow
LOCAL nType
// color variables
LOCAL cNormH, cNormN
LOCAL cWindH, cWindN
LOCAL cErrH, cErrN
// main routine starts here
SET SCOREBOARD OFF
lColor := .T.
cNormH := iif( lColor, "W+/BG", "W+/N" )
cNormN := iif( lColor, "N/BG", "W/N" )
cWindH := iif( lColor, "W+/B", "W+/N" )
cWindN := iif( lColor, "W/B", "W/N" )
cErrH := iif( lColor, "W+/R", "W+/N" )
cErrN := iif( lColor, "W/R", "W/N" )
cDosScrn := SaveScreen()
nDosRow := Row()
nDosCol := Col()
SetColor( "W/N" )
CLS
nMaxRow := MaxRow()
SetBlink( .F. )
SetColor( cWindN + "*" )
CLS
SetColor( cNormN )
ft_DispMsg( { { "[Esc] To Abort Changes [PgDn] To Continue" }, { cNormN, , cNormH } }, , nMaxRow - 5 )
ft_DispMsg( { { "[E]dit [P]rint [D]elete", ;
"[Esc]ape [Alt-Q]" }, ;
{ cErrN, cErrN, cErrH } }, , 2 )
nType := ft_DispMsg( { { ;
"Create Or Edit [I]nvoice", ;
"Create Or Edit [O]rder", ;
"Create Or Edit [B]ack Order", ;
"Create Or Edit [Q]uote", ;
"[Esc] To Exit" }, ;
{ cWindN, , , , , cWindH } }, "BIOQ" + hb_BChar( K_ESC ) )
HB_SYMBOL_UNUSED( nType )
SetColor( "W/N" )
SetCursor( SC_NORMAL )
SetBlink( .T. )
RestScreen( , , , , cDosScrn )
SetPos( nDosRow, nDosCol )
RETURN