You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
GUIFrame.h
///////////////////////////////////////////////////////////////////////////////
/// Class GDialogMDI
///////////////////////////////////////////////////////////////////////////////
class GDialogMDI : public wxMDIChildFrame
{
private:
protected:
wxNotebook* m_notebook1;
wxPanel* m_panel1;
wxStaticText* m_staticText1;
wxStdDialogButtonSizer* m_sdbSizer1;
wxButton* m_sdbSizer1OK;
wxButton* m_sdbSizer1Cancel;
public:
GDialogMDI();
//. Correction Manual ...
/*
You shouldn't type the text manually, since inheriting from wxMDIChildFrame,
it should change automatically.
The properties of wxMDIParentFrame and wxMDIChildFrame should also appear in the Editor,
when working with MDI documents is activated, currently only wxWindow, properties
appear. !!!
*/
GDialogMDI( wxMDIParentFrame* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Child Window"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 354,259 ), long style = wxDEFAULT_DIALOG_STYLE );
bool Create( wxMDIParentFrame* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Child Window"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 354,259 ), long style = wxDEFAULT_DIALOG_STYLE );
~GDialogMDI();
Another idea that could be easier to implement, could be in the toolbar, where it says "add Frame", it would be to put another similar button like "add MDI Frame", along with all the required configuration, the same would be for the creation of the Dialog, "add Dialog MDI", and all its properties, I'll see if I find some icons that could be useful, greetings, thanks, it's a good program!
wxFB does not support MDI, the subclass feature cannot be used because it cannot change the signature of the generated methods. Currently i don't see any other option but adding dedicated components for these widgets. However, im afraid the current type model isn't sufficient because of the special property of the child windows which must be added directly to a parent MDI window only.
TL;DR: This is quite some work for a feature Microsoft has declared to be obsolete so i have no plans to realize this. However, PR's are welcome.
PruebaMDI.zip
![wxFormBuilder_nICwbPl717]
(https://github.com/wxFormBuilder/wxFormBuilder/assets/5530499/9dfe2eb5-4a02-4961-a4c2-e3ffc440b253)
How can you create the MDI Frames, and the MDI Child dialogs, properly, because the parameter of the constructor here does not change, is there any example of how to use it making MDI Frames?
`
GUIFrame.h
///////////////////////////////////////////////////////////////////////////////
/// Class GDialogMDI
///////////////////////////////////////////////////////////////////////////////
class GDialogMDI : public wxMDIChildFrame
{
private:
};
PruebaMDIMain.cpp
void PruebaMDIFrame::call_CreateMDIChild(wxCommandEvent& event)
{
DialogMDI *frm = new DialogMDI(this);
frm->Center();
frm->Show();
}
`
The text was updated successfully, but these errors were encountered: