Menu

How to minimize apps in WinCE

Help
Tom Arn
2003-06-02
2003-06-04
  • Tom Arn

    Tom Arn - 2003-06-02

    Hi all

    Does somebody know, why Dialect applications cannot be minimized in WinCE? If there is only 1 Dialect application open, then it immediately pops ups again after minimizing. Must be a bug in the source code.

    I found a work-around for it by (ab)using the onClose function, but it would be better if the bug could be fixed.

        onClose = func()
            local x
            if not bUnderCE then
                return true
            endif
            x=Gui.MsgBox(this,"Do you want to close this program", "Close", Gui.mbYesNo+gui.mbIconQuestion)
            if x = gui.yes then
                return true
            else
                if this.oldrect = nil then
                    this.minimize()
                else
                    rect = this.oldrect
                    this.oldrect = nil
                endif
            endif
        endfunc  // onClose

        Minimize = func()
            this.oldrect = this.rect
            this.rect = [0,0,0,0]
        endfunc  // Minimize

    Tom

     
    • A.H. Banen

      A.H. Banen - 2003-06-02

      Tom,
      I've been trying to home in to the precise spot where this error could stem from, it would be too easy to say it should be somewhere in QWindow.cpp...
      Could you to help state the version of Dialect you found this problem in and also the WinCE version/processor? Also I was wondering if the problem has anything to do with the type of handheld, the 'old' ones with integrated keyboard or the new 'palmtop' kind.

      And could you check if the code you use has a onResize function implemented for the gui.window or a titlebar:true in the constructor frame? I'd like to rule those out as possible reason for this behaviour.

      Hope this helps (somehow:),
      Andr

      P.S. I couldn't reconstruct your problem - I'm sad to say - on my own handheld. Both the versions of Dialect (Pro 1.1 / Standard 1.2)  that run on this WinCE 2.0/SH3 device lack the minimize/maximize buttons...(Anything running WinCE <= version 2.0 apparently does, I saw in the sourcecode)  :(

       
    • Tom Arn

      Tom Arn - 2003-06-04

      Hi Andre

      I use Dialect Pro 1.16 on a HP Jornada 720 (old style HPC2000, ARM, WinCE3.0)

      I have the problem no matter if there is a onResize or not. What is the titlebar:true ? I have never used that, seems to be undocumented...

      You can use my Associate.d from the "Dialect Programs Index" for testing.

      Tom

       

Log in to post a comment.

MongoDB Logo MongoDB