Welcome! Log In Create A New Profile

Advanced

WD12: How to get/ set Screen/ Display Properties

Posted by Toddy Utomo 
Toddy Utomo
WD12: How to get/ set Screen/ Display Properties
October 23, 2008 02:28PM
Hi all windevers,

Does anyone know a way in code to get current Windows Screen Resolution/ Display Properties? Eg: 800x600,1024x768,1280x768,...

TIA

Kind Regards
Toddy
Marc De Swert
Re: WD12: How to get/ set Screen/ Display Properties
October 23, 2008 02:38PM
very simple, you can receive the settings:

Info(MySelf..Largeur + "x" + MySelf..Hauteur)


Marc :cool:
Marc De Swert
Re: WD12: How to get/ set Screen/ Display Properties
October 23, 2008 02:49PM
and you can modif-y them in running time...

Info(MyWindow..Name + " " + MyWindow..Largeur + "x" + MyWindow..Hauteur)
MyWindow..Largeur = MyWindow..Largeur +20
MyWindow..Hauteur = MyWindow..Hauteur +45
Info(MyWindow..Name + " " + MyWindow..Largeur + "x" + MyWindow..Hauteur)

marc :cool:
Marc De Swert
Re: WD12: How to get/ set Screen/ Display Properties
October 23, 2008 03:41PM
but for the screen resolution of the current screen (not the screen of Windev)
i found this in Windev:


HorizResRes is int = SysXRes()
VertResRes is int = SysYRes()

Info(HorizResRes + " " + VertResRes )


marc :cool:
Piet van Zanten
Re: WD12: How to get/ set Screen/ Display Properties
October 23, 2008 04:07PM
New in Windev 12:
SysChangeScreenResolution
SysScreenResolution

Regards,
Piet
Toddy Utomo
Re: WD12: How to get/ set Screen/ Display Properties
October 23, 2008 04:27PM
Hi Marc
Hi Piet

thanks :spos:

Kind Regards
Toddy
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: