Sherzod Posted October 5, 2023 Share Posted October 5, 2023 4 minutes ago, Sherzod said: Do you mean ShowAnimation? 1 hour ago, PS1 said: But it slides from right to left. In my application it is very confusing. I want to make it so it will slide from left to right. function window.beforeInit(sender, config) { config.showAnimation = { type: 'slideIn', direction: 'right', duration: 1000, }; } Quote Link to comment Share on other sites More sharing options...
PS1 Posted October 5, 2023 Share Posted October 5, 2023 No, it's hide animation. But i know that it's not working with freeOnClose:=true . I plan to execute ,,my own hide animation" before i execute modalResult := mrOk. So it for example slide out of screen and then it will be freed Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 5, 2023 Share Posted October 5, 2023 Ok I will try... 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 5, 2023 Share Posted October 5, 2023 @PS1 Can you try this approach? 1. frmPopup.ClientEvents.UniEvents -> function window.beforeInit(sender, config) { config.showAnimation = { type: 'slideIn', direction: 'right', duration: 1000, }; config.hideAnimation = { type: 'slideOut', direction: 'right', duration: 1000, listeners: { animationend: function(evt, obj) { ajaxRequest(sender, '_close', {}) } } }; } 2. procedure TfrmPopup.UnimButton1Click(Sender: TObject); begin //modalResult := mrOk; Self.Hide; end; 3. procedure TfrmPopup.UnimFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_close' then ModalResult := mrOk end; 1 Quote Link to comment Share on other sites More sharing options...
PS1 Posted October 5, 2023 Share Posted October 5, 2023 Thanks, that works ! 1 Quote Link to comment Share on other sites More sharing options...
Norm Posted October 5, 2023 Share Posted October 5, 2023 On 11/28/2020 at 11:21 PM, bdiri said: Hi this topic can help you Can someone please explain why Mohammed’s content on this topic has been deleted or removed. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2023 Share Posted October 6, 2023 1 hour ago, Norm said: Can someone please explain why Mohammed’s content on this topic has been deleted or removed. Quote Link to comment Share on other sites More sharing options...
Norm Posted October 6, 2023 Share Posted October 6, 2023 That really does not make sense. We all contribute to the forum to support each other and the product. What motivates anyone to go through the trouble of looking up and purging all of one’s input. I find this baffling and it seems mean-spirited. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 6, 2023 Share Posted October 6, 2023 In any case, I don't think we should judge so harshly... Quote Link to comment Share on other sites More sharing options...
Ron Posted October 6, 2023 Share Posted October 6, 2023 If you wake up one day, and suddenly conclude that coding is the work of the devil, you may want to delete all of your contributions. There may be a million more reasons to turn away from coding, so who knows the motivation - or lack thereof. Some may be addicted to coding, and would do better staying away from it. Especially if it ruins their health. Or what if your IQ doubles overnight, and you are suddenly ashamed of your old code, which now looks terrible. 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.