Help needed! Application window size changes when porting application from XP to EXP

A

Avi Rot

Hi! all
I'm trying to build a Embedded XP system .
On the XP system my application works good, but when I move to the EXP,
and run my application on it, the application window size exceeds the screen
limits,
and makes it impossible to work. other applications and icon sizes seem to
be the same in both systems.
On both XP and EXP I use a screen resolution of 1024*768.
Setting a higher screen resolution lowers the color quality, and results in
poor graphics in my application.
My application is a dialog based one (where changing the screen size is not
possible).
I'm using a S3 Graphics Twister display adaptor.
I will appriciate any thoghts or ideas how to solve this problem.
Thanks.
 
D

Dave August

Avi,

Dialog sizes (in general) are based on the font size that the application
uses.
If you are not specifying a font size in your dialog template, it's using
the default system font.
You might try setting the font and size in your template.

FWIW I have no idea why XPe would be using a larger font but it sounds like
your system is using "Large Fonts". This may be a side effect of how you set
you set 1024x768

Dave
 
D

Dave August

Avi,

I just now got my App (which is dialog bassed) running (like 2 minutes ago)
on XPe and am also having many strange problems realted to font sizes. The
main dialog is comming out WAY to big and all the font sizes in other
dialogs it spans are comming out WAY to small... I'm SURE this is realted
to the fonts the dialogs are using. I'll debug more and let youknow what I
find... FYI my app is built NON-UNICODE.

FWIW I am having some strange font issues in the Command Shell... A simple
example, I run ipconfig to see what up with the net... Most of the output is
OK but ALL the days and dates are in unreadable characters.... Like wise the
characters for PM in a dir listing are wrong..

More later

(And no Andy I haven't googled this yet.. I have to go FLYING for a few
hours.. :) )

Dave August
 
S

Slobodan Brcin \(eMVP\)

Hi Dave,

And after googling you will find that this is missing font issue that was and is very hot, from time to time :)

Regards,
Slobodan
 
D

Dave August

Avi,

After googeling this subject I've found most people figured a work around
specific to their problem, so that's the route I'm taking.

FWIW the fix for my sub-dialogs was easy, I was using Arial as the font so I
just included Font:Arial.

My main dialogs are another thing... They are using "MS Sans Serif". I have
been including "MicroSoft Sans Serif" from the beginning, but I gather this
isn't the same font. Since my main dialog only has bitmaped buttons I put
up and no real text, the quick fix for me will be to rebuild my app using
Arial there too. I'm tempted to hack out a quick "Font Enumerator " just to
see the real names of the fonts that are installed.. the descriptions in TD
seem to be confusing...

At one point I included all 4 of the sserife, seriff,sserife,sseriff fonts
(because some one else said that solved their problem) and it only made
things worse, most of the "bug" in the corner of the eval desktop became
unreadable... go figure... so I took them out...

FYI none of this has fixed the problems with fonts in the command shell. I'm
not that worried about it though, since I'm just using it for debug...

Also this image is built multi-linguial, TD insisted that I have at last 1
other font, I chose Greek and I'm sure that's why I'm getting Cyrilc
characters in some places... I've gotten a few clues on how to build this
english only (It'll NEVER go anywhere than the USA) so I hope that will
resolve some of this...

And totaly OFF TOPIC... for any of you pilots out there.. I SOLOED yesterday
morning :))

Dave August
 

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