|
| Programmatically Centering a Window |
| Iniciado por guest, 14,jun. 2016 13:36 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 14,junio 2016 - 13:36 |
Hi folks,
Can anyone give any advice on how I would center a window in code?
Thank you Mark |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,junio 2016 - 15:17 |
Hi Mark
1. get the screen size (sysxxxx functions) 2. get the window size (..width ..height) 3. Substract and divide by 2 4. change the window position with ..X ..Y
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,junio 2016 - 15:32 |
Fabrice,
Thank you very much!
Mark |
| |
| |
| | | |
|
| | | | |
| | |
|