home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
chip
/
tvgencpp
/
demo3cpp.exe
/
TEMPLATE
/
STATLINE.STF
< prev
next >
Wrap
Text File
|
1994-11-18
|
2KB
|
77 lines
\ ********************************************************
\ Standard StatusLine template file for TVGen 3.0
\ (c) 1994 BOCIAN Software
\ ********************************************************
\
@ASSIGN __STATUSFILE %_OUTFILE%.%_EXT%
@IF!APP
@DEFINEFILE 1 %_OUTFILE%.%_EXT%
@FILE 1
@ASKFOR _APPTYPE 'TMyApp' 'Application class identifier'
@ENDIF (if!app)
@FIRSTITEM
@ASSIGN __COUNTER 1
TStatusLine *%_APPTYPE%::initStatusLine(TRect r)
{
r.a.y=r.b.y-1;
@LOOP
@IFEQUAL %_ITEMTYPE% DEF
@IF!EQUAL %__COUNTER% 1
;
@ENDIF
TStatusDef &def%__COUNTER% = *new TStatusDef(%_MIN%,%_MAX%)+
@INC __COUNTER
@ASSIGN __FIRSTFLAG YES
@ELSE
@IFEQUAL %_ITEMTYPE% KEY
@IFEQUAL %__FIRSTFLAG% YES
@ASSIGN __FIRSTFLAG NO
@ELSE
+
@ENDIF
@NOCR *new TStatusItem("%_TEXT%",%_HOTKEY%,%_COMMAND%)
@ELSE
@EXIT
@ENDIF
@ENDIF
@NEXTITEM
@ENDLOOP
;
@DEC __COUNTER
@ASSIGN __LOOPCOUNTER 1
@IFAPP
return (new THintStatusLine(r,
@ELSE
return (new TStatusLine(r,
@ENDIF
@LOOP
@IFEQUAL %__LOOPCOUNTER% %__COUNTER%
@IFEQUAL %__LOOPCOUNTER% 1
@NOCR def%__LOOPCOUNTER%
@ELSE
@NOCR + def%__LOOPCOUNTER%
@ENDIF
@IFAPP
, Hints));
@ELSE
));
@ENDIF
@EXIT
@ELSE
@IFEQUAL %__LOOPCOUNTER% 1
def%__LOOPCOUNTER%
@ELSE
+ def%__LOOPCOUNTER%
@ENDIF
@INC __LOOPCOUNTER
@ENDIF
@ENDLOOP
}
@IF!APP
// ************ Generated by TVGen 3.0 **************
@CLOSEFILE 1
@ENDIF