neo4a Posted September 7, 2019 Share Posted September 7, 2019 in other words: How to combine form's hiding animation and closing form by result:=mrOK? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 10 minutes ago, neo4a said: in other words: How to combine form's hiding animation and closing form by result:=mrOK? Do you want to close the form with animation? Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 yes. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 30 minutes ago, neo4a said: yes. Please make a simple testcase, I will try to show on your test case. Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 Really?! For such a simple thing?! So take you "all feature touch demo" ModalUnit.dfm and assign Hidung animation and look what's happen...or not. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 15 minutes ago, neo4a said: Really?! For such a simple thing?! Sometimes the simplest things can be complicated ) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 37 minutes ago, neo4a said: So take you "all feature touch demo" ModalUnit.dfm and assign Hidung animation and look what's happen...or not. From the first post it was not clear. Are you using a mobile form? Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 3 minutes ago, Sherzod said: Are you using a mobile form? yes. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 7 minutes ago, neo4a said: yes. HideAnimation property of the form, have you tested? Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 7, 2019 Author Share Posted September 7, 2019 Just now, Sherzod said: HideAnimation property of the form, have you tested? yes. And ShowAnimation, too. ShowAnimation was working. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 I will check and let you know. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2019 Share Posted September 7, 2019 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) }) } } Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 8, 2019 Share Posted September 8, 2019 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? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2019 Share Posted September 8, 2019 1 hour ago, eduardosuruagy said: do you have this option for vlc? What do you mean!? Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 8, 2019 Author Share Posted September 8, 2019 On 9/7/2019 at 2:20 PM, Sherzod said: One possible solution... It' not working in mobile version. Sorry for not mentioned it earlier. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2019 Share Posted September 8, 2019 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. Quote Link to comment Share on other sites More sharing options...
neo4a Posted September 8, 2019 Author Share Posted September 8, 2019 Sorry, again. Your code is working. My fault was using a TUnimContainerPanel in mobile version. Quote Link to comment Share on other sites More sharing options...
mikromundo Posted April 22, 2023 Share Posted April 22, 2023 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 22, 2023 Share Posted April 22, 2023 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? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted April 22, 2023 Share Posted April 22, 2023 Thank you... I think I solved the question. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 22, 2023 Share Posted April 22, 2023 I'm happy for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.