Jump to content

No hiding animation when closing a modal form


neo4a

Recommended Posts

5 hours ago, neo4a said:

So take you "all feature touch demo" ModalUnit.dfm and assign Hidung animation and look what's happen...or not.

One possible solution...

UniModalForm.ClientEvents.ExtEvents -> function window.show(sender, eOpts):

function window.show(sender, eOpts)
{
    var frm = sender.owner;
    var cbtn = frm.closebutton;
    if (cbtn) {
        cbtn.addBeforeListener('tap', function() {
            if (!cbtn.isClosable) {
                frm.window.hide({
                    type: "slideOut",
                    duration: 1000,
                    direction: 'left', // right, down...
                    listeners: {
                        animationend: function(evt, obj) {
                            cbtn.isClosable = true;
                            cbtn.fireEvent('tap', cbtn);
                        }
                    }
                });
                cbtn.setDisabled(true);
            }
            return (cbtn.isClosable == true)
        })
    }
}

 

Link to comment
Share on other sites

On 9/7/2019 at 9:20 AM, Sherzod said:

One possible solution...

UniModalForm.ClientEvents.ExtEvents -> function window.show(sender, eOpts):


function window.show(sender, eOpts)
{
    var frm = sender.owner;
    var cbtn = frm.closebutton;
    if (cbtn) {
        cbtn.addBeforeListener('tap', function() {
            if (!cbtn.isClosable) {
                frm.window.hide({
                    type: "slideOut",
                    duration: 1000,
                    direction: 'left', // right, down...
                    listeners: {
                        animationend: function(evt, obj) {
                            cbtn.isClosable = true;
                            cbtn.fireEvent('tap', cbtn);
                        }
                    }
                });
                cbtn.setDisabled(true);
            }
            return (cbtn.isClosable == true)
        })
    }
}

 

do you have this option for vlc?

Link to comment
Share on other sites

  • 3 years later...
On 9/7/2019 at 9:20 AM, Sherzod said:

One possible solution...

UniModalForm.ClientEvents.ExtEvents -> function window.show(sender, eOpts):

function window.show(sender, eOpts)
{
    var frm = sender.owner;
    var cbtn = frm.closebutton;
    if (cbtn) {
        cbtn.addBeforeListener('tap', function() {
            if (!cbtn.isClosable) {
                frm.window.hide({
                    type: "slideOut",
                    duration: 1000,
                    direction: 'left', // right, down...
                    listeners: {
                        animationend: function(evt, obj) {
                            cbtn.isClosable = true;
                            cbtn.fireEvent('tap', cbtn);
                        }
                    }
                });
                cbtn.setDisabled(true);
            }
            return (cbtn.isClosable == true)
        })
    }
}

 

Could @Sherzod tell me how I can do this with a conventional modal form ( not MOBILE ) without the default close button, that is, there can be a YES or NO button to click and close the form.

I'm having difficulties when there is some processing after clicking YES or NO, for example, the form does not close, it waits for the process to finish then, it gives the impression that the message form was "stuck" on the screen.

Link to comment
Share on other sites

44 minutes ago, mikromundo said:

I'm having difficulties when there is some processing after clicking YES or NO, for example, the form does not close, it waits for the process to finish then, it gives the impression that the message form was "stuck" on the screen.

Hello,

Well, if you have a long process when closing the form, what kind of behavior do you want?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...