1 | These header files are for back-compatability with fltk1.x. Do not |
---|
2 | use these header files in new programs. Use the ones in the fltk |
---|
3 | directory. |
---|
4 | |
---|
5 | Most fltk1.x programs should compile with no changes by using these |
---|
6 | header files and linking with the fltk2.0 library. |
---|
7 | |
---|
8 | Known changes that must be done to fltk1.1 code to make them compile: |
---|
9 | |
---|
10 | Widgets inside groups will need their x,y coordinates fixed as they |
---|
11 | are now relative to the group, not the window. |
---|
12 | |
---|
13 | FL_BOLD, FL_ITALIC - these symbols used to be added to fonts to get |
---|
14 | bold and italic. This no longer works. You should replace them with |
---|
15 | the single symbol for the font (like FL_HELVETICA_BOLD in place of |
---|
16 | FL_HELVETICA+FL_BOLD) or use font->plus(attributes). |
---|
17 | |
---|
18 | Drawing functions are only roughly emulated. You may need to add casts |
---|
19 | to float to get your compiler to locate the correct functions. And if |
---|
20 | you offset by the x,y of the widget you need to remove these offsets. |
---|
21 | |
---|
22 | Some new members of widgets may hide global data. For instance "width" |
---|
23 | and "height" are now members. You can fix this by putting "::" in |
---|
24 | front of the global data names. |
---|
25 | |
---|
26 | If you use the Fl_Browser you are probably going to have trouble. All |
---|
27 | the indexes are offset by 1 from fltk1.1, ie the first item has an |
---|
28 | index of zero, not 1. Adding items with forward slashes in them will |
---|
29 | produce a hierarchy, which is pretty confusing when you don't plan on |
---|
30 | it. |
---|
31 | |
---|
32 | Menu and browser callbacks: the widget passed is the item, not the |
---|
33 | menu or browser. If you use o->parent() to find what window it is in |
---|
34 | you will have to change this, in most cases you can use o->window(). |
---|
35 | |
---|