VGA or not VGA

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?)
 
J

JB

Actually I am using VS2005 Beta 2 (until my release version arrives).
But I am using the latest WM5.0 SDK and hence the latest emulators.

It seems that in this configuration at least the designer added
controls are automatically and the controls added at runtime are not
resized automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top