XForms: Menu Separator - Bug?

Dick Middleton (dick@sqf.hp.com)
Fri, 20 Mar 1998 08:18:04 GMT

# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> # To subscribers of the xforms list from Nigel Basheer <Nigel.Basheer@vsl.com.au> :

> PROBLEM 2 (as a result of problem 1)
> ==========
> When I use a shortcut on the item containing the underscore, it throws
> out the alignment of the shortcut underline,

> i.e. Consider this short menu entry..

> static FL_PUP_ENTRY fdmenu_FileMenu_0[] =
> {
> /* itemtext callback shortcut mode */
> { "Connect", 0, "C", FL_PUP_NONE},
> { "_Disconnect", 0, "D", FL_PUP_NONE},
> { "Exit", 0, "x", FL_PUP_NONE},
> {0}
> };

> One would expect the "Disconnect" item to appear as "Disconnect",
> however
> it is more like "Disconnect", as the underline has shifted as if the
> item was prefixed by the underscore.

> n.b. even when I use a "Disconnect%l" or "\010Disconnect", the shortcut
> underline is still incorrectly aligned.

Should this not be "D\010isconnect" to get the D underlined?

Dick

-------------------------------------------------------------------------------

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dick@sqf.hp.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring
_________________________________________________
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/