rdrunner40
MIS
Hi there
I have created a stand alone application as an exe and i have it as a top level form with the main foxpro window hidden
In the main program i have the following lines....
_SCREEN.Caption = 'Generic - Application'
_SCREEN.Closable =.F.
_SCREEN.WindowState = 2
SET SYSMENU TO && disables the main Visual FoxPro menu bar.
DO FORM switchboard
READ EVENTS
In the init of the form called Switchboard i just have the normal lines as below.....
** CLOSE DATABASES
SET EXCLUSIVE ON
SET DATE BRITISH
SET CENTURY ON
SET SAFETY OFF
SET TALK OFF
SET MULTILOCKS ON
SET EXACT ON
SET NEAR OFF
SET DELETED ON
**-- This loads the menu
do PostalMenu.mpr with this
gc_user = UPPER(ALLTRIM(RIGHT(SYS(0),LEN(ALLTRIM(SYS(0)))-AT('#',SYS(0)))))
gc_pcname = UPPER(LEFT(SYS(0),AT('#',SYS(0))-1))
thisform.pCDetails.Value = gc_pcname
thisform.userDetails.Value = gc_user
THISFORM.BACKCOLOR = RGB(220 ,225,255)
Application.Visible = .F.
thisform.Userdetails.SetFocus()
With this i get the form showing but there is no way that i can get the form called Switchboard to have the focus. The title bar remains grey - whcih means the form is not active -
What am i missing .....
I have been trying allsorts to get this to work
Rdrunner
I have created a stand alone application as an exe and i have it as a top level form with the main foxpro window hidden
In the main program i have the following lines....
_SCREEN.Caption = 'Generic - Application'
_SCREEN.Closable =.F.
_SCREEN.WindowState = 2
SET SYSMENU TO && disables the main Visual FoxPro menu bar.
DO FORM switchboard
READ EVENTS
In the init of the form called Switchboard i just have the normal lines as below.....
** CLOSE DATABASES
SET EXCLUSIVE ON
SET DATE BRITISH
SET CENTURY ON
SET SAFETY OFF
SET TALK OFF
SET MULTILOCKS ON
SET EXACT ON
SET NEAR OFF
SET DELETED ON
**-- This loads the menu
do PostalMenu.mpr with this
gc_user = UPPER(ALLTRIM(RIGHT(SYS(0),LEN(ALLTRIM(SYS(0)))-AT('#',SYS(0)))))
gc_pcname = UPPER(LEFT(SYS(0),AT('#',SYS(0))-1))
thisform.pCDetails.Value = gc_pcname
thisform.userDetails.Value = gc_user
THISFORM.BACKCOLOR = RGB(220 ,225,255)
Application.Visible = .F.
thisform.Userdetails.SetFocus()
With this i get the form showing but there is no way that i can get the form called Switchboard to have the focus. The title bar remains grey - whcih means the form is not active -
What am i missing .....
I have been trying allsorts to get this to work
Rdrunner