Search found 10 matches

by Shadowblitz16
Fri Nov 15, 2019 8:08 pm
Forum: C++ Development
Topic: how to detect input up and down on wxControl?
Replies: 12
Views: 1040

Re: how to detect input up and down on wxControl?

@doublemax i know its just a very odd way to do events.
it would be better if there was something like..

Code: Select all

MouseDown = myMouseDownFunction()
or

Code: Select all

MouseDown ->
{
	//my mouse down function
}
by Shadowblitz16
Fri Nov 15, 2019 2:10 am
Forum: C++ Development
Topic: how to detect input up and down on wxControl?
Replies: 12
Views: 1040

Re: how to detect input up and down on wxControl?

wait is this necessary? BEGIN_EVENT_TABLE(wxCustomButton, wxPanel) EVT_MOTION(wxCustomButton::mouseMoved) EVT_LEFT_DOWN(wxCustomButton::mouseDown) EVT_LEFT_UP(wxCustomButton::mouseReleased) EVT_RIGHT_DOWN(wxCustomButton::rightClick) EVT_LEAVE_WINDOW(wxCustomButton::mouseLeftWindow) EVT_KEY_DOWN(wxCu...
by Shadowblitz16
Thu Nov 14, 2019 7:53 pm
Forum: C++ Development
Topic: how to detect input up and down on wxControl?
Replies: 12
Views: 1040

Re: how to detect input up and down on wxControl?

@doublemax can you provide some example code on how to catch the events?
@ONEEYMAN isn't that what I am trying to do?
by Shadowblitz16
Wed Nov 13, 2019 11:11 pm
Forum: C++ Development
Topic: how to detect input up and down on wxControl?
Replies: 12
Views: 1040

how to detect input up and down on wxControl?

is there a way to detect keyboard and mouse up and down events on wxControl? I am trying to make a easier to use wrapper but I am having trouble understanding how to do this.. here is a example of what I am looking for... struct Control : private wxControl { private: wxControl::OnMouseDown(wxMouseBu...
by Shadowblitz16
Tue Oct 15, 2019 6:41 pm
Forum: C++ Development
Topic: menubar is null which crashes program
Replies: 7
Views: 749

Re: menubar is null which crashes program

@doublemax yes moving it made it work.
by Shadowblitz16
Sun Oct 13, 2019 11:00 pm
Forum: C++ Development
Topic: hide MDI child menubar icon and window menu?
Replies: 1
Views: 406

hide MDI child menubar icon and window menu?

is there a way I can get rid of these in a MDI child menu? https://i.imgur.com/f7H8klG.png #include "MainWindow.h" #include <wx/artprov.h> MainWindow::MainWindow(const wxString& title) : wxMDIParentFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 150)) { menuBar = new wxMenuBar(); menu1 =...
by Shadowblitz16
Sun Oct 13, 2019 9:51 pm
Forum: C++ Development
Topic: menubar is null which crashes program
Replies: 7
Views: 749

Re: menubar is null which crashes program

oh weird.
is this a bug? I don't really understand why it needs to be after.
by Shadowblitz16
Sun Oct 13, 2019 8:10 pm
Forum: C++ Development
Topic: menubar is null which crashes program
Replies: 7
Views: 749

menubar is null which crashes program

I am getting a error when trying to do mdi via inheritance. It keeps saying something about the menu being NULL? https://i.imgur.com/0BL50vw.png #pragma once #include <wx/wxprec.h> #include "ChildWindow.h" class MainWindow : public wxMDIParentFrame { public: //Constructor and Deconstructor MainWindo...
by Shadowblitz16
Sun Oct 13, 2019 6:17 pm
Forum: C++ Development
Topic: '&': illegal operation on bound member function expression
Replies: 5
Views: 805

Re: '&': illegal operation on bound member function expression

I just opened the project and built it today and its working with no errors? does anybody know why this could happen? I literally haven't changed anything and its up to date and works. I strongly suggest using Bind() instead of Connect(). Connect() is de-facto deprecated, the only reason it is not d...
by Shadowblitz16
Sun Oct 13, 2019 2:41 am
Forum: C++ Development
Topic: '&': illegal operation on bound member function expression
Replies: 5
Views: 805

'&': illegal operation on bound member function expression

hello I am new to c++ and wxwidgets and was messing around with them to learn them, however I keep getting the error '&`: illegal operation on bound member function expression` with the following code.. //MainWindow.h #pragma once #include <wx/wxprec.h> class MainWindow : public wxFrame { public: //...