Link to home
Start Free TrialLog in
Avatar of Thomas Stockbruegger
Thomas StockbrueggerFlag for Germany

asked on

Need some help with design

Hallo,
I have written this program with mfc c++ and it looks nice on a 4:3   17 inch screen.
Every screen/display works from 1280 x 1024 to 800 x 600.

On an 16:9   22 inch screen the pictures on my bitmaps are looking much to big.
Every screen/display will have this bad look.

This is the nice look of a 4:3  17 inch screen:

User generated image


This is the bad look of a 16:9  22 inch screen:

User generated image


Can you help me to fix this?
500 points with a solution.

Best regards,
Thomas
Avatar of Kevin Stanush
Kevin Stanush
Flag of United States of America image

What technique are you using to draw the images onto the buttons?  To simplify things (assuming you want to keep things simple), start by allowing a bit more room around some of the controls, and make the buttons a bit larger or your images a bit smaller.  I don't have a problem with an MFC/C++ application, but might be using a different method of getting the images onto the buttons, which seems to be the only problem.  The clipping can be fixed by allowing a bit more room, which you sometimes have to do. If you drop things too closely, a 16:9 will sometimes chop things off.
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thomas Stockbruegger

ASKER

I am using this to add the buttons:

CBitmap m_bitmap_Kontaktpersonen;
CBitmap m_bitmap_Statistik;

CButton m_button_Statistik;
CButton m_button_BildGruppe;


m_bitmap_Kontaktpersonen.LoadBitmap(IDB_BITMAP_BILD_GRUPPE1);
m_button_BildGruppe.SetBitmap(m_bitmap_Kontaktpersonen);  

m_bitmap_Statistik.LoadBitmap(IDB_BITMAP_STATISTIK);
m_button_Statistik.SetBitmap(m_bitmap_Statistik);


I have this problem also if I do not use any:
MoveWindow or SetWindowPos
Hello,
something strange happened. Today it works. Every bitmap looks fine.
I am working on a 4:3 screen. The 16:9 is another work station.
I did some changes here yesterday:
User generated image
but even with a new start, there was the same bad result.
Today....everyting works. I do not know why.

Thanks a lot for your help. Till next time....
Best regards,
Thomas

Vielen Dank und
noch einen schönen Tag
Thank you
I took a deeper look into the screenshots and found it's strange: It's neither the size of the texts nor the size of the images which differ, it's only the size of the buttons, they're all smaller in the second screenshot, even radio-buttons (their icons are 14x14 pixel in the first screenshot, but 12x12 pixel in the second).

The only way I found on my (Windows 7) machine to make radio buttons smaller (12x12) was turning off Windows Designs by terminating the 'Designs' service in the service management console.

You should check if the service is running on both machines.

If this is not the cause I don't know what else it can be, probably it's a issue related to Windows theme's or it comes from some customized common controls or something.

Some questions:

- Wich Windows version do you use?
- Do you use a Windows theme? Is it the same for both schreenshots?
- What version of Visual Studio/MFC do you use?
- Does you application use a manifest?
- Is there anything else you can think of what could be different, un-common, special or otherwise interesting with the PC on which you made the second screenshot?

Best regards,

ZOPPO
Some questions:

- Wich Windows version do you use?  Windows 7  and         Windows 2000 only for Visual Studio 2003 (don´t laugh, but I am used with 2003)
- Do you use a Windows theme? Is it the same for both schreenshots? yes klassik
- What version of Visual Studio/MFC do you use? 2003
- Does you application use a manifest? ???
- Is there anything else you can think of what could be different, un-common, special or otherwise interesting with the PC on which you made the second screenshot?
The first was from Windows 2000 the second from Windows 7 ( but I have another workstation with Windows 7 on 4:3 that works perfect)
This comes only from 16:9
Do you think you could test what happens when you terminate the 'Designs' service on the machine with the 16:9 screen?

Just coz I'm curious - even with classic theme on my Win 7 the radio buttons are larger than in your screenshot.
Zoppo, what did you mean with termiate the 'Designs' service?
I can only use Windows 7 or Classic or black with etc...
I mean terminating the service which implements theming in Windows via the Service Control Panel, to open this you can press WIN-R, type services.msc and press ENTER. Now the list of installed services should be shown, there you should find one which is names 'Design' (in german Windows, in english Windows its name is 'Themes') which should show 'Started' as state. Just select this service and press stop in the toolbar to deactive it, after testing simply press start there again to re-start it.
Zoppo, I will let you tomorrow, right now the workstation with the 16:9 screen is occupied.
Well, it's not to important, it would be just interesting to find the real cause, because as it is now you do not really know what was the problem when you made the screenshots, so if you give the program away to users/customers you can't know if it may happen for them too.
Zoppo, I can not stop Themes. Windows message: you have no access (even as an administrator)
Hm - ok, then it's difficult to test ;o)

I have no problems doing this, hard to say what's different ... so maybe best you can do now is just ot remember this, so when (if at all) users/customers will complain about the issue you can ask them to check if the service is running.
okay, Thank You.
Schönes langes Wochenende.
Best regards,
Thomas
Merci, ebenso ... :o)