Dialog: the limits
-
Hi all, i'm sorry if my request was already discussed in this site but for now i don't find the information that i need. I'm working on a existing SDI project inside MFC VC 6.0. I need to make a window that open with variable dimensions and fields, depending on the information that i pass to it. In other terms i need to have a window that change in accordance of different user input (objects clicked with composition defined at runtime). The possible fields to show in the window are texts (of a variable size and font) and image (.bmp). My ultimate target is to create a window that have a structure that can be later "simply" printed. My problem is the choice of the object(s) to use: i have start using the Dialog wizard of MFC but it seems limited. I don't know if it is the better way to make it... I don't know if it is better to make a child frame window. I think that probably there are additional components/class/library on the net that can do that, but i don't find it for now. Thanks in advantage for all the suggestions.
-
Hi all, i'm sorry if my request was already discussed in this site but for now i don't find the information that i need. I'm working on a existing SDI project inside MFC VC 6.0. I need to make a window that open with variable dimensions and fields, depending on the information that i pass to it. In other terms i need to have a window that change in accordance of different user input (objects clicked with composition defined at runtime). The possible fields to show in the window are texts (of a variable size and font) and image (.bmp). My ultimate target is to create a window that have a structure that can be later "simply" printed. My problem is the choice of the object(s) to use: i have start using the Dialog wizard of MFC but it seems limited. I don't know if it is the better way to make it... I don't know if it is better to make a child frame window. I think that probably there are additional components/class/library on the net that can do that, but i don't find it for now. Thanks in advantage for all the suggestions.
you can dynamically create dialogs .. google for 'c++ dynamic dialogs' and you get things like :- http://www.ddj.com/windows/184405811[^] http://www.codeproject.com/KB/dialog/dynamicdialog.aspx[^] and Im pretty sure there's some more articles on CP illustrating the same (I've a headache at the moment so I'm off to bed, the rest is up to you) hth, 'g'
-
you can dynamically create dialogs .. google for 'c++ dynamic dialogs' and you get things like :- http://www.ddj.com/windows/184405811[^] http://www.codeproject.com/KB/dialog/dynamicdialog.aspx[^] and Im pretty sure there's some more articles on CP illustrating the same (I've a headache at the moment so I'm off to bed, the rest is up to you) hth, 'g'
Thanks for the quick answer but it was not useful. I'm pretty sure that on the net there are answers to my question, but the problem is to find the one that works well and exactly as i need. Now, i have modify the MFC example DLGTEMP and i have understand how to set dinamically the dimension of a Dialog, and how, where and whom string-based controls (static text, buttons, edit box,etc) to put inside it, at run-time. My first trick is that i don't know how to set different fonts inside my dialog. My second problem is to find a simply method to load dinamically bitmap from a file (.bmp) and to show it inside my dialog in a position decided at run-time. I see some projects, inside the CP site, to load and manipulate image file but they seems too much complex for my need. Does exist controls that i can use inside dialogs as a dynamic container for others controls? Thanks for every non banal suggestions