mterceno Posted March 31, 2017 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
Sherzod Posted March 31, 2017 Posted March 31, 2017 Hi, http://forums.unigui.com/index.php?/topic/7860-application-form/&do=findComment&comment=40196 Quote
mterceno Posted March 31, 2017 Author 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
Vieira Posted April 4, 2017 Posted April 4, 2017 Did you get a solution? I have the same problem Quote
mterceno Posted April 5, 2017 Author 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
GerhardV Posted April 6, 2017 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
mterceno Posted April 6, 2017 Author 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
GerhardV Posted April 6, 2017 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
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.