Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

Making one form the child of another form

$
0
0

I have 2 forms (Form1 and Form2) and both forms are auto-created.

I am using Form2->Parent=Form1 in Form2's constructor to make Form2 the child form of Form1.

However, this method leads to the TEdit control on Form2 not to accept activation clicks using the mouse.

I am looking for the following functionality:

  • When the main form gets moved, the child form moves
  • When the main form gets minimized, the child form hides as well
  • The child form can only be moved within the main form's client area

Is there another way to make one form the child of another? (aside from creating an MDI application, which I don't want to use for several reasons)

It seems odd to me that a TEdit would lose the ability to be activated using the mouse just because it's form is a child form.  BTW: It is possible to select a TCheckbox and use tab to activate the TEdit.

 


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>