Use relative positioning or constraints
Use wxWindows resource files
Strategies for portability
Contents Up Previous Next

Strategies for portability


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 (wxWindows resource files) on different platforms, with slightly different dimensions in each. Or space your panel items out to avoid problems.


Use wxWindows resource files

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