wxWidget Layout Algorithm Demo - BoxPlanner

BoxPlanner Many Windows applications specify absolute position and absolute sizes when they lay out controls in the parent window. This strategy has some drawbacks: The created windows cannot be resized, changes are difficult and creation of good looking windows 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 - 全文阅读

Contact us

Admin: Bryan Wu