FOX Community

Recent site activity

Documentation‎ > ‎

FOX 1.8 Migration Guide

Porting FOX 1.6 Applications to FOX 1.8

This section should provide a kind of cookbook or checklist approach for porting applications. It's especially important to point out the non-obvious changes (i.e. ones the compiler won't scream about) and offer guidance on how to deal with those changes.
  1. All api that require time input have been changed from milliseconds to nanoseconds.
  2. Major api changes in FXString. FXStringFormat and FXStringVal have been replaced by FXString::value. For more information see the changes in FXString.
  3. FXPath::match / fxfilematch arguments have been reversed.
  4. FXGUISignal has been replaced by FXMessageChannel.


What's Changed?

Changes to Dynamic  Link  Library  Support

The fxdllOpen, fxdllClose, fxdllSymbol and fxdllError functions have been removed. They've have been replaced by the new classes FXDLL and FXAutoDLL. FXAutoDLL automatically unloads a dynamic library when it goes out of scope.

Changes in FXApp

 New API getSelectionWindow() returns  the window currently owning the primary selection.
 New API getClipboardWindow() returns the window currently owning the clipboard.
 New API setAutoHideDelay() and getAutoHideDelay() to set and get the auto hide delay.

 The experimental writeWindow() and readWindow() apis have been removed from this release.

FXPath::match  /  fxfilematch

The file and pattern arguments are reversed in FOX 1.8. The file argument comes before the pattern argument. In addition, this allows the pattern to also have a new default argument.

extern FXAPI FXbool fxfilematch(const FXchar *string,const FXchar *pattern,FXuint flags);
extern FXAPI FXbool FXPath::match(const FXString& file,const FXString& pattern="*",FXuint flags=(FILEMATCH_NOESCAPE|FILEMATCH_FILE_NAME));



What's New?

Threading

FXAtomic

FXMessageChannel

FXMessageChannel replaces the old FXGUISignal from FOX-1.6.

FXThreadPool

FXSpinLock

FXRunnable

Base

FXAutoPtr

FXComplex[fd]

System

FXDLL & FXAutoDLL

FXGLConfig

FXLocale

Widgets

FXCalendar & FXCalendarView

FXConsole

FXCopyDialog

FXRangeSlider