The TCursor type defines a cursor ident (integer). The value -22 identifies a sizing cursor that is no longer available. It is now replaced by 5 different orientation sizing cursors.
Use the Screen Cursor property to set the cursor type to one of the TCursor values.