App minimize problem

This forum is for eXpress++ general support.
Post Reply
Message
Author
zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

App minimize problem

#1 Post 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

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: App minimize problem

#2 Post 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
The eXpress train is coming - and it has more cars.

zolifree
Posts: 35
Joined: Sun Sep 19, 2010 6:55 am

Re: App minimize problem

#3 Post by zolifree »

Working well.
Thank You!

Post Reply