Contents Up Previous Next

Strategies for portability

Use relative positioning or constraints
Use wxWidgets resource files


Use relative positioning or constraints

Don't use absolute panel item positioning if you can avoid it. Different GUIs have very differently sized panel items. Consider using the constraint system, although this can be complex to program.

Alternatively, you could use alternative .wrc (wxWidgets resource files) on different platforms, with slightly different dimensions in each. Or space your panel items out to avoid problems.


Use wxWidgets resource files

Use .xrc (wxWidgets resource files) where possible, because they can be easily changed independently of source code.