Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the problem with objects on _SCREEN ?
Message
From
05/04/2001 18:58:42
 
 
To
04/04/2001 23:57:30
Ben Clark
Integral Computer Services
Rochester, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00490998
Message ID:
00492585
Views:
15
>Have you considered "replacing" the screen with a form with the 'AlwaysOnBottom' property set to .t.? if you set it up right visualy, as far as the user could tell, it would be the screen, w/o the wierd behavior as a container. The user re-sizing the screen could be a problem, but you might be able to get around it by making the form just extend far beyond the bounds of the actual screen - farther than a user could reasonably be expected to re-size the screen to.

I saw this once posted by someone else and have been using it since but you could use it for putting a form on as a background form:
_SCREEN.AddProperty("oForm")

_SCREEN.ADDOBJECT("ScreenForm", "_ScreenForm")
_SCREEN.oForm = NEWOBJECT("FORM")
_SCREEN.oFORM.AlwaysOnBottom = .T.
_SCREEN.oform.BORDERSTYLE = 0
_SCREEN.oForm.TitleBar = 0
_SCREEN.oForm.VISIBLE = .T.

DEFINE CLASS _ScreenForm AS Custom
	oScr = _SCREEN
	
	PROCEDURE oScr.Resize()
		_SCREEN.oForm.HEIGHT = _SCREEN.HEIGHT
		_SCREEN.oForm.WIDTH = _SCREEN.WIDTH
	ENDPROC
ENDDEFINE
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform