appunti3s:gestione_degli_eventi
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | appunti3s:gestione_degli_eventi [2020/06/08 22:19] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | compilazione | ||
+ | < | ||
+ | |||
+ | <file cpp gui1.h> | ||
+ | #include < | ||
+ | |||
+ | class MiaApp : public wxApp | ||
+ | { | ||
+ | public: | ||
+ | | ||
+ | }; | ||
+ | |||
+ | DECLARE_APP(MiaApp) //vedi gui1.cpp | ||
+ | |||
+ | class MiaCornice : public wxFrame | ||
+ | { | ||
+ | public: | ||
+ | | ||
+ | / | ||
+ | void Uscire(wxCommandEvent& | ||
+ | |||
+ | protected: | ||
+ | | ||
+ | |||
+ | private: | ||
+ | | ||
+ | |||
+ | }; | ||
+ | </ | ||
+ | |||
+ | <file cpp gui1.cpp> | ||
+ | #include < | ||
+ | #ifndef WX_PRECOMP | ||
+ | # | ||
+ | #endif | ||
+ | |||
+ | #include " | ||
+ | |||
+ | BEGIN_EVENT_TABLE(MiaCornice, | ||
+ | EVT_BUTTON(1001, | ||
+ | END_EVENT_TABLE() | ||
+ | |||
+ | IMPLEMENT_APP(MiaApp) //crea il main e il metodo wxGetApp e fa inizializzazioni | ||
+ | |||
+ | bool MiaApp:: | ||
+ | { | ||
+ | | ||
+ | | ||
+ | // | ||
+ | | ||
+ | } | ||
+ | |||
+ | MiaCornice:: | ||
+ | { | ||
+ | b1 = new wxButton(this, | ||
+ | } | ||
+ | |||
+ | void MiaCornice:: | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | </ |
appunti3s/gestione_degli_eventi.txt · Last modified: 2020/06/08 22:19 by 127.0.0.1