We like to use wxWidgets for our cross-platform development needs. Here are some tips and tutorials we have created about wxWidgets.
Tutorials We've Written
Tutorials We Like
wxWidgets tutorial on codeproject
Our wxWidgets Example Overview
Tools We Like
DialogBlocks. See our wxWidgets/DialogBlocksTips.
Beginner Stuff
On How To Add Controls To Sizers
Advanced User Stuff
On wxString -> std::string and Unicode mode
Knowing what configure options you used to build the binaries in macbuild with: open config.log... after header info it will tell you.
Code Snippets Online
Useful Documentation
Code Snippets
wxString convertNativeToUTF8(wxString nativeEncodedStr)
{
wxWCharBuffer wChars = nativeEncodedStr.wc_str(wxConvLocal); //native -> unicode
wxString output( wChars, wxConvUTF8 ); //unicode -> utf8
return (output);
}
void TriggerAsDefaultItem(wxWindow* defaultItem)
{
wxCommandEvent fakeBtnClicked(
wxEVT_COMMAND_BUTTON_CLICKED,
defaultItem->GetId() );
fakeBtnClicked.SetEventObject(defaultItem);
GetEventHandler()->ProcessEvent( fakeBtnClicked );
}
How we like to build wxWidgets
./configure --enable-monolithic --enable-universal_binary --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
You may (or may not) want to throw --enable-unicode on there too, really depends. (But not in 2.9.0)
Debugging wxWidgets
For more information on debugging wxWidgets with GDB see GDB/WxWidgets
Comments:
Add comments by visiting: wxWindows/Comments
wxWindows is wxWidgets now, I know - RPW