Re: Keys handler

Petasis Gewrgios (
Wed, 27 Nov 1996 11:54:01 -0600 (CST)

To subscribers of the xforms list from Petasis Gewrgios <> :

Hello all,
I want to ask about the internal colormap...
I am writing an application that allocates about 80 colors.
So i allocate them using fl_map_color, using 80 indexes greater than FL_FREE_COL1.
The problem appears when i reallocate another set of 80 colors. Using the
*same* indexes, i use fl_map_color again, to substitute the old colors.
Usually i take the message that colormap is full (when in 256 colors, not in hi
color) and library will use substitutions. Then everything is a mess!
All colors change even the black that text
is written etc. So i end with my forms green, blue, even black where nothing
is visible of the form's context...
I believe that this happens because fl_map_color allocates the colors i ask.
Is there any way to free the colors i dont want any more??????
I have tried fl_free_colors with no result. Any suggestions ??????

2) In the same app i change the cursor using 2 bitmaps using
fl_create_bitmap_cursor and fl_set_cursor(FL_ObjWin(obj),...
Works ok but every once and a while i get the following error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 94 (X_CreateGlyphCursor)
Value 0xb5
Serial number of failed request: 61143
Current serial number in output stream: 61145
and application stops. Any advace will be appreciated...
I am using forms 0.81 in IBM AIX 4.2 in hi color ...
Thanks in advance
Petasis Gewrgios...
To unsubscribe, send the message "unsubscribe" to or see