Search found 150 matches

by chris
Wed Oct 12, 2005 7:20 am
Forum: Platform Related Issues
Topic: wxStaticText and CreateWindowEx
Replies: 4
Views: 1668

Though the issue is already solved (not calling ctor of wxDialog), one last note: The real problem is you creating a wxWindow-derived object (wxDialog derives from wxWindow) on the stack instead of the heap. Not true with modal dialogs, from the docs: Note that the modal dialog is one of the very fe...
by chris
Fri Oct 07, 2005 10:48 pm
Forum: C++ Development
Topic: EndModal retcode clobbered
Replies: 4
Views: 1662

Hi, I'm not sure what's going on there in your code either. Are your exit methods (OnUserLoginCancelClick and OnLoginUserOkClicked) really being called? wx has default event handlers for wxID_OK and wxID_CANCEL (namely wxDialog::OnOK and wxDialog::OnCancel), perhaps there are some conflicts. You cou...
by chris
Fri Oct 07, 2005 12:45 pm
Forum: C++ Development
Topic: Filespec: what can it be?
Replies: 5
Views: 2094

Hi Geert, sure, trying to write a patch is a good idea. Before you start: What's the opinion of some of the guys with some more in-depth knowledge? Perhaps there's already some other way of doing what you want and it's just that we two people don't know about that. I'd propose you ask guys like leio...
by chris
Fri Oct 07, 2005 8:37 am
Forum: C++ Development
Topic: Filespec: what can it be?
Replies: 5
Views: 2094

Hi Geert, u:\testfile\testdir\*.c;*.h I can imagine no OS system can handle such a request. Well, technically you are right. It's a shame -- IMHO multiple wildcards should be supported at OS level. On the other hand, on *NIX such things are done by the shell; it's perfectly fine to write ls *[.c,.h]...
by chris
Thu Oct 06, 2005 8:56 pm
Forum: C++ Development
Topic: Filespec: what can it be?
Replies: 5
Views: 2094

Hi, after a quick glance on the sourcecode of the Windows port of wxDir I think the scanning works via calling FindFirstFile ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp ) and friends. Though the specs on MSDN aren't very clear about the wildcards, t...
by chris
Sun Oct 02, 2005 11:49 am
Forum: C++ Development
Topic: wxEvent::Skip => wrong explanation in help file?
Replies: 5
Views: 1070

I think you are coming from the wrong direction. Wouldn't surprise me.... :-) :wink: Don't worry, I have been sitting on front of the docs and scratching my head many times. The docs are a bit...er...confusing...in parts. Thanks for the elaborate explanation, Chris. You are welcome. Have fun with t...
by chris
Sun Oct 02, 2005 11:34 am
Forum: C++ Development
Topic: wxEvent::Skip => wrong explanation in help file?
Replies: 5
Views: 1070

Hi Geert, I think you are coming from the wrong direction. Try to think of it like this: There are two possiblities regarding what you want to do with an event: 1. Stop propagation (don't send it to other handlers) 2. Continue propagation (send it to others). In the first case, the idea is that you ...
by chris
Sun Oct 02, 2005 10:42 am
Forum: C++ Development
Topic: wxEvent::Skip => wrong explanation in help file?
Replies: 5
Views: 1070

Yeah, that passage is a bit confusing. You aren't the first to wonder about that, see https://sourceforge.net/tracker/index.php?func=detail&aid=1233828&group_id=9863&atid=109863 . In short: 1. "Default behaviour" means "if you do not call Skip() at all". 2. Well, that's semantics. English is not my ...
by chris
Fri Sep 30, 2005 4:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Questions from a Linux noob
Replies: 3
Views: 1294

Hi, it's actually fairly easy to install Linux stuff "locally" in your home directory. The usual way is to set a "prefix" when configuring. The precise steps are: 1. Extract wx (I'd advise using wxGTK) in your home, e.g. in /home/ yourname /wxGTK2.6.2/. This will create a folder wxGTK-2.6.2 in /home...
by chris
Thu Sep 29, 2005 4:58 pm
Forum: C++ Development
Topic: Generating Events from multiple threads
Replies: 4
Views: 809

Hi Roger,

events are the best method for interprocess communication, so you are on the right way.
Perhaps looking at the event sample (samples\event in your wxWidgets folder) can clear things up. The samples are generally a great source of information for specific parts of wxWidgets.

HTH, Chris
by chris
Tue Sep 27, 2005 12:24 pm
Forum: C++ Development
Topic: Is it me... or is wxApp::OnExit not called?
Replies: 6
Views: 1042

Yeah, works for me, too.

Are you sure that OnExit() doesn't get called? Perhaps there's a fault somewhere within other code. Did you try to display a wxMessageBox in OnExit() to check if it gets called?
by chris
Mon Sep 26, 2005 3:13 pm
Forum: C++ Development
Topic: [SOLVED]: modal dialog on the taskbar
Replies: 23
Views: 4502

I'm not sure if I understood correctly what the problem is exactly, so perhaps I'm talking out of my back right now, but: Did you by chance add the wxDIALOG_NO_PARENT style to the dialog? Dialogs with no parent appear on the taskbar, IIRC. If you did, better be careful. The docs say: wxDIALOG_NO_PAR...
by chris
Mon Sep 26, 2005 3:00 pm
Forum: C++ Development
Topic: Is it me... or is wxApp::OnExit not called?
Replies: 6
Views: 1042

How do you exit OnInit()?
From the docs:
bool OnInit()

This must be provided by the application, and will usually create the application's main window, optionally calling wxApp::SetTopWindow. You may use OnExit to clean up anything initialized here, provided that the function returns true.
Chris
by chris
Fri Sep 23, 2005 3:26 pm
Forum: wxDev-C++
Topic: Including header files in header files.
Replies: 7
Views: 1377

Hi all, Regarding the "const": There's actually some reasoning behind writing "const" after the type name. The type qualifiers "*" and "&" (for pointer and reference) are read right-to-left ; "int *" means "pointer to int", "int &" means "reference to int". Therefore some people use "const" in the s...
by chris
Fri Sep 23, 2005 2:10 pm
Forum: wxDev-C++
Topic: Including header files in header files.
Replies: 7
Views: 1377

lowjoel wrote:wxTextFile is totally different form wxTextCtrl. Textfile uses <wx/textfile.h>, but TextCtrl uses <wx/textctrl.h>.
Yeah, noticed that, too. I guess it was a typo.