 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jay Guest
|
Posted: Fri Jun 02, 2006 3:15 pm Post subject: opening dynamic forms? |
|
|
Anyone know how I can dynamically open a form so I can draw to it when needed? I ask because the amount that I will need open will vary upon occasion. Or should I just create the maximum number of forms that I will need and only view them when needed?(I prefer not to though).
Thanks in advance,
Jay |
|
| Back to top |
|
 |
Roddy Pratt Guest
|
Posted: Fri Jun 02, 2006 6:19 pm Post subject: Re: opening dynamic forms? |
|
|
"Jay" <Jay (AT) nospam (DOT) com> wrote in message
news:44805165$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
Anyone know how I can dynamically open a form so I can draw to it when
needed? I ask because the amount that I will need open will vary upon
occasion. Or should I just create the maximum number of forms that I will
need and only view them when needed?(I prefer not to though).
|
Just dynamically allocate them, and call 'Show'.
TMyform *form = new TMyForm(this);
form->Show();
....
You also need to se CloseAction = caFree in the form's OnClose event to
ensure it get destructed...
- Roddy |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|