Search found 81 matches
- Thu Jan 15, 2015 3:55 pm
- Forum: General Development
- Topic: Event class simple question
- Replies: 6
- Views: 2303
Re: Event class simple question
So essentially when the CONNECT code is called with the eventSink parameter set it will create a (delegate instance,event type, id, function) to be acted upon as apposed to (just an ID, and event type and function). via : wxEvtHandler* m_eventSink; struct WXDLLIMPEXP_BASE wxDynamicEventTableEntry : ...
- Thu Jan 15, 2015 2:06 pm
- Forum: General Development
- Topic: Event class simple question
- Replies: 6
- Views: 2303
Re: Event class simple question
ok so let me break this down and maybe that will help me. I have a frame: myframe::wxFrame it has a button: AddButton = new wxButton(Panel1, ID_Add, _("Add"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_Add")); here is the connect line: Connect(ID_Add,wxEVT_CO...
- Thu Jan 15, 2015 3:48 am
- Forum: General Development
- Topic: Event class simple question
- Replies: 6
- Views: 2303
Event class simple question
Is the event class essentially the callback mechinism in wxwidgets?
Ie it is the class that is inherited from by the callee to allow for callbacks?
edit*
Simply put what does the connect() function actually do ? does it somehow insert the function passed into the calling object instance?
Ie it is the class that is inherited from by the callee to allow for callbacks?
edit*
Simply put what does the connect() function actually do ? does it somehow insert the function passed into the calling object instance?
- Mon Jan 12, 2015 10:48 pm
- Forum: Open Discussion
- Topic: learning wxwidgets from scratch
- Replies: 2
- Views: 18767
learning wxwidgets from scratch
Hi , I am in the process of learning wxWidgets from scratch. That is right I have never programmed before. I thought i would use this thread as a diary of my journey for future programmers to reference. ----------- 1. Learn C ----------- Since i have never programmed before i have to start at the be...
- Mon Jan 12, 2015 5:16 pm
- Forum: C++ Development
- Topic: Connect Event - File Exit
- Replies: 3
- Views: 999
Re: Connect Event - File Exit
Thank you for the list. Now I just need to untangle the rest of the logic on how to connect events.
Event programming is still a black box to me.
Event programming is still a black box to me.
- Mon Jan 12, 2015 12:24 am
- Forum: C++ Development
- Topic: Connect Event - File Exit
- Replies: 3
- Views: 999
Connect Event - File Exit
I am attempting to learn how wxwidgets events are handled. Where do i get a list of wxEventTypes to use in : void Connect (int id, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) I finally found the wxEventType is needed buried in a forum...
- Mon Oct 06, 2014 1:45 am
- Forum: C++ Development
- Topic: how to set database ip and login
- Replies: 6
- Views: 2035
Re: how to set database ip and login
Ok i have added the validator code to my TextCtrl and i am getting the compile error: /home/ajonen/distdata/bdn/stable/server.cpp|39|error: ‘wxFILTER_ALPHA’ was not declared in this scope| /home/ajonen/distdata/bdn/stable/server.cpp|39|error: ‘wxTextValidator’ was not declared in this scope| ||=== B...
- Tue Sep 30, 2014 3:16 pm
- Forum: C++ Development
- Topic: how to set database ip and login
- Replies: 6
- Views: 2035
Re: how to set database ip and login
If your dbcon class represents the database connection (btw, probably would be better to use DatabaseLayer for this), then you need to create a constructor with parameters: hostname, port, database name, login, password. Then create a dialog class. The dialog class will contain variables (wxString ...
- Mon Sep 29, 2014 12:27 am
- Forum: C++ Development
- Topic: how to set database ip and login
- Replies: 6
- Views: 2035
how to set database ip and login
What I want is a dialog that sets the ip address of my database connection. What is the best way to implement a dialog to set the ip address of the database to connect to. I have created a wxDialog that has a text box for the server ip address. I have a class that actually does the database connecti...
- Sat Sep 20, 2014 5:48 pm
- Forum: Open Discussion
- Topic: Project - Wine and Spirits Data Categorization
- Replies: 1
- Views: 3255
Re: Project - Wine and Spirits Data Categorization
I have all the binaries compiled for windows wixwidgets for windows 7 too. You won't need to spend time compiling libraries for windows. I also have a site setup to track the work too. Initially i just need help with the basic forms for entering some data. Then there will be some socket work writing...
- Sun Sep 14, 2014 1:21 pm
- Forum: Open Discussion
- Topic: Wxwidgets training and help
- Replies: 0
- Views: 2884
Wxwidgets training and help
I have a server setup with svn and redmine for project management. I have an idea of what I want and i have already started the work on the project. My question is what would it cost to have one of you pros help me and teach me at the same time. I am not looking for face to face help, but help codin...
- Sat Aug 09, 2014 3:16 pm
- Forum: Open Discussion
- Topic: Project - Wine and Spirits Data Categorization
- Replies: 1
- Views: 3255
Project - Wine and Spirits Data Categorization
I have a project started to collect data from Wine and Spirits Distributors and then categorize it and send it back to Wine Suppliers. I have attached a PDF explaining the project. First stage involves wxwidgets and c++. The second stage will include Android app development. I am looking for some pr...
- Fri Jul 11, 2014 5:01 pm
- Forum: C++ Development
- Topic: simple class question
- Replies: 1
- Views: 832
Re: simple class question
forgetting the body of a virtual destructor was the issue:
This fixed the header file:
This fixed the header file:
Code: Select all
virtual ~sup_master(){};
- Fri Jul 11, 2014 4:57 pm
- Forum: C++ Development
- Topic: simple class question
- Replies: 1
- Views: 832
simple class question
here is the class: #ifndef SUP_MASTER_H #define SUP_MASTER_H #include <wx/wx.h> class sup_master { public: sup_master( wxString master_sup_id, wxString supplier_name, wxString supplier_state, wxString supplier_zip, wxString ship_split_script, wxString incoming_zipfile_name, wxString yyyymm ): master...
- Tue May 13, 2014 12:54 am
- Forum: C++ Development
- Topic: call an executable on a server from client?
- Replies: 5
- Views: 1972
Re: call an executable on a server from client?
This is a pretty good tutorial with some great starter code.
http://www.linuxhowtos.org/C_C++/socket.htm
It even gives you a looping server2.c script with a function to start from.
My function will basically just execute commands that i send the server and return the error level back to the client.
http://www.linuxhowtos.org/C_C++/socket.htm
It even gives you a looping server2.c script with a function to start from.
My function will basically just execute commands that i send the server and return the error level back to the client.