N napsee New Member Jul 12, 2013 #1 Could anyone there knows how to maximize the window that will fit in any screen resolution?.. Please help..
Could anyone there knows how to maximize the window that will fit in any screen resolution?.. Please help..
O oli Member Jul 12, 2013 #2 Code: ASSIGN {&WINDOW-NAME}:MAX-WIDTH = ? {&WINDOW-NAME}:MAX-HEIGHT = ? {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MAXIMIZED. But it's up to you to resize the content of the window, for instance inside the WINDOW-RESIZED event.
Code: ASSIGN {&WINDOW-NAME}:MAX-WIDTH = ? {&WINDOW-NAME}:MAX-HEIGHT = ? {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MAXIMIZED. But it's up to you to resize the content of the window, for instance inside the WINDOW-RESIZED event.
N napsee New Member Jul 16, 2013 #3 oli said: Code: ASSIGN {&WINDOW-NAME}:MAX-WIDTH = ? {&WINDOW-NAME}:MAX-HEIGHT = ? {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MAXIMIZED. But it's up to you to resize the content of the window, for instance inside the WINDOW-RESIZED event. Click to expand... Thanks it works.. but how do I resize my image the will fit my window when it is maximized..?
oli said: Code: ASSIGN {&WINDOW-NAME}:MAX-WIDTH = ? {&WINDOW-NAME}:MAX-HEIGHT = ? {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MAXIMIZED. But it's up to you to resize the content of the window, for instance inside the WINDOW-RESIZED event. Click to expand... Thanks it works.. but how do I resize my image the will fit my window when it is maximized..?
O oli Member Jul 16, 2013 #4 As said, you just have to change the image's (and other widgets') :WIDTH & :HEIGHT attributes inside the WINDOW-RESIZED event trigger. There are some code available to automate widgets' resizing. See, f.i.: http://www.progresstalk.com/threads/code-to-automatically-resize-a-progress-window.306/
As said, you just have to change the image's (and other widgets') :WIDTH & :HEIGHT attributes inside the WINDOW-RESIZED event trigger. There are some code available to automate widgets' resizing. See, f.i.: http://www.progresstalk.com/threads/code-to-automatically-resize-a-progress-window.306/