Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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,

 

 

Posted

 

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?

Posted

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
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...