Hi all,

Attached is a (zipped) preliminary set of patches for wxWidgets 2.8.7
support. Some notes to help.

- wxWidgets 2.8.7 was compiled from source using Visual Studio 2008
(i.e. on Windows)
  with the following options:
  - WXWIN_COMPATIBILITY_2_4 0
  - WXWIN_COMPATIBILITY_2_6 0
  - wxUSE_UNICODE 1
  - wxUSE_MEDIACTRL 1
  - wxUSE_XML 1
  - wxUSE_GLCANVAS 1
  - wxUSE_ODBC 1
  Styled text control was also built. I think this means that I've
  enabled all of the 
  current things we support in wxHaskell. The whole thing was built as a
  static library.
- Compiled on top of both 0.10.3 rc1 (tagged) and the released version
(head). Tested 
  against most of the samples/wx directory using rc1 (Windows only).

- Main changes are:
  - (wxc) Changes in managed.cpp for some of the const objects. Previous
  code does not compile
    on VS2008.
  - (wxc) Factored some functions into wxTopLevelWindow
  - (wx) Added TopLevelWindow.hs, which mainly removes some
  functionality from Frame.hs.

The general approach I've taken, as agreed with Eric when I discussed
this patch, is to shoot for wxcore API which is as close as possible to
wxWidgets 2.8. This breaks source compatibility in places, but has some
advantages:
- Possible to refer to wxWidgets documentation for wxcore functions.
- Not always clear what is the 'best' way to maintain compatibility with
more complex
  changes e.g. wxTopLevelWindow introduction.

I'm sure that not all will agree with the approach, but the attached is
a start for wxWidgets 2.8 support.

Best regards
Jeremy

Attachment: wxwidgets2.8.7.patch.gz
Description: GNU Zip compressed data

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to