[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
LoadingDynamicLibraryC » Euphoria » Art_Huffman_p1 » TurboCpp » Zeev Suraski » Altair » operatingsystem » object » QbasicFAQ_AddSound » OpenGL » CppVclAddTWinControlDynamically

(C++ VCL) Adding TWinControl dynamically

Set the Parent Property to the parent that will manage the control.

  TButton * const myButton = new TButton(this);
  myButton->Parent = this;
  myButton->Visible = true;
  //No delete necessary: the Parent will delete its Child.


When adding a TForm, be sure to set its BorderStyle to bsNone.

'Adding TWinControls Dynamically' links



last edited (June 12, 2007) by bilderbikkel, Number of views: 2580, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.