• Is there a method that is invoked when the canvas size of an app owner

    From [email protected]@21:1/5 to All on Wed Aug 23 10:50:20 2023
    Greetings:

    I'm having the problem that when the application is been shown in a second monitor and the user disconnect the second monitor, then the application doesn't move to the first monitor.

    Thanks,
    Any help would be appreciate
    Juan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JohnMartens@21:1/5 to All on Wed Aug 23 20:36:49 2023
    If that happens does the Desktop dimension of the PC changes ?

    dDesktop := Dimension{GetSystemMetrics(SM_CXVIRTUALSCREEN),GetSystemMetrics(SM_CYVIRTUALSCREEN)}

    If that is the case you could set a timer in the shellwindow and check
    if MyShellWinwod:Origin:X+MyShellwindow:Size:Width > dDesktop:Width

    if that is the case make the origin of the shellwindow 0,0 and it will
    be back on the primary monitor

    John


    Op 23-8-2023 om 19:50 schreef [email protected]:
    Greetings:

    I'm having the problem that when the application is been shown in a second monitor and the user disconnect the second monitor, then the application doesn't move to the first monitor.

    Thanks,
    Any help would be appreciate
    Juan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Wed Aug 23 12:19:46 2023
    El miércoles, 23 de agosto de 2023 a la(s) 12:36:52 UTC-6, JohnMartens escribió:
    If that happens does the Desktop dimension of the PC changes ?

    dDesktop := Dimension{GetSystemMetrics(SM_CXVIRTUALSCREEN),GetSystemMetrics(SM_CYVIRTUALSCREEN)}

    If that is the case you could set a timer in the shellwindow and check
    if MyShellWinwod:Origin:X+MyShellwindow:Size:Width > dDesktop:Width

    if that is the case make the origin of the shellwindow 0,0 and it will
    be back on the primary monitor

    John


    Op 23-8-2023 om 19:50 schreef [email protected]:
    Greetings:

    I'm having the problem that when the application is been shown in a second monitor and the user disconnect the second monitor, then the application doesn't move to the first monitor.

    Thanks,
    Any help would be appreciate
    Juan

    Thank you very much John. I'm going to try it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)