Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windowstate not working
Message
De
12/01/2017 05:26:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01646560
Message ID:
01646562
Vues:
77
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform