|
| [WD 21]Popup Window Centered |
| Iniciado por guest, 18,jul. 2018 22:06 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 18,julio 2018 - 22:06 |
Hi
How do I force my window called with OpenPopup (it was created as a popup window) to display in center of screen.
The settings Center in Screen, and Center in Parent Window has no effect. It is always right hand side of the screen.
Thanks in advance
Ericus Steyn |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 09:49 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 12:20 |
Thanks Darren
Tried that but there is nothing for centre. just bottom, left or right.
It sounds such a simple thing but ...
Regards
Ericus Steyn |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 12:29 |
| Hi, there are WINDEV commands to find out the resolution of the screen. If you know the width and height of your Popup window then you should be able to place it in the center of the screen ... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 12:39 |
| I can only imagine that with it being a popup, it is related to a control on your window and as such the assumption is that you will want to display the popup relative to a control and not display the popup (potentially) on top of a control? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 13:29 |
Hi Ericus,
The help says: "The popup window is opened below the control that is running OpenPopup. If there is not enough space to open the window, the window will be opened either above the control, or below the control to the left."
So your only choice if you want the popup somewhere else is to move your original control before opening the popup
Otherwise with OpenPopupPosition, you can use the "poAccordingToControl" option to link your popup to a control that is at the position you wish... That control NEEDS to be visible, but nothing says it has to be big (a 1x1 control in the same color that the backgrouind would do the trick)
Of course, the easiest thing would be to copy everything into a regular window and just open that one wherever you want.
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|