From 4a6299fbccf79be61bef4955fb67260e01e26a42 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 24 Jun 2002 15:22:57 +0000 Subject: Add FLTK_1_0_COMPAT symbol for 1.0.x compatible names. Document this in the migration appendix, and add a section on keyboard focus. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/migration.html | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/migration.html b/documentation/migration.html index 68a03357f..9e50b0533 100644 --- a/documentation/migration.html +++ b/documentation/migration.html @@ -32,8 +32,19 @@ class.

Function Names

Some function names have changed from FLTK 1.0.x to 1.1.x in -order to avoid name space collisions. The following table shows -the old and new function names:

+order to avoid name space collisions. You can still use the old +function names by defining the FLTK_1_0_COMPAT +symbol on the command-line when you compile +(-DFLTK_1_0_COMPAT) or in your source, e.g.: + + + +

The following table shows the old and new function names:

@@ -117,5 +128,17 @@ as the label.

Image labels in menu items must still use the old labeltype mechanism to preserve source compatibility. +

Keyboard Navigation

+ +

FLTK 1.1.x now supports keyboard navigation and control with +all widgets. To restore the old FLTK 1.0.x behavior so that only +text widgets get keyboard focus, call the Fl::visible_focus() +method to disable it: + +

+ -- cgit v1.2.3