I have some forms that contain different types of controls such as: UltraTextEditor, UltaCombo, UltraMaskedEditor, etc. My development environment is running under VISTA Business and after properly aligning all the controls I move the .r files to a WindowsXP box for testing. The controls no longer are aligned. It appears that all the UltraTextEditors & UltraMaskedEditors will be aligned but the UltraCombo's no longer are aligned with the Editors.
Has anyone else seen this?
For anyone who runs into this issue the DPI settings between the two boxes were different which caused my problem.
For anyone who runs into this issue the DPI settings
between the two boxes were different which caused my
problem.
Too bad we don't have PPUs anymore
What are the Anchor properties of the controls set to? These should help keep things relatively aligned*.
-- peter
Aligned relative to each other, not somewhat aligned
For anyone who runs into this issue the DPI settings
between the two boxes were different which caused my
problem.
Have you - or anyone else for that matter - played around with the FlowLayoutPanel/TableLayoutPanel/UltraFlowLayoutManager?
Should these be generally used to prevent such problems?
Peter, I guess it's hard to answer this on a general basis.
Anchoring and Docking need a Container to aling child controls to. The Flow and Table layout panels help in splitting the main container into enough child containers. That can help in many situations. But in other cases the automatic moving and resiznig (especially with the flow panels) may be counter-productive or disturbing.
It also depends on the fact if there are other container controls already on the Form (think of TabFolder, ExplorerBar, SplitContainer and so on).
So add them to your toolbox and keep them in your mind...