Announcement

Collapse
No announcement yet.

How to Detect if user clicks Minimize Button at top of Page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Detect if user clicks Minimize Button at top of Page?

    Hi just wandering how to capture the Page Minimized Events please .

    Thanks.

  • #2
    Hi dear friend
    put below code in "On Size" event of your page :

    if e_Type == 1 then
    Dialog.Message("alert", "windows minimized");
    end

    Comment


    • #3
      Thankyou very much @mahdishams

      Comment


      • #4
        I never make windows apps anymore I always make flat apps now so you can also make a miniumized wrape around the function on the button, it will depend on how you do it
        Plugins or Sources MokoX
        BunnyHop 2021 Here

        Comment


        • #5
          unfortunately the code didn't work :/.. ie no popup dialog when minimizing the app.

          kingzooly ahh yes! .. you have more control over the events that way difinately.

          I will make a new thread for the next problem.

          Comment


          • #6
            You could also overide the minimze function lets say

            PHP Code:
            Window.__Min Windows.Minimize;

            function 
            Windows.Minimze(...)
                 
            Dialog.Message("","");
                 
            Window.__Min();
            end 
            That is bad air code but it is ya basics
            Plugins or Sources MokoX
            BunnyHop 2021 Here

            Comment


            • #7
              Using MemoryEx and a window subclass (window callback) to catch and optionally prevent the minimize event, see attached example and download the MemoryEx Action Plugin
              Attached Files
              Bas Groothedde
              Imagine Programming :: Blog

              AMS8 Plugins
              IMXLH Compiler

              Comment


              • #8
                ---este script es para ver quien ingresa a la pagina de logeo

                function Escape (sSourceString)
                sSourceString = String.Replace(sSourceString, "'", "''", false);
                return sSourceString;
                end


                sUsuario = ComboBox.GetText("CbnNombre111");
                sFecha = System.GetDate(DATE_FMT_EUROPE);
                sHora = Label.GetText("Hora")


                if bNewRecord then
                SQLite.Query(db,"insert into registros values(NOT NULL, '"..sUsuario.."', '"..sFecha.."', '"..sHora.."')");
                Page.Jump("LOGEO USUARIOS")


                end

                Comment


                • #9
                  Bas interesting will have a look at that thankyou!

                  Comment


                  • #10
                    is the notify.dll the only way to send bubble notifications to the sysTray? also is there some way through Ams to add oprions to sysTray right click?

                    Comment

                    Working...
                    X