Page 1 of 1

App minimize problem

Posted: Tue Jan 26, 2021 3:08 am
by zolifree
Hi Roger,

I strated to use exp 267, and I found a problem, I cannot solve.
I can show it in the xdemo.exe
Start this menu: Applications/Documentator - Xdoc
then maximise the new sub window
then minimse the xdemo main window
When restoring the main window, the objects disappars in the sub window.
In my application they are compressed at the bottom left corner with almost zero size.

The problem is not present in exp 265 I used until now.
I tested the exp 266 xdemo.exe, and it has the same problem, so the source of the problem came from exp 266.

I use subwindows maximised in the main window, so it is important to solve this.

Best regards,
Zoltan

Re: App minimize problem

Posted: Tue Jan 26, 2021 12:38 pm
by rdonnay
I can confirm that this is a problem.
Here is a fix:

Make the following change to _DCFUNCT.PRG (Function DC_Resize()) :

Code: Select all

WAS:

  IF aState[3] == oDlg:setParent():getFrameState() .AND. ;
     aState[3] $ { XBPDLG_FRAMESTAT_MINIMIZED } // ,XBPDLG_FRAMESTAT_MAXIMIZED}
     RETURN nil
  ENDIF

  IF aState[3] == oDlg:setParent():getFrameState() .AND. ;
     aState[3] $ { XBPDLG_FRAMESTAT_MINIMIZED }
     RETURN nil
  ENDIF

IS:

  IF aState[3] == oDlg:setParent():getFrameState() .AND. ;
     aState[3] $ { XBPDLG_FRAMESTAT_MINIMIZED } // ,XBPDLG_FRAMESTAT_MAXIMIZED}
     RETURN nil
  ENDIF

  IF aState[3] == oDlg:setParent():getFrameState() .AND. ;
     aState[3] $ { XBPDLG_FRAMESTAT_MAXIMIZED }  // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Change to this
     RETURN nil
  ENDIF
Rebuild DCLIPX.DLL by running \exp20\source\dclipx\build20.bat

Re: App minimize problem

Posted: Tue Jan 26, 2021 2:31 pm
by zolifree
Working well.
Thank You!