Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

New wxSmith: Testing

<< < (3/3)

mike__t:
The new version seems to work a lot better on Linux, although the select handles seemed to get out of position with the controls on occasion.

Just out of curiousity, will xrc import be returning?

stahta01:
I was patching code in prep for testing wxWidgets 2.9 cvs and found something that looks strange.

Should you not be using "wxSAVE|wxOVERWRITE_PROMPT" instead of "wxOPEN|wxOVERWRITE_PROMPT"?

Tim S

wxSmith\wxwidgets\wxwidgetsguiappadoptingdlg.cpp:245

--- Code: ---void wxWidgetsGUIAppAdoptingDlg::OnCreateBtnClick(wxCommandEvent& event)
{
    wxString FileName = ::wxFileSelector(
        _("Please select cpp file where application class should be created"),
        m_GUI->GetProjectPath(),
        _T("myapp.cpp"),
        _T("cpp"),
        _T("C++ source files|*.cpp|All files|*"),
        wxOPEN|wxOVERWRITE_PROMPT);

--- End code ---

byo:

--- Quote from: stahta01 on February 01, 2007, 01:29:25 am ---I was patching code in prep for testing wxWidgets 2.9 cvs and found something that looks strange.

Should you not be using "wxSAVE|wxOVERWRITE_PROMPT" instead of "wxOPEN|wxOVERWRITE_PROMPT"?

Tim S

--- End quote ---

Yes, obviously a bug :) Already fixed in svn


--- Quote from: mike__t on January 28, 2007, 06:15:03 am ---The new version seems to work a lot better on Linux, although the select handles seemed to get out of position with the controls on occasion.

Just out of curiousity, will xrc import be returning?


--- End quote ---

I'll code XRC importing but I thought about something different than in previous wxSmith. I'll start coding it somewhere in next month probably. Now you can do some trick:
If you have f.ex. wxFrame, create select new wxFrame from wxSmith menu, check Use XRC, enter name of xrc file what you want to import and set name of class to name of resource (name parameter in XRC file of root <object> node). Then it will use data from this xrc file.

BYO

Navigation

[0] Message Index

[*] Previous page

Go to full version