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

8 minutes ago, neo4a said:

It' not working in mobile version. Sorry for not mentioned it earlier.

Sorry, If it’s not difficult, create a test case, or provide how to reproduce in demo files, since you specified a demo example, it works there.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...