Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Displays

Status
Not open for further replies.

prustie

Programmer
Aug 6, 2001
34
GB
Hi

The system I am developing needs to run full screen and always be on top. Ideally I would like the Windows key deactivated so that nothing else can be displayed. However we can live with the situation where if the Windows key is pressed and the toolbar displayed etc once focus is returned to the system it again shows full screen with nothing else visible.

At the moment I am doing this by having an initial form which is called from my MAIN program with
SET SYSMENU OFF
DO FORM formname
READ EVENTS.

This form has
ALWAYS ON TOP .T.
DESKTOP .F.
SHOWWINDOW AS TOP LEVEL FORM
WINDOW TYPE MODAL

all subsequent forms are called from buttons within the forms and have the following settings
ALWAYS ON TOP .F.
DESKTOP .F.
SHOWWINDOW IN TOP LEVEL FORM
WINDOW TYPE MODAL

I am however encountering several problems.
TOOLTIPS do not show
DEBUG screens do not show

In my error routine I can display the error but cannot then close the forms down.

I tried having SHOWWINDOW set to IN SCREEN with DESKTOP set to .T. but you then cannot see the PREVIEW of any reports.

There is obviously a better way can anyone tell me what it is please.

Thanks

Malcolm.
 
Have you set the showtips to .t. on the form? The default is false. Until you do no tips will show.


Betty





 
HI Malcolm,

1. Have you read my FAQ on hiding the VFP screen...
How to hide the Main VFP Screen ?
faq184-1258

**********************************************************
** How to hide the Main VFP Screen.
**********************************************************
** by Subramanian.G (ramani)
** FoxAcc Software
** ramani_g@yahoo.com
**********************************************************
**
** 1. Add the following code in your Form suitably.
MyForm.InitEvent
_SCREEN.Visible = .F.
This.Show()
READ EVENTS
**
** 2. set in the forms property sheet...(not thro code)
.ShowWindow = 2
.MDIform = .f.
.ALwaysOnTop=.t.
**
** 3. All other forms called from this form,
.ShowWindow = 1

** 4. Note that if the _screen is OFF, then when you do a PrintPreview, remeber to set _screenVisible = .t. before the REPORT FORM... syntax and reset it to false after the preview. Otherwise, the native PrintPreview by VFP which is always to SCREEN will not show up.

Ramani
(Subramanian.G), FoxAcc, ramani_g@yahoo.com
**********************************************************
So in your command for report output.. use the code...
_screen.Visible = .t.
REPORT FORM myReport .......
_SCREEN.Visible = .f.
This will ensure print preview is made available.

2. In the forms property.. (if there is your own baseform class in that).. set the property..
ShowTips = .t.
or in the forms init event.. add the code..
This.ShowTips = .t.
This will enable the display of tool tips.

Hope this helps you :)


ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Thanks for your help!

It still seems however that the combination of ALWAYSONTOP=.T. and SHOWWINDOW=2 for the inital form stops Tool Tips on that and all subsequent forms although subsequent forms have ALWAYSONTOP=.F. and SHOWWINDOW=1.

I have no problem with print PREVIEWs on subsequent forms but I cannot see the DEBUG window.

Any further thoughts would be appreciated.

Malcolm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top