Search found 1475 matches

by lowjoel
Wed Apr 18, 2007 11:37 am
Forum: wxDev-C++
Topic: EVT_CHAR in wxNoteBook and wxPanel
Replies: 5
Views: 1265

you can dynamically add an event handler with Connect() myPanel->Connect(wxID_ANY, EVT_CHAR, wxKeyEventHandler(MyFrame::OnChar)); the Id parameter specefies the id of the event procesessed, in the case of a keyboard event wxID_ANY is used. the second is the type of event. the third is the function ...
by lowjoel
Wed Apr 18, 2007 11:36 am
Forum: wxDev-C++
Topic: Dependency failure: change .h file, .cpp is not recompiled
Replies: 3
Views: 704

Yep, you got me right.

Joel
by lowjoel
Wed Apr 18, 2007 11:34 am
Forum: wxDev-C++
Topic: Unable to start wxDev-C++ in Windows 9x
Replies: 3
Views: 1026

Ironically, it was a fix to access violations on NT-based systems. I have a fix and the fix is in SVN, but there will not be an official fix for it till the next release. I maintain an alpha which does have it fixed, however.

http://joelsplace.sg/projects/wxdsgn/.

Joel
by lowjoel
Wed Apr 18, 2007 11:31 am
Forum: wxDev-C++
Topic: "Project is not compiled" error message??
Replies: 8
Views: 1758

Hm. I'm not sure, this is kinda tricky as... whether debug information is compiled in is reported by the debugger itself and not the compiler (i.e. debug settings is not detected by command line flags). The message you get is simply a 'convenience' for users to quickly enable debug info and build th...
by lowjoel
Sun Apr 15, 2007 11:49 am
Forum: C++ Development
Topic: wxString objects are not Thread Safe
Replies: 21
Views: 2649

That was what I was thinking, since c_str would then be unable to be a const member function. But if anecdotal evidence proves it wrong... I have no say lol.

Joel
by lowjoel
Sun Apr 15, 2007 5:34 am
Forum: wxDev-C++
Topic: Makefile option not saved
Replies: 6
Views: 1064

The generated makefile is always in the project directory (the same folder as your .dev file). Why do you need to store the makefile's path?

Joel
by lowjoel
Sun Apr 15, 2007 5:33 am
Forum: wxDev-C++
Topic: "Project is not compiled" error message??
Replies: 8
Views: 1758

You specify the output file as part of a makefile, so only make knows the file of the binary that it is linking. For example, if your makefile had this: BIN = MYAPP LIB = .dll EXE = .exe all: $(OBJS) $(LIBOBJS) $(CC) $(LINKOPTS) -o $(BIN)$(EXE) $(CC) $(LINKOPTS) -o $(BIN)$(LIB) Or something like tha...
by lowjoel
Sun Apr 15, 2007 5:23 am
Forum: C++ Development
Topic: wxString objects are not Thread Safe
Replies: 21
Views: 2649

Hm. Then it shows a flaw in wxString's implementation. But I doubt that's possible as c_str is a const member function, and I doubt there are mutable member variables. Then again, you may not be using wx's wxString, as you may have defined wxUSE_STL to 1 and thus use std::string as the "main" string...
by lowjoel
Sat Apr 14, 2007 10:27 am
Forum: wxDev-C++
Topic: "Project is not compiled" error message??
Replies: 8
Views: 1758

I'm probably not gunna read the entire makefile - it's kinda long, but I think the answer is quite obvious. The IDE doesn't interpret makefiles, so the path to the binary must be given to wxDev-C++. Go to project options -> Build Options -> Executable Output Directory. Set the path to b the path to ...
by lowjoel
Sat Apr 14, 2007 10:24 am
Forum: wxDev-C++
Topic: New to wxDev-C++ & wxWidgets: some questions
Replies: 9
Views: 1563

There's no issue if you need to know where the mouse is. Use wxGetMousePosition(). It returns a wxPoint (so use the .x and .y members). The value is in screen-coordinates, so call wxPoint mousePos = myButtonOrPanelOrWhatever->ScreenToClient(wxGetMousePosition()); then call mousePos.x and mousePos.y ...
by lowjoel
Sat Apr 14, 2007 6:44 am
Forum: C++ Development
Topic: wxString objects are not Thread Safe
Replies: 21
Views: 2649

Read the STL documentation for c_str(). http://dinkumware.com/manuals/?manual=compleat&page=string2.html#basic_string::c_str The member function returns a pointer to a non-modifiable C string constructed by adding a terminating null element (value_type()) to the controlled sequence. Calling any non-...
by lowjoel
Sat Apr 14, 2007 6:40 am
Forum: wxDev-C++
Topic: New to wxDev-C++ & wxWidgets: some questions
Replies: 9
Views: 1563

When you go to the Events tab of the wxBitmapButton, Click on the Drop-down menu and select Add New Function and add your code there. There's no need to inherit from wxBitmapButton. We only inherit wx classes for top-level windows and other "reusable" components (compound controls etc). The & means ...
by lowjoel
Sat Apr 14, 2007 2:01 am
Forum: Compiler / Linking / IDE Related
Topic: wxProertyGrid cannot be found in wxdevcpp6.10-2
Replies: 5
Views: 1013

I've uploaded it to the Devpak server.

Joel
by lowjoel
Sat Apr 14, 2007 1:54 am
Forum: C++ Development
Topic: Equivalent of a VB PictureBox
Replies: 5
Views: 776

Can you please not cross-post over 2 forums?

See http://forums.wxwidgets.org/viewtopic.php?t=13667

Joel
by lowjoel
Sat Apr 14, 2007 1:53 am
Forum: C++ Development
Topic: wxString objects are not Thread Safe
Replies: 21
Views: 2649

Because as thread A reads from the string using c_str(), thread B may be writing to the string. Granted c_str is a const-member function, thread B changed the data as A is reading from it, which basically will result in undefined behaviour.

Joel