Exit Wiki

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

Using XRC

Unicode, UTF8, and wxWidgets

Tutorials We Like

wxWidgets tutorial on codeproject

Our wxWidgets Example Overview

Sizer Tutorial

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

wxWidgets Code Exchange

wxSnippets.com

Useful Documentation

List of All wxWidgets Events

wxDataFormat Class Reference

wxDataObject Class Reference

wxTextCtrl Size Notes

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 

You may (or may not) want to throw --enable-unicode on there too, really depends.

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

wxWidgets (last edited 2009-01-06 18:05:32 by DavidLovenduski)