wxWidget Layout Algorithm Demo - BoxPlanner

BoxPlanner Many applications specify absolute position and absolute sizes when they lay out controls in the parent window. This strategy has some drawbacks: The created cannot be resized, changes are difficult and creation of good looking is time consuming.

Another way which is very common in cross platform frameworks (, , …) is to use algorithm. A algorithm determines the size and position of its controls based on its policy. Although every control can provide its preferences about its size, position and alignment, the algorithm can ignore these preferences if they are against its policy.

Continue reading wxWidget Layout Algorithm Demo - BoxPlanner - 全文阅读

wxWidgets Programming: Sizer, Frame and Panel

wxwidget-gui-library 个人感觉在 编程时,一开始最难于理解和使用的就是,尤其是在与各种控件、Panel嵌套搭配的时候,包括对控件间隙以及父窗口大小发生改变时各个控件的变化定义等。在网上发现这篇文章非常详细的总结了, Frame和Panel的关系并通过简单的实例深入浅出地讲解了这一部分,转载在此供大家参考,如果你有相关技术问题或者开发心得也可以发评论参加讨论。

[原文如下] 最近在研究跨平台的C/C++ GUI库,基本说来功能强大,稳定且开源的库就是了,关于他们之间具体的比较详见《WxWidgets Compared To Other Toolkits》。 N年以前研究过一段时间的代码,不过主要因为其在开发商用软件还是要一定的license费用,所以不能说是真正的免费跨平台。 则是一套免费开源的跨平台C++ GUI库,它的一个特点就是可以转换为native 的api图形界面。就是说用同样的代码,在平台看起来就是window风格的,在X 平台看起来就是风格的。

Continue reading wxWidgets Programming: Sizer, Frame and Panel - 全文阅读

Contact us

Admin: Bryan Wu