Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top level form without title bar
Message
From
04/11/2003 19:10:30
 
 
To
16/10/2003 19:05:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00839563
Message ID:
00846259
Views:
48
Hi Oscar

I have just had the same problem with VFP7 using a class. It would appear that the title bar is set on when it is the top-level-form regardless of its setting and needs to have its state changed in order to have any effect.

Example
oSplash=CREATEOBJECT('Splash')
WITH oSplash
	.TitleBar=1
	.TitleBar=0
	.Show()
ENDWITH
.
.
.

DEFINE CLASS splash AS form

	Height = 194
	Width = 377
	ShowWindow = 2
	DoCreate = .T.
	AutoCenter = .T.
	Caption = ""
	ControlBox = .F.
	TitleBar = 0
	AlwaysOnTop = .T.
	BackColor = RGB(252,244,255)
	Name = "splash"

	ADD OBJECT logo AS image WITH ;
		Picture = "..\graphics\MyPicture.jpg", ;
		Height = 98, ;
		Left = 36, ;
		Top = 29, ;
		Width = 304, ;
		Name = "Logo"

	ADD OBJECT lbltext AS label WITH ;
		Alignment = 2, ;
		Caption = "", ;
		Height = 18, ;
		Left = 36, ;
		Top = 144, ;
		Width = 304, ;
		BackColor = RGB(255,255,255), ;
		Name = "lblText"

ENDDEFINE
Regards
Geoff Scott


>Hi all
>
>How can hide de title bar of a form whose ShowWindos property is 2 "Top Level"
>
>Actually my settings are:
>
>Caption = (nothing)
>Closable = .F.
>ControlBox = .F.
>MaxButton = .F.
>MinButton = .F.
>TitleBar = 0
>WindowType = 1 (modal)
>
>Thanks in advance for any hints
>
>Oscar Corte
May all your weeds be wildflowers
Previous
Reply
Map
View

Click here to load this message in the networking platform