Jump to content

Create form => automatically show


mterceno

Recommended Posts

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.

Link to comment
Share on other sites

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,

 

 

Link to comment
Share on other sites

 

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?

Link to comment
Share on other sites

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,

  • Upvote 2
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...