Hi guys i was wondering how to enumerate all the tools in a given wxToolBar ?
I need that in order to create a snapshot of each tool for creating a dynamic help.
Thanks in advance.
Search found 23 matches
- Tue Aug 02, 2016 6:18 pm
- Forum: C++ Development
- Topic: wxToolBar how to enumerate tools ?
- Replies: 1
- Views: 699
- Tue Jun 21, 2016 11:59 am
- Forum: C++ Development
- Topic: wxSocket File Transfer
- Replies: 1
- Views: 955
wxSocket File Transfer
Hi guys, There is a post a little bit dated from 2010: https://forums.wxwidgets.org/viewtopic.php?f=1&t=35489 bool SendFile(const wxString& fileName, wxSocketBase* socket) { wxASSERT( socket ); if ( !socket->IsOk() ) return false; // should also report an error wxFFile inFile; if ( !inFile.O...
- Thu Jun 02, 2016 7:25 am
- Forum: The Code Dump
- Topic: How to get the IP Address of a LINUX machine programmatically
- Replies: 7
- Views: 19451
Re: How to get the IP Address of a LINUX machine programmatically
Following: wxIPV4address addr; addr.Hostname(wxGetFullHostName()); wxString ipAddr = addr.IPAddress(); Under lUbuntu 16.04 returns "0.0.0.0" as for the : wxIPV4address remote; remote.Hostname(_T("www.wxwidgets.org")); remote.Service(80); wxIPV4address local; wxSocketClient client...
- Wed Jun 01, 2016 5:46 pm
- Forum: The Code Dump
- Topic: How to get the IP Address of a LINUX machine programmatically
- Replies: 7
- Views: 19451
Re: How to get the IP Address of a LINUX machine programmatically
Under lUbuntu
env | grep sbin
shows PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
(default installation no manual additon to the PATH ...)
Regards,
Dode
env | grep sbin
shows PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
(default installation no manual additon to the PATH ...)
Regards,
Dode
- Wed Jun 01, 2016 5:32 pm
- Forum: The Code Dump
- Topic: How to get the IP Address of a LINUX machine programmatically
- Replies: 7
- Views: 19451
Re: How to get the IP Address of a LINUX machine programmatically
Ok, Here is the corrected Version // Lambda get IP Address auto getIPAddress = [&]() { // Locate first device ... uint iLineCount = 0; wxString deviceName = wxEmptyString; wxFileInputStream input(wxT("/proc/net/route")); wxTextInputStream text(input, wxT("\x09"), wxConvUTF8);...
- Wed Jun 01, 2016 2:17 pm
- Forum: The Code Dump
- Topic: How to get the IP Address of a LINUX machine programmatically
- Replies: 7
- Views: 19451
Re: How to get the IP Address of a LINUX machine programmatically
Yes that was the general Idea.
I used that with lUbuntu, and opensuse and the result was ok ...
Regards
Dode
I used that with lUbuntu, and opensuse and the result was ok ...
Regards
Dode
- Tue May 31, 2016 7:04 pm
- Forum: The Code Dump
- Topic: How to get the IP Address of a LINUX machine programmatically
- Replies: 7
- Views: 19451
How to get the IP Address of a LINUX machine programmatically
#include <wx/wfstream.h> #include <wx/txtstrm.h> #include <wx/tokenzr.h> // Lambda get IP Address auto getIPAddress = [&]() { // Locate first device ... uint iLineCount = 0; wxString deviceName = wxEmptyString; wxFileInputStream input(wxT("/proc/net/route")); wxTextInputStream text(in...
- Sun May 15, 2016 3:23 pm
- Forum: General Development
- Topic: wxSocket in a secondary thread
- Replies: 1
- Views: 1114
wxSocket in a secondary thread
Hi guys, I have tried with a certain amount of success to implement a client server Application in wxWidgets. the connection SERVER class wxTcpSocketServer : public wxEvtHandler { public: wxTcpSocketServer(wxWindow* parent); virtual ~wxTcpSocketServer(); void doStart(uint); void doStop(bool); void s...
- Wed May 11, 2016 4:43 am
- Forum: Database Related
- Topic: sqlite and wxwidgets 3.1.0 under ubuntu 16.04
- Replies: 2
- Views: 16454
Re: sqlite and wxwidgets 3.1.0 under ubuntu 16.04
I found it myself: the mentioned deb files were build against wxwidgets 3.0 following wxsqlite3opt.h wxsqlite3dyn.h wxsqlite3def.h wxsqlite3.h were copyed from: /usr/include/wx-3.0/wx under: /usr/include/wx-3.1-unofficial/wx So the Problem is build under the "wrong" library ... Regards
- Tue May 10, 2016 6:43 pm
- Forum: Database Related
- Topic: sqlite and wxwidgets 3.1.0 under ubuntu 16.04
- Replies: 2
- Views: 16454
sqlite and wxwidgets 3.1.0 under ubuntu 16.04
System: LUBUNTU 16.04 wxWidgets 3.1.0: (from codelite site downloaded) wxsqlite: "sudo apt-get install libwxsqlite3-3.0-0 wxsqlite3-3.0-dbg" Old app with wxsqlite code refuses to compile with error: wx/wxsqlite3.h no such file or directory A locate: "locate wxsqlite3.h" does not ...
- Mon Mar 28, 2016 10:11 am
- Forum: C++ Development
- Topic: wxImage and transformation
- Replies: 5
- Views: 2638
Re: wxImage and transformation
For the memoryDC i do not use it anyhow: I need transparency so: wxImage wxImageManager::shearImage(const wxImage &currImage, wxDouble shearX, wxDouble shearY) { int width = currImage.GetWidth(); int height = currImage.GetHeight(); wxSharedPtr<wxImage> img; img = new wxImage(width, height); // M...
- Mon Mar 28, 2016 10:06 am
- Forum: C++ Development
- Topic: wxImage and transformation
- Replies: 5
- Views: 2638
Re: wxImage and transformation
Thanks,
I finally managed to Shear the wxImage on both directions x and y.
I finally managed to Shear the wxImage on both directions x and y.
- Mon Mar 28, 2016 2:35 am
- Forum: C++ Development
- Topic: wxImage and transformation
- Replies: 5
- Views: 2638
wxImage and transformation
Following Problem or misunderstanding: OS: lUbuntu 15.10 wxwidgets version: 3.0.2+dfsg-1.2 I am trying to work with wxImage and transformation on it. Upto now i am abe to rotate an Image usin Rotate on it which does the job perfectly. However using wxGraphicsContext with wxGraphicsMatrix seems not t...
- Thu Mar 17, 2016 5:43 am
- Forum: C++ Development
- Topic: wxSTC looses previous Selection...
- Replies: 3
- Views: 2899
Re: wxSTC looses previous Selection...
Actually the second piece of code did the job.
No i wonder how do i change the selection color ?
Kind Regards
Dode
No i wonder how do i change the selection color ?
Kind Regards
Dode
- Wed Mar 16, 2016 5:27 pm
- Forum: C++ Development
- Topic: wxSTC looses previous Selection...
- Replies: 3
- Views: 2899
wxSTC looses previous Selection...
wxSTC looses previous Selection... void wxSearchInFilesFrame::selectLine(uint iLine) { m_scintilla->GotoLine(iLine - 1); int lineStart = m_scintilla->PositionFromLine(m_scintilla->GetCurrentLine()); int lineEnd = m_scintilla->PositionFromLine(m_scintilla->GetCurrentLine() + 1); m_scintilla->SetSelec...