G
Guest
I have written a little app that runs on Pocket PC using the Version 2.0 of
the compact Framework and suits this smaller screen size of 320 x 240.
I have recompiled it to run on the full version of the .Net framework 2.0
and a touchscreen and it runs nicely.
What I would now like to try to do is tidily scale from 320x240 design time
to any one of the much larger touchscreen sizes determined at runtime of say
800x600 or 1024 x 768.
I can achieve some of this using docking and anchoring however what I would
like is the Font sizes of any child controls to grow by the same percentage
as the parent form or control. Also from what I can see neither docking nor
anchoring can maintain a controls position and size as a percentage of the
original form's size and control's position.
So if the form goes from 320x240 to say 640 x480 then the child controls
double in size in each direction and the font sizes of those child controls
double. The control's position and size are adjusted by the ***percentage***
growth.
I have seen the AutoScaleMode and AutoScaleDimensions but these don't quite
seem to pertain to this situation but rather the device or system's dpi.
Could anyone give me any tips or a pointer in a different direction before I
go off and start writing some code iterating down through child controls etc.
Cheers
Simon
the compact Framework and suits this smaller screen size of 320 x 240.
I have recompiled it to run on the full version of the .Net framework 2.0
and a touchscreen and it runs nicely.
What I would now like to try to do is tidily scale from 320x240 design time
to any one of the much larger touchscreen sizes determined at runtime of say
800x600 or 1024 x 768.
I can achieve some of this using docking and anchoring however what I would
like is the Font sizes of any child controls to grow by the same percentage
as the parent form or control. Also from what I can see neither docking nor
anchoring can maintain a controls position and size as a percentage of the
original form's size and control's position.
So if the form goes from 320x240 to say 640 x480 then the child controls
double in size in each direction and the font sizes of those child controls
double. The control's position and size are adjusted by the ***percentage***
growth.
I have seen the AutoScaleMode and AutoScaleDimensions but these don't quite
seem to pertain to this situation but rather the device or system's dpi.
Could anyone give me any tips or a pointer in a different direction before I
go off and start writing some code iterating down through child controls etc.
Cheers
Simon