As always, thanks for your help! As you'll see, the screen builder started things and then I copied the code to a .PRG and expanded from there.
* *********************************************************
* *
* * 11/06/14 WELCOME.PRG 13:48:10
* *
* *********************************************************
* *
* * Alpha Products, Inc.
* *
* * Copyright (c) 2014 Alpha Products, Inc.
* * 351 Irving Drive
* * Oxnard, CA 93030
* *
* * Description:
* * This program was automatically generated by GENSCRN.
* *
* *********************************************************
WAIT WINDOW "Just starting Welcome.prg. Press a key..."
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
SET DEFAULT TO F:\GESTBOOK
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
m.rborder = SET("READBORDER")
SET READBORDER ON
WAIT WINDOW "Just did SETs. Press a key..."
m.currarea = SELECT()
RELEASE lQuitting &&11/20/14RSM
PUBLIC lQuitting &&11/20/14RSM
lQuitting = .F. &&11/20/14RSM
* *********************************************************
* *
* * Windows Window definitions
* *
* *********************************************************
*
WAIT WINDOW "Environment has been setup. Press a key..."
IF NOT WEXIST("wwelcome") ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.PJX" ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.SCX" ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.MNX" ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.PRG" ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.FRX" ;
OR UPPER(WTITLE("WWELCOME")) == "WWELCOME.QPR"
DEFINE WINDOW wwelcome ;
AT 0.000, 0.000 ;
SIZE 38.846,150.800 ;
TITLE "Welcome to Alpha Products, Inc." ;
FONT "MS Sans Serif", 8 ;
FLOAT ;
NOCLOSE ;
MINIMIZE ;
SYSTEM
MOVE WINDOW wwelcome CENTER
ENDIF
WAIT WINDOW "Welcome window has been defined. Press a key..."
* *********************************************************
* *
* * WELCOME/Windows Screen Layout
* *
* *********************************************************
*
#REGION 1
IF WVISIBLE("wwelcome")
ACTIVATE WINDOW wwelcome SAME
ELSE
ACTIVATE WINDOW wwelcome NOSHOW
ENDIF
@ 1.846,54.200 SAY (LOCFILE("logo1.bmp","BMP|ICO", "Where is logo1?")) BITMAP ;
SIZE 4.692,39.400 ;
ISOMETRIC ;
STYLE "T"
@ 8.000,60.600 SAY "Welcome" ;
PICTURE "@I" ;
FONT "MS Sans Serif", 24 ;
STYLE "BT"
@ 11.308,28.800 SAY (LOCFILE("alphac~1.bmp","BMP|ICO", "Where is alphac~1?")) BITMAP ;
SIZE 14.846,90.000 ;
STYLE "T"
@ 28.000,42.000 SAY "Please Sign In Or Sign Out" ;
PICTURE "@I" ;
FONT "MS Sans Serif", 18 ;
STYLE "BT"
@ 32.500,40.200 GET cmdbutSignIn ;
PICTURE "@*HN Sign In" ;
SIZE 1.769,10.333,0.667 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID _47b0tl32h()
@ 32.500,90.200 GET cmdbutSignOut ;
PICTURE "@*HN Sign Out" ;
SIZE 1.769,10.333,0.667 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID _47b0tl32m()
@ 36.231,9.600 SAY "@Copyright Alpha Products, Inc., 2014"
@ 36.231,9.600 GET cmdbutExit ;
PICTURE "@*IHNT Exit" ;
SIZE 1.769,5.667,0.667 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID _47b0tl32r()
@ 36.231,96.000 SAY "Quality Products For Quality Customers, Worldwide"
@ 36.231,96.000 GET cmdbutMaint ;
PICTURE "@*IHN Maintenance" ;
SIZE 1.769,12.667,0.667 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID _47c0um43s()
IF NOT WVISIBLE("wwelcome")
ACTIVATE WINDOW wwelcome
ENDIF
WAIT WINDOW "Just before the master 'Read'. Press a key..."
*READ
READ VALID lQuitting &&11/20/14RSM
WAIT WINDOW "Just after the master 'Read'. Press a key..."
CLEAR READ ALL &11/20/14RSM
RELEASE WINDOW wwelcome
SELECT (m.currarea)
#REGION 0
SET READBORDER &rborder
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
*CLEAR &&11/20/14RSM
*QUIT &&11/20/14RSM
* *********************************************************
* *
* * _47B0TL32H cmdbutSignIn VALID
* *
* * Function Origin:
* *
* * From Platform: Windows
* * From Screen: WELCOME, Record Number: 5
* * Variable: cmdbutSignIn
* * Called By: VALID Clause
* * Object Type: Push Button
* * Snippet Number: 1
* *
* *********************************************************
*
FUNCTION _47b0tl32h && cmdbutSignIn VALID
#REGION 1
DO sign_in
* *********************************************************
* *
* * _47B0TL32M cmdbutSignOut VALID
* *
* * Function Origin:
* *
* * From Platform: Windows
* * From Screen: WELCOME, Record Number: 6
* * Variable: cmdbutSignOut
* * Called By: VALID Clause
* * Object Type: Push Button
* * Snippet Number: 2
* *
* *********************************************************
*
FUNCTION _47b0tl32m && cmdbutSignOut VALID
#REGION 1
DO sign_out
* *********************************************************
* *
* * _47B0TL32R cmdbutExit VALID
* *
* * Function Origin:
* *
* * From Platform: Windows
* * From Screen: WELCOME, Record Number: 7
* * Variable: cmdbutExit
* * Called By: VALID Clause
* * Object Type: Push Button
* * Snippet Number: 3
* *
* *********************************************************
*
FUNCTION _47b0tl32r && cmdbutExit VALID
#REGION 1
SET PATH TO
RELEASE WINDOW wwelcome
lQuitting = .T. &&11/20/14RSM
CLEAR READ ALL &&11/20/14RSM
CLEAR
*QUIT
* *********************************************************
* *
* * _47C0UM43S cmdbutMaint VALID
* *
* * Function Origin:
* *
* * From Platform: Windows
* * From Screen: WELCOME, Record Number: 8
* * Variable: cmdbutMaint
* * Called By: VALID Clause
* * Object Type: Push Button
* * Snippet Number: 4
* *
* *********************************************************
*
FUNCTION _47c0um43s && cmdbutMaint VALID
#REGION 1
DO wdbfmain