XForms: 'fl_add_shortcutkey' ???

I#igo Serna Robledo (imaseroi@bicc00.bi.ehu.es)
Tue, 21 Oct 1997 16:28:14 +0200 (DFT)

To subscribers of the xforms list from I#igo Serna Robledo <imaseroi@bicc00.bi.ehu.es> :

Well, as this is my first communication in this mail-list, first,
greetings to everybody !

Now, my problem:

I've started to use xforms a week ago trying to give a nice look
to a previous X program.

This program have an unique form with 49 different buttons, these buttons
are hidden pixmap buttons ( 'hidden' because I don't want to see the
'external box' of these buttons when they take the focus, due to they
don't have a regular form - not rectangular neither oval, etc. - ),
which have different static pixmap objects upon these buttonsl, depending
on if wether the button is currently pressed or not.

The buttons have the same callback but with different argument for each.
Also, these buttons can be 'pressed' by clicking them with the mouse or by
pressing the proper keyboard key.
Most of these buttons have associated an 'usual' keyboard key ( such as
cursor keys, a..z, 0..9, and so on ), which have been done using

fl_add_shortcut( key_btn(i), key_shortcut(i), 0 );

( where 'key_btn(i)' is the array of the pixmap buttons and
'key_shortcutkey(i)' an array of strings with items like "Aa", "Pp&D",
etc. ).

after adding callbacks ( all to the same callback, but with the number of
the button as argument ).

All of this is coded in a 'for' loop in which:
1) hidden pixmap buttons are created
2) " " " are initialized ( position, size, ... )
3) static pixmaps are created ( over the hidden buttons )
4) static pixmaps are initialized to their initial state ( pixmap ) ->
-> 'not pressed' pixmaps
5) callbacks
6) shortcuts are added

But there are a few buttons that must be attached to special keys of the
keyboard, which can't be done with 'fl_add_shortcut' ( f.e. left shift,
enter, backspace, delete, ... keys ).
So in the key_shortcut(i) array I've assigned a "" to them in the previous
'for' and, after it, I've added one line such as

fl_add_shortcutkey( key_btn(25), XK_Enter );
fl_add_shortcutkey( key_btn(28), XK_Delete );
...

for each 'special' key.

And finally: fl_do_forms();

Summarizing, with all the previous code, the 'usual' keys are
managed correctly, but these last 'special' keys don't.

What happens? Why this code doesn't send the callbacks for the
'special' keys?

Sorry if I've written a large and boring email, but English is
not my native language, and besides I'm new to X programming ...

I'm using XForms 0.87-3 in a PC with Linux with kernel 2.0.27
( standard from Red Hat 4.1 distribution ).

Well, not much to say, thanx in advance:

INIGO SERNA

*************************************************************************
* INIGO SERNA ROBLEDO * E-mail: *
* Avda. de los Chopos 41, 2.C * imaseroi@bi.ehu.es *
* 48990. Getxo - BIZKAIA *******************************************
* BASQUE COUNTRY * '... what made my dreams so hollow ...' *
* SPAIN * TOM WAITS *
*************************************************************************
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/