Code: Select all
//------------------------------------------------------------------------------
// Source code generated by wxDesigner from file: Projekt.wdr
// Do not modify this file, all changes will be lost!
//------------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "Projekt_wdr.h"
#endif
// For compilers that support precompilation
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// Include private header
#include "Projekt_wdr.h"
#include "Projekt.h"
// Euro sign hack of the year
#if wxUSE_UNICODE
#define __WDR_EURO__ wxT("\u20ac")
#else
#if defined(__WXMAC__)
#define __WDR_EURO__ wxT("\xdb")
#elif defined(__WXMSW__)
#define __WDR_EURO__ wxT("\x80")
#else
#define __WDR_EURO__ wxT("\xa4")
#endif
#endif
// Implement window functions
wxSizer *MyDialogFunc( wxWindow *parent, bool call_fit, bool set_sizer )
{
wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
wxBoxSizer *item1 = new wxBoxSizer( wxHORIZONTAL );
PlayButton *baton=new PlayButton(parent, ID_BITMAPBUTTON, 10 ); //<-here is PlayButton I want put with other buttons (f.e. normal BitmapButton)
wxBitmapButton *item2 = new wxBitmapButton( parent, ID_BITMAPBUTTON, MyBitmapsFunc( 0 ), wxDefaultPosition, wxDefaultSize );
item1->Add( item2, 0, wxALIGN_CENTER, 5 );
wxBitmapButton *item3 = new wxBitmapButton( parent, ID_BITMAPBUTTON, MyBitmapsFunc( 0 ), wxDefaultPosition, wxDefaultSize );
item1->Add( item3, 0, wxALIGN_CENTER, 5 );
item0->Add( item1, 1, wxGROW|wxALIGN_CENTER_VERTICAL, 5 );
wxBoxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );
wxBoxSizer *item5 = new wxBoxSizer( wxVERTICAL );
wxBoxSizer *item6 = new wxBoxSizer( wxVERTICAL );
wxBitmapButton *item7 = new wxBitmapButton( parent, ID_BITMAPBUTTON, MyBitmapsFunc( 0 ), wxDefaultPosition, wxDefaultSize );
item6->Add( baton, 0, wxALIGN_CENTER|wxALL, 5 );//there I add it
wxBitmapButton *item8 = new wxBitmapButton( parent, ID_BITMAPBUTTON, MyBitmapsFunc( 0 ), wxDefaultPosition, wxDefaultSize );
item6->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
item5->Add( item6, 5, wxGROW|wxALIGN_CENTER_VERTICAL, 5 );
wxBoxSizer *item9 = new wxBoxSizer( wxVERTICAL );
item5->Add( item9, 1, wxGROW|wxALIGN_CENTER_VERTICAL, 5 );
item4->Add( item5, 1, wxGROW|wxALIGN_CENTER_HORIZONTAL, 5 );
wxBoxSizer *item10 = new wxBoxSizer( wxVERTICAL );
wxGrid *item11 = new wxGrid( parent, ID_GRID, wxDefaultPosition, wxSize(200,500), wxWANTS_CHARS );
item11->CreateGrid( 10, 10, wxGrid::wxGridSelectCells );
item10->Add( item11, 0, wxGROW|wxALIGN_CENTER_VERTICAL, 10 );
item4->Add( item10, 10, wxGROW|wxALIGN_CENTER_HORIZONTAL, 5 );
item0->Add( item4, 10, wxGROW|wxALIGN_CENTER_VERTICAL, 5 );
if (set_sizer)
{
parent->SetSizer( item0 );
if (call_fit)
item0->SetSizeHints( parent );
}
return item0;
}
// Implement menubar functions
wxMenuBar *MyMenuBarFunc()
{
wxMenuBar *item0 = new wxMenuBar;
wxMenu* item1 = new wxMenu;
item1->Append( wxID_ABOUT, wxT("O programie"), wxT("") );
item1->Append( wxID_EXIT, wxT("Wyjscie"), wxT("") );
item0->Append( item1, wxT("Plik") );
return item0;
}
// Implement toolbar functions
p.s.