Search found 286 matches

by Radek
Sun Dec 09, 2012 4:43 pm
Forum: C++ Development
Topic: windows explore --- menubar
Replies: 1
Views: 798

Re: windows explore --- menubar

In general, correct. You will need to add some sizers: wxWidgets positions child windows (controls) using sizers instead of specifying position and size of the child windows. If you have some experience with Visual C++ or Qt, it is the same technique. "3" is a toolbar. There is an object for it alon...
by Radek
Sun Dec 09, 2012 1:20 pm
Forum: C++ Development
Topic: Adding an ENTER key event to wxRichTextCtrl
Replies: 4
Views: 1685

Re: Adding an ENTER key event to wxRichTextCtrl

This should work, zubenel. I guess that either the button handler or the wxEVT_COMMAND_TEXT_ENTER handler is not called at all. Build a debug target, put breaks in both handlers (you can put them on the "normal method" call) and see whether you reach the breaks on clicking the button and on pressing...
by Radek
Sun Dec 02, 2012 9:40 am
Forum: C++ Development
Topic: Can't Access Class
Replies: 2
Views: 1175

Re: Can't Access Class

There another layout.h on the include path. layout.h is one of the standard wx headers. Maybe this header had been searched for the Layout class. I recommend renaming layout.h to something else. You can also try

Code: Select all

class Layout;
in main.h
by Radek
Fri Nov 23, 2012 5:15 am
Forum: C++ Development
Topic: wxDialog::ShowModal() without stopping the program flow
Replies: 3
Views: 1460

Re: wxDialog::ShowModal() without stopping the program flow

IMO, it's a matter of organization. (1) Create the dialog (in the parent's ctor) but do not show it. The dialog is hidden, the parent is running. (2) Give your dialog a "ShowDlg()" method. When you want to show the dialog, this method is called by the parent. ShowDlg() will do the "few of methods to...
by Radek
Thu Nov 22, 2012 6:35 am
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

Another suspicious: The dialog which loads the database data. #include <wx/xrc/xmlres.h> #include <loaddlg.hpp> LoadDlg::LoadDlg( wxWindow *parent ) { wxXmlResource::Get()->LoadDialog(this,parent,wxT("DirDialog")); DirDialogTree = XRCCTRL(*this,"DirTree",wxGenericDirCtrl); // directory tree DirDialo...
by Radek
Wed Nov 21, 2012 6:13 pm
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

(1) I always use Connect(), no static "window procedures". All Connect()-ing works. This is always checked when I add a new Connect(). The Connect()-ing is nowhere patched nor Unconnect()-ed (I do not need Unconnect() in this app). The params of Connect() should be okay. (2) The crash can be provoca...
by Radek
Wed Nov 21, 2012 5:20 pm
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

(1) No, the Tree wasn't reparented, I am sure. The whole app structure is "rigid", once built from an XRC, it is never manipulated. (2) The this is valid and equal to the value reported in backtrace. I've just checked it. The fields in the this have reasonable values, my own SortBy is Tree::byLabel ...
by Radek
Wed Nov 21, 2012 2:37 pm
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

(1) Yes, the crash is always on leaving the Tree dtor. The next record in the stack is always treectrlg.h:363
(2) The distro: Error 403, you don't have privileges for this document. (Debian, Squeeze)
by Radek
Wed Nov 21, 2012 10:33 am
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

The app is single thread. The mutex can be some kind of default in the depths of wxWidgets. Another platform available on my comp is OS/2, windows are forbidden. I have a single core comp so that bye, bye, VirtualBox (no VTX). As far as wx2.9 is concerned, there is no .deb package around so far and ...
by Radek
Wed Nov 21, 2012 8:34 am
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Re: Random crash in wxTreeCtrl

The full backtrace: #0 0xb7fe2424 __kernel_vsyscall () (??:??) #1 0xb74f1781 raise() (/lib/i686/cmov/libc.so.6:??) #2 0xb74f4bb2 abort() (/lib/i686/cmov/libc.so.6:??) #3 0xb7527e75 ??() (/lib/i686/cmov/libc.so.6:??) #4 0xb7531f71 ??() (/lib/i686/cmov/libc.so.6:??) #5 0xb75337c8 ??() (/lib/i686/cmov/...
by Radek
Tue Nov 20, 2012 5:22 am
Forum: C++ Development
Topic: Random crash in wxTreeCtrl
Replies: 15
Views: 4035

Random crash in wxTreeCtrl

I have a tree class in my project class Tree : public wxTreeCtrl { DECLARE_DYNAMIC_CLASS(Tree) public : enum sort_t { byFile, byLabel, byTitle, byAuthor, bySource, byDate }; static const sort_t DefaultSortType = byLabel; Tree(); Tree( wxWindow *parent ); virtual ~Tree(); sort_t SortBy; void SortTree...
by Radek
Tue Nov 13, 2012 7:14 pm
Forum: C++ Development
Topic: Fighting with wxTextCtrl
Replies: 6
Views: 1699

Re: Fighting with wxTextCtrl

The problem seems to be solved. Gathering hints from the web, I found out that the problem might consist in my wxTextCtrl being single line. A single line wxTextCtrl was reported ignoring styles. Indeed, removing the single line attribute from the wxTextCtrl (and redoing the carefully devised dialog...
by Radek
Tue Nov 13, 2012 4:23 pm
Forum: C++ Development
Topic: Fighting with wxTextCtrl
Replies: 6
Views: 1699

Re: Fighting with wxTextCtrl

Debian 6, 32-bit, Gnome.
by Radek
Tue Nov 13, 2012 2:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Is there a IDE supports cdb?
Replies: 2
Views: 1110

Re: Is there a IDE supports cdb?

Therefore mingw (kipade seems not to like it) but it need not do much harm if you have a good IDE. And Code Blocks is good :)
by Radek
Tue Nov 13, 2012 10:56 am
Forum: C++ Development
Topic: Fighting with wxTextCtrl
Replies: 6
Views: 1699

Re: Fighting with wxTextCtrl

deffont.IsOk() returns true. The font seems to be valid.