Search found 38 matches

by Wintermute
Wed Jun 10, 2009 3:01 pm
Forum: C++ Development
Topic: switching from Timer driven loop to mainloop
Replies: 23
Views: 3346

Hmm... I don't think this is due to OnIdle. Try to comment Connect function call, compile and run your app.
by Wintermute
Wed Jun 10, 2009 2:09 pm
Forum: C++ Development
Topic: wxTextCtrl is taking more memory than required
Replies: 3
Views: 585

Hi, there! I'm not sure that this is the right way to determine how much memory your app use. According to man page of top RSS The total amount of physical memory used by the task, in kilobytes But! In fact, one mem page can be committed twice by single process (and twice by different processes as w...
by Wintermute
Wed Jun 10, 2009 10:06 am
Forum: C++ Development
Topic: wxBookCtrl: disable single page
Replies: 8
Views: 900

Actually, I didn't find on MSDN such possibility. In addition I have never see disabled tabs anywhere.
So you can implement this feature somehow by your own. E.g. create generic tab control instead of native one.

Best wishes
by Wintermute
Wed Jun 10, 2009 9:52 am
Forum: C++ Development
Topic: wxBookCtrl: disable single page
Replies: 8
Views: 900

Yeah. It seems to be a problem.
Currently there is no way to do this simply.
I suggest you to use one of the following:
  • alert user when he or she is trying to change selection to disabled page;
  • mark disabled page with special text label, or
  • mark disabled page with special image.
Kind regards
by Wintermute
Wed Jun 10, 2009 8:13 am
Forum: C++ Development
Topic: switching from Timer driven loop to mainloop
Replies: 23
Views: 3346

Hi, again! First of all, include "TablesFrm.h" in TablesApp.h (I suppose this is why the first two error messages appear). Then, have you noticed that I prepend "TablesFrmApp::" before "OnIdle" in TablesApp.cpp? Of course, OnIdle should be the member of TablesFrmApp to access frame member. So, fix t...
by Wintermute
Tue Jun 09, 2009 10:32 pm
Forum: C++ Development
Topic: Trying to compile a tutorial
Replies: 3
Views: 932

Hi!

I've used one of makefiles in samples directory in order to create makefile for my project.
So I suggest you to use makefile.gcc under samples directory as start point.
Its quite easy to understand and fit to this simple program.

Kind regards
by Wintermute
Tue Jun 09, 2009 8:06 pm
Forum: C++ Development
Topic: wxBookCtrl: disable single page
Replies: 8
Views: 900

Hi, there! You may use events to prevent page changing EVT_NOTEBOOK_PAGE_CHANGING(id, func) The page selection is about to be changed. Processes a wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING event. This event can be vetoed. For instance void OnChanging(wxNotebookEvent& event) { if (event.GetSelection() == ...
by Wintermute
Tue Jun 09, 2009 4:10 pm
Forum: C++ Development
Topic: Having trouble with XRC
Replies: 5
Views: 732

*deleted*
by Wintermute
Tue Jun 09, 2009 11:09 am
Forum: C++ Development
Topic: switching from Timer driven loop to mainloop
Replies: 23
Views: 3346

Yeah, well! What are the first three error messages?
by Wintermute
Tue Jun 09, 2009 11:00 am
Forum: C++ Development
Topic: C++ assertion fault (trac is down for me)
Replies: 3
Views: 359

I suggest you the following style: wxFLP_SAVE | wxFLP_OVERWRITE_PROMPT | wxFLP_CHANGE_DIR
by Wintermute
Tue Jun 09, 2009 10:54 am
Forum: C++ Development
Topic: C++ assertion fault (trac is down for me)
Replies: 3
Views: 359

Hi, there!

Its not a bug:
wxFLP_DEFAULT_STYLE
The default style: includes wxFLP_OPEN | wxFLP_FILE_MUST_EXIST and, under wxMSW only, wxFLP_USE_TEXTCTRL.
Kind regards
by Wintermute
Tue Jun 09, 2009 7:48 am
Forum: C++ Development
Topic: wxDebugContext issue
Replies: 0
Views: 272

wxDebugContext issue

Hey guys! I'm having fun with debug facilities of wx now. First of all I've compiled memckeck sample from wxMSW-2.8.9 port distribution. But there was no messages at all. So, I've commented lines changing active log target to wxLogStderr (since there is no stderr and stdout linked to app). After thi...
by Wintermute
Tue Jun 09, 2009 6:20 am
Forum: C++ Development
Topic: switching from Timer driven loop to mainloop
Replies: 23
Views: 3346

Hey! As I can see, TablesFrm is a class, not an object (instance of this class). Try the following: class TablesFrmApp : public wxApp { private: TablesFrm *frame; public: bool OnInit(); void OnIdle(wxIdleEvent& event); int OnExit(); }; IMPLEMENT_APP(TablesFrmApp) bool TablesFrmApp::OnInit() { frame ...
by Wintermute
Sun Jun 07, 2009 8:24 am
Forum: C++ Development
Topic: Indented text file to a Tree, what's wrong with my logic?
Replies: 2
Views: 444

Hi! I think it's quite obvious. For instance we have the following file Line1 Line2 Line3 Line 4 First of all we read first line and make call to PopulateTree(file, root, 0, wxT("Line1")). Then (in PopulateTree) we add child to root and read next line. It turned out that pos > indent. So we make cal...
by Wintermute
Fri Jun 05, 2009 4:56 pm
Forum: C++ Development
Topic: Right click event
Replies: 3
Views: 606

Actually this problem is quite interesting. If wxListCtrl is placed in wxDialog derived class instance, EVT_RIGHT_UP fires fine (I mean, everything is ok). If wxListCtrl is placed in wxPanel, which is placed in wxFrame, EVT_RIGHT_UP never fires. But it fires fine on double right click. Very funny. I...