Jump to content

popup form


LogSistemas01

Recommended Posts

Hello 

 

I have a form where it appears as a popup, with the Show routine. It is invoked by a button inside a TabSheet. I wanted to know how I do to link this form to this tabsheet, that is, when changing tabsheet, it hides, when it comes back to it, it appears, because it will be in the tabsheet.

 

 

Link to comment
Share on other sites

As the picture below 

Form.png

My form is positioned below the "Adicionar" button and opened by the Show command.

It can be found in the "Outros Dados" tabsheet in "PageControl_X" which is inside the "Cadastro de Pessoa" Screen, which is also inside a TabnSheet in "PageControl_Y"

What I wanted is that when changing the tabsheet of PageControl_X or PageControl_Y, if the form is visible, the form would hide and when returning to the correct TabSheet, it would present again.

I can even do this in the PageControl onChange event by calling the Hide option. but I'm having to have control variables for this, as the forms increase this can complicate it a little.

If there were some way through web language to make it more automatic would be better.

That is what I need, I hope it has become clear.

 

 

Link to comment
Share on other sites

7 hours ago, zhyhero said:

frm.parent:=atabsheet

Doesnt work!

Not even show the form.

I call like this:

  FrmSelecaoGenerica
    .MostraEmbaixoDoComponente(btnAdicionarTipoPessoa, True)
    .BuscaTiposPessoas
    .Show();

 tye like this:

  FrmSelecaoGenerica
    .MostraEmbaixoDoComponente(btnAdicionarTipoPessoa, True)
    .BuscaTiposPessoas;

  FrmSelecaoGenerica.Parent := abaOutrosDados;
  FrmSelecaoGenerica.BringToFront;
  FrmSelecaoGenerica.Show();

 

Link to comment
Share on other sites

  • 2 weeks later...

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...