mterceno Posted March 31, 2017 Share Posted March 31, 2017 Hello all, I would like create a form but I wouldn't this form shown directly. I set the property visible to False but the form is still showed. Do you have a solution to create a form without showing it ? Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2017 Share Posted March 31, 2017 Hi, http://forums.unigui.com/index.php?/topic/7860-application-form/&do=findComment&comment=40196 Quote Link to comment Share on other sites More sharing options...
mterceno Posted March 31, 2017 Author Share Posted March 31, 2017 Hi, OK. So must I understand that desired behavior is not possible ? In fact this form is a kind of Main Menu. To avoid a long time loading at the first call, I thought create it at a MainFormCreate...but the form is shown Currently I show this form in changing the top value. To hide I set the top to 3000px but it's not very pretty Do you have another idea that could suit me ? Thank you. Quote Link to comment Share on other sites More sharing options...
Vieira Posted April 4, 2017 Share Posted April 4, 2017 Did you get a solution? I have the same problem Quote Link to comment Share on other sites More sharing options...
mterceno Posted April 5, 2017 Author Share Posted April 5, 2017 Yes, I add the following JS code on ExtEvents of the form. function window.afterlayout(sender, layout, eOpts) { Ext.get(sender.id).el.setVisible(false); } I don't know if the good solution but it works fine in my case. Best regards, Quote Link to comment Share on other sites More sharing options...
Vieira Posted April 5, 2017 Share Posted April 5, 2017 Works thank you. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted April 6, 2017 Share Posted April 6, 2017 Yes, I add the following JS code on ExtEvents of the form. function window.afterlayout(sender, layout, eOpts) { Ext.get(sender.id).el.setVisible(false); } I don't know if the good solution but it works fine in my case. Best regards, Can you perhaps elaborate on how you show and hide this form in your app once it is created? Quote Link to comment Share on other sites More sharing options...
mterceno Posted April 6, 2017 Author Share Posted April 6, 2017 Can you perhaps elaborate on how you show and hide this form in your app once it is created? Hi GerhardV, I create in Delphi code an event "client side" for a quick response : UniSpeedButtonLauncher.ClientEvents.ExtEvents.Add('onmouseup=function mouseup(sender, eOpts) {'+ YourFormName.WebForm.JSName+'.el.setVisible(true)'+ // or el.setVisible(false) '}'); Best regards, 2 Quote Link to comment Share on other sites More sharing options...
GerhardV Posted April 6, 2017 Share Posted April 6, 2017 Excellent! Thank you Michael. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted April 6, 2017 Share Posted April 6, 2017 Michael, do you set any z-index or bring to front maybe? Ignore that..I had the code in the "UniFormReady" event but moved it to the "UniFormCreate" event...now it is showing up. 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.