Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windowstate not working
Message
From
12/01/2017 05:26:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01646560
Message ID:
01646562
Views:
76
>Hi there,
>
>I have set the windowstate-property of a form to 2 - Maximized but the window is not maximized, It keeps its size, After having already serached a bit I tried changing the showwindow-proprty to top-level-form, looked that Lockscreen is set to .F. and set the minwidth and minheight-props back to -1. I tried it in the init-event of the form by setting "thisform.windowstate = 2" but nothing works. If I click on the maximize-button it resizes correctly. What have I missed?
>
>Thanks in advance
>
>Thomas
>
>P.S.: Hust for curiousity I tried setting windowstate to minimze but that does not work either.

Can't reproduce what you are reporting. Opening a window in its maximized state should be simple:
LOCAL MaxForm AS MaxForm

m.MaxForm = CREATEOBJECT("MaxForm")

m.MaxForm.Show()
READ EVENTS

DEFINE CLASS MaxForm AS Form

	Desktop = .T.
	ShowWindow = 2
	WindowState = 2

	FUNCTION Destroy
	
		CLEAR EVENTS
	
	ENDFUNC

ENDDEFINE
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform