Strategies for portability
Use relative positioning or constraints
Use relative positioning or constraintsDon'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 filesUse .xrc (wxWidgets resource files) where possible, because they can be easily changed independently of source code.
|