From 3501387daf1354668922b2bcb803b5b46cb1d837 Mon Sep 17 00:00:00 2001 From: mazze Date: Wed, 27 May 2009 17:17:16 +0000 Subject: [PATCH] Bubblehelp shows character in decimal and hexadecimal. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31312 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/tools/commodities/ASCIITable.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workbench/tools/commodities/ASCIITable.c b/workbench/tools/commodities/ASCIITable.c index d59f07ee7..e3f92010f 100644 --- a/workbench/tools/commodities/ASCIITable.c +++ b/workbench/tools/commodities/ASCIITable.c @@ -33,8 +33,6 @@ NOTES - TODO: icon - EXAMPLE BUGS @@ -134,6 +132,7 @@ struct ASCIITable_DATA Object *key_button[192]; TEXT buffer[MAXLEN + 1]; struct IOClipReq *clip_req; + TEXT shorthelp[20][192]; }; /*** CBOpen *****************************************************************/ @@ -233,7 +232,7 @@ static BOOL CBWriteLong(struct IOClipReq *ior, LONG *ldata) } /*** MakeButton *************************************************************/ -static Object *MakeButton(int code) +static Object *MakeButton(LONG code) { char buffer[2] = {0}; buffer[0] = code; @@ -245,7 +244,7 @@ static Object *MakeButton(int code) MUIA_Text_PreParse, (IPTR)"\33c", MUIA_InputMode , MUIV_InputMode_RelVerify, MUIA_Background , MUII_ButtonBack, - MUIA_CycleChain, TRUE, + MUIA_CycleChain , TRUE, End; return btn; } @@ -318,6 +317,8 @@ IPTR ASCIITable__OM_NEW(Class *CLASS, Object *self, struct opSet *message) for (i = 0 ; i < 192 ; i++) { code = (i < 96) ? i + 32 : i + 64; + sprintf(data->shorthelp[i], "%c\n%d\n0x%x", code, code, code); + set((Object *)key_group_tags[i].ti_Data, MUIA_ShortHelp, data->shorthelp[i]); DoMethod ( (Object *)key_group_tags[i].ti_Data, MUIM_Notify, MUIA_Pressed, FALSE, -- 2.11.4.GIT