Search found 442 matches

by jfouche
Wed Oct 20, 2010 3:12 pm
Forum: C++ Development
Topic: Maximize/minimize aui panes programatically
Replies: 11
Views: 1529

Sorry, as it's a foreign language for me, I probably make some mistakes... 1 - What happen if you change your code to put this pane at the bottom instead of the same row than the center pane ? 2 - What happen if you add the Maximize button on this this pane, and press it ? 3 - Here is the code of th...
by jfouche
Wed Oct 20, 2010 1:21 pm
Forum: C++ Development
Topic: How can i Plot the points on XY axis in wxWidgets?
Replies: 6
Views: 947

You'd better test it yourself. Download them, and you'll find a sample directory containing what you want : a sample.
by jfouche
Wed Oct 20, 2010 9:01 am
Forum: C++ Development
Topic: How can i Plot the points on XY axis in wxWidgets?
Replies: 6
Views: 947

wxForum and wxWiki are helpfull :)
by jfouche
Wed Oct 20, 2010 8:09 am
Forum: C++ Development
Topic: Maximize/minimize aui panes programatically
Replies: 11
Views: 1529

That was too easy :wink:
If you move this pane elsewhere, is everything fine ?
by jfouche
Mon Oct 18, 2010 3:31 pm
Forum: C++ Development
Topic: Maximize/minimize aui panes programatically
Replies: 11
Views: 1529

Don't forget to store the perspective if you want to restore it.
by jfouche
Mon Oct 18, 2010 12:34 pm
Forum: C++ Development
Topic: wxAUI toolbar use all width
Replies: 15
Views: 2188

Not sure tha AUI toolbar is design for this use. The goal of AUI toolbar is to manage multiple toolbar, move it, ... If you really need a full row, keep the old wxToolbar.

You may give a try to the wxAUI_TB_NO_AUTORESIZE style.
by jfouche
Mon Oct 18, 2010 11:38 am
Forum: Component Writing
Topic: I want a controls vector...
Replies: 4
Views: 1855

If you use wxWidgets 2.8.x, you can use FoldBar (which is in the contrib directory).
by jfouche
Mon Oct 18, 2010 11:10 am
Forum: C++ Development
Topic: Maximize/minimize aui panes programatically
Replies: 11
Views: 1529

Hi Did you try Hidding all other pane ? Something like : bool MaximizePane(const wxString& name) { bool bMaximized = false; wxAuiPaneInfoArray& panes = m_auiMgr.GetAllPanes(); for (size_t i = 0; i < panes.size(); ++i) { wxAuiPaneInfo& paneInfo = panes[i]; if (paneInfo.name == name) { bMaximized = tr...
by jfouche
Fri Oct 15, 2010 7:21 am
Forum: C++ Development
Topic: Forcing a wxGridSizer quadratic?
Replies: 2
Views: 506

For your 1st question (force a quadratic board), I suggest you the following design : - a wxPanel : this will be the window - a wxPanel : the board, which must stay quadratic. The board contains the grid sizer. So : catch the wxSizeEvent in the window, and resize the board to force it square. MyWind...
by jfouche
Thu Oct 14, 2010 3:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Minimize wxWidgets directory
Replies: 3
Views: 696

You can keep only include and lib (but you'd better keep everything, as it's not really a pb, no ?)
by jfouche
Thu Oct 14, 2010 2:23 pm
Forum: C++ Development
Topic: wxAuiManager and layout sizers?
Replies: 6
Views: 959

wxGridSizer* grid = new wxGridSizer( 2, 2, 0, 0 ); pCell1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); grid->Add( pCell1, 0, wxALL|wxEXPAND, 5 ); pCell2 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); grid->Add( pCel...
by jfouche
Thu Oct 14, 2010 12:05 pm
Forum: C++ Development
Topic: wxAuiManager and layout sizers?
Replies: 6
Views: 959

Code: Select all

wxTextCtrl*   pCell1 = new wxTextCtrl(pDummy, wxID_ANY);
is probably better...
by jfouche
Thu Oct 14, 2010 7:30 am
Forum: C++ Development
Topic: wxUSE_GUI=0 and wxTCPServer
Replies: 1
Views: 379

I think you need 2.9.x to do what you want (TCP without GUI). Regarding the wx libraries, it is possible.
by jfouche
Wed Oct 13, 2010 3:49 pm
Forum: C++ Development
Topic: pass wxString by reference
Replies: 10
Views: 1359

#include <wx/wx.h> class wxMiniApp : public wxApp { public: virtual bool OnInit(); void OnClick(wxCommandEvent& event) { GetTopWindow()->Close(); } }; IMPLEMENT_APP(wxMiniApp); void func(wxString& str) { str += wxT(" *"); } bool wxMiniApp::OnInit() { wxString title = wxT("TITLE"); func(title); SetT...
by jfouche
Wed Oct 13, 2010 1:32 pm
Forum: C++ Development
Topic: pass wxString by reference
Replies: 10
Views: 1359

Maybe somebody could confirm what I'm going to say : You can pass wxString by value for [out] functions. In your example, I suppose you did : void func(wxString& str) to avoid using wxString func(const wxString&) which (seems to) cause a wxString copy. But in fact, wxString is design to not copy the...