Search found 48 matches

by Cunoo
Sun Mar 07, 2021 9:56 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 642

Re: I cant open two different windows

thanks now its working and what thoes mean ? this ID ? its just ID for button ? An "id" is used to uniquely "id"entify an object, in this case a wxButton. EVT_BUTTON(ID_BUTTON_REGISTER, AmiFrame::register_button) wxButton *register_button = new wxButton(this, ID_BUTTON_REGISTER,...
by Cunoo
Sat Mar 06, 2021 11:54 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 642

Re: I cant open two different windows

i try to with wxid any and its same login opening register everytime but i domt know why No, you should *not* use wxID_ANY. wxID_ANY in an event table, it means "matches for any ID". And when passing it to constructor, it means "create a new ID". Where ever idMenuQuit and idMenu...
by Cunoo
Sat Mar 06, 2021 10:03 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 642

Re: I cant open two different windows

EVT_BUTTON(wxID_ANY, AmiFrame::register_button) wxButton *register_button = new wxButton(this, wxID_ANY, "Register", wxPoint(400, 300), wxSize(70,50), 0); You need to use a unique ID instead of wxID_ANY. I would also suggest to use a different ID for the login button, wxID_OPEN does not r...
by Cunoo
Sat Mar 06, 2021 12:34 am
Forum: C++ Development
Topic: I cant open two different windows
Replies: 7
Views: 642

I cant open two different windows

Hi i cant open two differences window in app my code look like this : I have two difference buttons Login and Register. if i click on Login that i open register page. Butt that button must opened Login page. some idea where should be error ? (sorry for my bad english) /******************************...
by Cunoo
Mon Feb 22, 2021 10:07 pm
Forum: C++ Development
Topic: Just advice
Replies: 1
Views: 224

Just advice

Hi every i came here for advice i want create register system like on picture.. where should i start ? i have mysql database. will be best idea use SQL in project and mix up c++ and SQL ?
by Cunoo
Tue Feb 16, 2021 9:42 pm
Forum: C++ Development
Topic: button dont work with Events
Replies: 7
Views: 516

Re: button dont work with Events

sorry for later answer. but why does mean bind ? when should i use ? The Bind() call does the same as the event table entry, it "binds" an event handler to a certain event type. I had overlooked the event table in entry in your code, so the Bind() call is not needed. Sorry for the confusi...
by Cunoo
Tue Feb 16, 2021 8:48 pm
Forum: C++ Development
Topic: button dont work with Events
Replies: 7
Views: 516

Re: button dont work with Events

sorry for later answer. but why does mean bind ? when should i use ? The Bind() call does the same as the event table entry, it "binds" an event handler to a certain event type. I had overlooked the event table in entry in your code, so the Bind() call is not needed. Sorry for the confusi...
by Cunoo
Mon Feb 15, 2021 11:56 pm
Forum: C++ Development
Topic: button dont work with Events
Replies: 7
Views: 516

Re: button dont work with Events

You probably wanted something like this: .... // create button wxButton *register_button = new wxButton(this, wxID_ANY, "OUR PAGE", wxPoint(150, 200), wxSize(100,100), 0); // Bind event handler register_button->Bind(wxEVT_BUTTON, &AmiFrame::OnButton, this) } // event handler void AmiF...
by Cunoo
Sat Feb 13, 2021 10:25 pm
Forum: C++ Development
Topic: button dont work with Events
Replies: 7
Views: 516

button dont work with Events

hi where is problem ? i want declare button in consturctor.. see on picture void AmiFrame::register_button(wxCommandEvent &event){ // wxPanel *wxPanel_register_button = new wxPanel(this, wxID_ANY); wxButton *wxButton_register_button; wxButton_register_button = new wxButton(this,wxID_ANY, "O...
by Cunoo
Fri Feb 12, 2021 8:10 pm
Forum: C++ Development
Topic: wxButon cannot load size
Replies: 3
Views: 440

Re: wxButon cannot load size

When a top level window such as wxFrame only has 1 child and that child is not managed by a sizer, that child is automatically resized to fill all available space. The reason for this is that such windows should only have a wxPanel as their single child. So either 1) put your button in a sizer. Or ...
by Cunoo
Thu Feb 11, 2021 10:25 pm
Forum: C++ Development
Topic: wxButon cannot load size
Replies: 3
Views: 440

wxButon cannot load size

Hello this is my source file. variable HelloWorld its button why i cant change size ? why its button like whole frame (main window) ? where its problem i cant find any... gui_tcpFrame::gui_tcpFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame(NULL, wxID_ANY, t...
by Cunoo
Sun Feb 07, 2021 12:43 am
Forum: Compiler / Linking / IDE Related
Topic: wx/wxprec.h: No such file or directory
Replies: 17
Views: 2620

Re: wx/wxprec.h: No such file or directory

Hi, Hi, If you build wxWidgets yourself - go to the wxWidgets directory and find a file config.log. Open it and you will see the configure line as one of the first line there. Let us know how it goes with Anjuta/CodeLite. Thank you. P.S.: There is a main CodeLite *nix developer here with the nick o...
by Cunoo
Sun Feb 07, 2021 12:26 am
Forum: Compiler / Linking / IDE Related
Topic: wx/wxprec.h: No such file or directory
Replies: 17
Views: 2620

Re: wx/wxprec.h: No such file or directory

Hi, If you build wxWidgets yourself - go to the wxWidgets directory and find a file config.log. Open it and you will see the configure line as one of the first line there. Let us know how it goes with Anjuta/CodeLite. Thank you. P.S.: There is a main CodeLite *nix developer here with the nick of Da...
by Cunoo
Fri Feb 05, 2021 9:06 pm
Forum: Compiler / Linking / IDE Related
Topic: wx/wxprec.h: No such file or directory
Replies: 17
Views: 2620

Re: wx/wxprec.h: No such file or directory

Hi, I presume you built it yourself. What configure command did you use? With Anjuta you need to install wxWidgets and then create the project based on GTK-> wxWidgets. Thank you. i am on laptop i dont remember (wxwidgets have on main PC) i just install code lite its wxcrafter and wxwidgets its a s...
by Cunoo
Fri Feb 05, 2021 8:33 pm
Forum: Compiler / Linking / IDE Related
Topic: wx/wxprec.h: No such file or directory
Replies: 17
Views: 2620

Re: wx/wxprec.h: No such file or directory

Hi, If you are on Linux, you can try Anjuta IDE. Install and create a project based on wxWidgets. On the unrelated note - what version of wx you use? You compile it yourself or install from the repository? Did you get the latest version of C::B? If you build it yourself - what is your configure lin...