Textctrl fills entire frame.

Help
Ray
2004-05-26
2004-06-01
  • Ray

    Ray - 2004-05-26

    How do I keep the textctrl from resizing to fill the entire frame? I just want a small text box for user's to enter data, but every time I add a textctrl it fills the whole frame.

     
    • Patrick Gilmartin

      If you go to the Inspector, you need to go the the Properties Tab  and set the AutoLayout property to true.  The textcontrol can be left false. 

      Now let's say that you had a scrolled window in your main frame window and you want to put a textcontrol box in the scrolled window, then you would have both the main frame and the scrolled windows AutoLayout properties set to True.

      This should solve your problem.

       
    • Bedros Hanounik

      Bedros Hanounik - 2004-06-01

      use wxpanel. Place wxpanel first in the frame, then place whatever control you want on the top of it. Use sizers if you want more flexibility

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks