J
Joseph Byrns
I am using the standard non VGA option in the designer to design my forms
for a WM 5.0 device (using emulators for testing). When I create a label of
height 20 and run it on the non-VGA emulator I get a label displayed of
height 20, exactly as would be expected. When I run the app on a VGA
emulator the label gets resized to 40, this is also good news as far as I am
concerned.
Here is the problem, if I create the label at runtime with a height of 20
and run it on the VGA device, it actually displays as 20, which is of no use
as the text in the label gets truncated. My question is, how is the label
created in the designer getting resized automatically and how can I do the
same thing with the labels I create.
(I realise here I can check the screen size and size the label accordingly,
but as this is not what is happening with the designer created label, so
what code for the designer label causes this?)
for a WM 5.0 device (using emulators for testing). When I create a label of
height 20 and run it on the non-VGA emulator I get a label displayed of
height 20, exactly as would be expected. When I run the app on a VGA
emulator the label gets resized to 40, this is also good news as far as I am
concerned.
Here is the problem, if I create the label at runtime with a height of 20
and run it on the VGA device, it actually displays as 20, which is of no use
as the text in the label gets truncated. My question is, how is the label
created in the designer getting resized automatically and how can I do the
same thing with the labels I create.
(I realise here I can check the screen size and size the label accordingly,
but as this is not what is happening with the designer created label, so
what code for the designer label causes this?)