Designing a TextCtrl which fills up the entire frame

徘徊边缘 提交于 2019-12-24 06:45:34

问题


I am programming with wxPerl and I was wondering how you would design it so that a textctrl, or really any component, would fill up the entire frame and resize with the window?

So far my attempts at researching this problem have led me to believe that potentially using the wxBoxSizer is the way to go but documentation for wxPerl is a little scarce..

Thank you all for any help


回答1:


The documentation for the wxWidgets API is excellent and very comprehensive. wxPerl exposes most of the API in a stratightforward manner.

If a Wx::Frame object has only a single child window, the default size event handler automatically resizes the child to fill the frame.

If you have a more complex requirement then you can overload the handler or, as you say, write a sizer.



来源:https://stackoverflow.com/questions/11271412/designing-a-textctrl-which-fills-up-the-entire-frame

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!