Search found 317 matches

by micros
Wed Sep 13, 2006 9:35 am
Forum: General Forum Issues
Topic: a typo in ranking
Replies: 1
Views: 876

a typo in ranking

I've noticed benedicte Can't get richer then this. Either there's a comma missing after richer, or you meant than instead of then. Well, I think it's the latter. And when he/she gets over 1000, then perhaps the former :wink:
by micros
Wed Sep 13, 2006 9:23 am
Forum: C++ Development
Topic: Some issues when compiling in Windows (wxFileDialog)
Replies: 4
Views: 719

Unaccepted means you haven't yet marked any answer as solving your problem. See this post for further information. (Hey, I wasn't here for quite some time and now discovered the menu "wxAward system FAQ" links there. Look up :)) As to the first part of your problem, although it's quite old... it see...
by micros
Tue Aug 15, 2006 11:24 am
Forum: C++ Development
Topic: wxSplitterWindow & wxScrolledWindow
Replies: 2
Views: 752

EVT_SPLITTER_SASH_POS_CHANGED: The sash position was changed. May be used to modify the sash position before it is set, or to prevent the change from taking place. Processes a wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED event. Sounds weird, and I couldn't figure out how that works from the sources. But...
by micros
Tue Aug 15, 2006 10:22 am
Forum: wxDev-C++
Topic: Center button in both directions?
Replies: 2
Views: 1417

For me cascading two sizers work, but you must be careful to properly set the flags and proportions. I'm using a vertical top-level sizer in the example. The nested sizer is horizontal, with proportion=1 (so that it fills the available vertical space) and with wxALIGN_CENTER_HORIZONTAL flag (no wxEX...
by micros
Tue Jul 18, 2006 8:39 am
Forum: C++ Development
Topic: Restore frame size when app startup
Replies: 7
Views: 1448

Hi, I just wanted to do the same thing, and faced the same problem :( Now I come with my piece, which seams to have solved it... Practically only swapped the SetSize() and Maximize() calls in frame construction. I guess the problem was that Maximize() (either the one called upon startup or the one t...
by micros
Wed Jul 05, 2006 9:50 pm
Forum: C++ Development
Topic: Multiple CPP files, single common custom event
Replies: 7
Views: 1129

As to the last poster, you could write portable code by testing the WXUSINGDLL definition (or something like that), and using preprocessor commands to conditionally execute different macros. Not necessary. You can write portable code by just using DECLARE_LOCAL_EVENT_TYPE for all event types declar...
by micros
Wed Jul 05, 2006 10:18 am
Forum: C++ Development
Topic: Multiple CPP files, single common custom event
Replies: 7
Views: 1129

You need DECLARE_LOCAL_EVENT_TYPE and DEFINE_LOCAL_EVENT_TYPE. There's no difference between LOCAL and non-LOCAL, until you use wxWidgets DLL. It should be mentioned in docs that one probably wants LOCAL when declaring custom event types.
by micros
Mon Jun 26, 2006 8:45 am
Forum: C++ Development
Topic: using connect for non subclassed events
Replies: 3
Views: 788

so in conclusion for future reference it looks that dynamically setting events requires the use of the basic event macros at least. No. I think the linker error appeared because you removed BEGIN_EVENT_TABLE etc. but forgot to remove DECLARE_EVENT_TABLE. i am not sure what the very first argument i...
by micros
Mon Jun 26, 2006 8:15 am
Forum: Platform Related Issues
Topic: Path of *.exe to load a bitmap, for wince
Replies: 4
Views: 958

There are argc and argv member variables in wxApp, similar to main's arguments. I'm sure the first string will be the path to exe. // use this in YourApp::OnInit() wxFileName fn(argv[0]); fn.SetFullName(wxT("button.png")); wxBitmap b1(fn.GetFullPath(), wxBITMAP_TYPE_PNG); // you can extract the path...
by micros
Thu Jun 22, 2006 3:30 am
Forum: C++ Development
Topic: Forcing minimum window size...
Replies: 1
Views: 545

I think this can be done with SetMinSize(wxSize(-1, 300)). You don't need to handle that yourself.
by micros
Wed Jun 21, 2006 7:31 pm
Forum: C++ Development
Topic: app crashes when unloading dll
Replies: 6
Views: 1068

One thing I need to know is whether you're using wx.dll or a static library. I strongly recommend dll for this project. If I got you right this means using vc_dll instead of vc_lib? Then wx will be loaded dynamically by the main app and when I load my own dll wx will not be loaded again, because it...
by micros
Wed Jun 21, 2006 10:11 am
Forum: C++ Development
Topic: SendMessage causing deadlock!
Replies: 3
Views: 1356

For the purpose of logging another than the main thread's progress, you should create a custom event, pack the message in and post it either to the main frame or the app (it's derived from wxEvtHandler, too). // in the thread's source #include <stdarg.h> DEFINE_LOCAL_EVENT_TYPE(myEVT_LOGMSG); static...
by micros
Tue Jun 20, 2006 5:13 pm
Forum: General Development
Topic: More than one frame within an application
Replies: 5
Views: 1202

If the event sink is not specified than the documentation of Connect says that this is used. That's right. But you must understand that inside Connect, this refers to the object being called. textCtrl in your case. What do you think about this code? ((Frame*)textCtrl)->OnTextCtrl(...); Evil. Castin...
by micros
Tue Jun 20, 2006 10:00 am
Forum: Compiler / Linking / IDE Related
Topic: Problem linking against wxWidgets Dll in Visual C++
Replies: 2
Views: 741

Add WXUSINGDLL to preprocessor defines when building the app.
by micros
Tue Jun 20, 2006 9:26 am
Forum: C++ Development
Topic: app crashes when unloading dll
Replies: 6
Views: 1068

Too sad the dll hell talk of mine and upCASE's didn't help :( But if I recall correctly, I came to a conclusion that unloading a dll which created some frames is like heading crash-wards, due to the fact that wxWidgets delay frame destruction. You'd have to delay dll unloading until all it's gui stu...