OOP Question
-
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
-
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
The solution is really up to you. How many dialogs do you have? There are several articles on codeproject dealing with resizable dialogs - they should give you a headstart. But they will require work for every dialog. I don't see any other way though - how a dialog stretches / shrinks will be very dependent on the job it's doing. ie, You may have a bos asking for some text, with an OK button. You want the text box to change in width, but not the button. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
I think you can use of WM_SIZE.
-
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
I found that early that it's a b-itch to try to find ways to automatically resize dialogs and move controls in a natural ways ( looking good in different resolution). I tend to make certain the dialogs work in the smallest resolution supported. BUT : If you find a way to way to generalize a behaviour to resize your dialogs that can work for any dialog in your application, then having a base class that does the resize is a good way to do it. Good luck.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
mehmetned wrote:
I have lots of dialogs in my application
So then that is the actual problem, however I suppose I should assume that for one or more reasons you are not interested in solving that problem. Therefore I would have you look at this.[^] I don't know if I ever tried to use it in Dialogs, probably not since Dialog based apps are lame. However I used it often in MFC View based applications and it works perfectly. It may or may not help you and your thousand dialog problem.
led mike