Can I create a dialog template for other dialog boxes?
-
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
-
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
-
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
What would you like on your template? ...really will depend on that... but yes, you should be able to do that, only not through the resource editor, you'll have to do it all through code pretty much.
-
What would you like on your template? ...really will depend on that... but yes, you should be able to do that, only not through the resource editor, you'll have to do it all through code pretty much.
I figured as much. I was just hoping there was some mechanism I did not know about. I am not sure what all I want, other than for all the dialogs to have the same size and base styles. It may change which will be a PITA if I have to redo a bunch of dialogs because someone decides they want them just a little wider or some new logo graphic of a different size.
-
I figured as much. I was just hoping there was some mechanism I did not know about. I am not sure what all I want, other than for all the dialogs to have the same size and base styles. It may change which will be a PITA if I have to redo a bunch of dialogs because someone decides they want them just a little wider or some new logo graphic of a different size.
If you're good with MFC or the WinAPI, should be easy to do if the constant is the size and logos. That's easy to accomplish, except when you want to use your template, anything that goes on it will have to be defined programatically rather than though the editor. That will probably only be hard the first time. The somewhat annoying issue with that is the variable text sizes on Win Vista/7 can make drawing things a pain because you have to size anything containing text according to the text size.
-
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
Here is an example Enhanced MFC Message Boxes[^] (Download 1.2 lite)
-
I am not sure this is possible, but I would like to create a basic dialog that serves as a template for other dialog boxes. Ideally Ill make the first base dialog with the size and properties I want. At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
DeepT wrote:
At this point I know I could then go into the resource editor and add a copy of it and work on the copies. However, I would like to have the ability to then go back and make a change to the template and have the other dialog boxes take on the changes from the template dialog. This add copy method will not do that.
i have done that, however i store my template in XML files and load them on runtime. Little difficult and also no UI is available for same, so you have depends on your Gut feeling and principle of coordinate geometry!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You