home *** CD-ROM | disk | FTP | other *** search
- /*
- File: GRUMPM.CH
- System: GRUMPFISH LIBRARY
- Author: Greg Lief
- Copyright (c) 1988-90, Greg Lief
- Header file to be used in conjunction with Grumpfish Library's LITE_MENU2()
- This provides new definitions for Clipper's @..PROMPT and MENU TO commands.
- */
-
-
- #xcommand @ <row>, <col> PROMPT <prompt> [MESSAGE <msg>] [WHEN <when>] ;
- [MESSAGECOLOR <msgcolor>] [ACTION <action>] ;
- [TRIGGERCOLOR <trigcolor>] ;
- => ;
- if(menulist == NIL, menulist := {}, ) ; ;
- setpos(<row>, <col>) ; ;
- aadd(menulist, { row(), col(), <prompt>, <msg>, <msgcolor>, ;
- <{when}>, <{action}>, <trigcolor> } )
-
-
- #xcommand MENU TO <v> [COLOR <color>] [INITIAL <initial>] ;
- [CLOCK] [TIMEOUT <timeout>] ;
- [PULLDOWN] ;
- [EXITEVENT <exitevent>] ;
- [TRIGGERCOLOR <trigcolor>] ;
- => ;
- <v> := lite_menu2(menulist, <color>, <initial>, #<v>, ;
- {|| gfclock()}, <timeout>, <{exitevent}>,;
- <trigcolor>, chr(27)+chr(19)+chr(13), ;
- chr(27)+chr(4)+chr(13) ) ;
- ; menulist := {}
-
-
-
- #xcommand MENU TO <v> [COLOR <color>] [INITIAL <initial>] ;
- [CLOCK] [TIMEOUT <timeout>] ;
- [LEFT <left>] [RIGHT <right>] ;
- [EXITEVENT <exitevent>] ;
- [TRIGGERCOLOR <trigcolor>] ;
- => ;
- <v> := lite_menu2(menulist, <color>, <initial>, #<v>, ;
- {|| gfclock()}, <timeout>, <{exitevent}>,;
- <trigcolor>, <left>, <right>) ;
- ; menulist := {}
-
-
- #xcommand MENU TO <v> [COLOR <color>] [INITIAL <initial>] ;
- [EVENT <event>] [TIMEOUT <timeout>] ;
- [PULLDOWN] ;
- [EXITEVENT <exitevent>] ;
- [TRIGGERCOLOR <trigcolor>] ;
- => ;
- <v> := lite_menu2(menulist, <color>, <initial>, #<v>, ;
- <{event}>, <timeout>, <{exitevent}>, ;
- <trigcolor>, chr(27)+chr(19)+chr(13), ;
- chr(27)+chr(4)+chr(13) ) ;
- ; menulist := {}
-
-
- #xcommand MENU TO <v> [COLOR <color>] [INITIAL <initial>] ;
- [EVENT <event>] [TIMEOUT <timeout>] ;
- [LEFT <left>] [RIGHT <right>] ;
- [EXITEVENT <exitevent>] ;
- [TRIGGERCOLOR <trigcolor>] ;
- => ;
- <v> := lite_menu2(menulist, <color>, <initial>, #<v>, ;
- <{event}>, <timeout>, <{exitevent}>, ;
- <trigcolor>, <left>, <right>) ;
- ; menulist := {}
-
-
-
- * eof: GRUMPM.CH
-