Thomas Stockbruegger
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:
This is the bad look of a 16:9 22 inch screen:
Can you help me to fix this?
500 points with a solution.
Best regards,
Thomas
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:
This is the bad look of a 16:9 22 inch screen:
Can you help me to fix this?
500 points with a solution.
Best regards,
Thomas
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.L oadBitmap( IDB_BITMAP _BILD_GRUP PE1);
m_button_BildGruppe.SetBit map(m_bitm ap_Kontakt personen);
m_bitmap_Statistik.LoadBit map(IDB_BI TMAP_STATI STIK);
m_button_Statistik.SetBitm ap(m_bitma p_Statisti k);
I have this problem also if I do not use any:
MoveWindow or SetWindowPos
CBitmap m_bitmap_Kontaktpersonen;
CBitmap m_bitmap_Statistik;
CButton m_button_Statistik;
CButton m_button_BildGruppe;
m_bitmap_Kontaktpersonen.L
m_button_BildGruppe.SetBit
m_bitmap_Statistik.LoadBit
m_button_Statistik.SetBitm
I have this problem also if I do not use any:
MoveWindow or SetWindowPos
ASKER
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:
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
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:
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
ASKER
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
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
ASKER
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
- 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.
Just coz I'm curious - even with classic theme on my Win 7 the radio buttons are larger than in your screenshot.
ASKER
Zoppo, what did you mean with termiate the 'Designs' service?
I can only use Windows 7 or Classic or black with etc...
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.
ASKER
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.
ASKER
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.
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.
ASKER
okay, Thank You.
Schönes langes Wochenende.
Best regards,
Thomas
Schönes langes Wochenende.
Best regards,
Thomas
Merci, ebenso ... :o)