attempt to fix linking error in one of the tinderbox builds by moving local class declaration out of the function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dddfcb3118
commit
1dcfc3331f
@ -1224,25 +1224,26 @@ void MyFrame::ShowFullAboutDialog(wxCommandEvent& WXUNUSED(event))
|
||||
wxAboutBox(info);
|
||||
}
|
||||
|
||||
// a trivial example of a custom dialog class
|
||||
class MyAboutDialog : public wxGenericAboutDialog
|
||||
{
|
||||
public:
|
||||
MyAboutDialog(const wxAboutDialogInfo& info)
|
||||
{
|
||||
Create(info);
|
||||
}
|
||||
|
||||
// add some custom controls
|
||||
virtual void DoAddCustomControls()
|
||||
{
|
||||
AddControl(new wxStaticLine(this), wxSizerFlags().Expand());
|
||||
AddText(_T("Some custom text"));
|
||||
AddControl(new wxStaticLine(this), wxSizerFlags().Expand());
|
||||
}
|
||||
};
|
||||
|
||||
void MyFrame::ShowCustomAboutDialog(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
class MyAboutDialog : public wxGenericAboutDialog
|
||||
{
|
||||
public:
|
||||
MyAboutDialog(const wxAboutDialogInfo& info)
|
||||
{
|
||||
Create(info);
|
||||
}
|
||||
|
||||
// add some custom controls
|
||||
virtual void DoAddCustomControls()
|
||||
{
|
||||
AddControl(new wxStaticLine(this), wxSizerFlags().Expand());
|
||||
AddText(_T("Some custom text"));
|
||||
AddControl(new wxStaticLine(this), wxSizerFlags().Expand());
|
||||
}
|
||||
};
|
||||
|
||||
wxAboutDialogInfo info;
|
||||
InitAboutInfoAll(info);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user