comparison src/ui/bmi/AUISymbol.c @ 135:70ea7526b59e

bmi/AUI*.c: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 14 Nov 2020 03:18:11 +0000
parents c0052fe355d3
children
comparison
equal deleted inserted replaced
134:62480f597962 135:70ea7526b59e
1 /******************************************************************************* 1 /*******************************************************************************
2 2
3 CONDAT (UK) 3 CONDAT (UK)
4 4
5 ******************************************************************************** 5 ********************************************************************************
6 6
7 This software product is the property of Condat (UK) Ltd and may not be 7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner. 8 disclosed to any third party without the express permission of the owner.
9 9
10 ******************************************************************************** 10 ********************************************************************************
11 11
12 $Project name: Basic MMI 12 $Project name: Basic MMI
13 $Project code: BMI 13 $Project code: BMI
14 $Module: MMI 14 $Module: MMI
15 $File: AUISymbol.c 15 $File: AUISymbol.c
16 $Revision: 1.0 16 $Revision: 1.0
17 17
18 $Author: Condat(UK) 18 $Author: Condat(UK)
19 $Date: 19 $Date:
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: Symbol screen for AUI editor 23 Description: Symbol screen for AUI editor
26 26
27 ******************************************************************************** 27 ********************************************************************************
28 28
29 $History: AUISymbol.c 29 $History: AUISymbol.c
30 30
31 Mar 23, 2005 REF: CRR 28490 xnkulkar 31 Mar 23, 2005 REF: CRR 28490 xnkulkar
32 Description: Golite- 5-way navigation behaves wrongly while selecting special characters 32 Description: Golite- 5-way navigation behaves wrongly while selecting special characters
33 in the text editor screen.The background screen goes blank when the special 33 in the text editor screen.The background screen goes blank when the special
34 characters screen comes up. 34 characters screen comes up.
35 Solution: Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant. 35 Solution: Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant.
36 36
37 37
38 $End 38 $End
39 // Issue Number : SPR#12817 on 26/03/04 by Deepa M.D. 39 // Issue Number : SPR#12817 on 26/03/04 by Deepa M.D.
40 40
107 107
108 108
109 //data structure for punctuation symbols selection screen 109 //data structure for punctuation symbols selection screen
110 typedef struct 110 typedef struct
111 { 111 {
112 T_MMI_CONTROL mmi_control; 112 T_MMI_CONTROL mmi_control;
113 T_MFW_HND parent; 113 T_MFW_HND parent;
114 T_MFW_HND win; 114 T_MFW_HND win;
115 T_ED_DATA *editor; 115 T_ED_DATA *editor;
116 T_MFW_HND kbd; 116 T_MFW_HND kbd;
117 117
118 T_AUI_EDITOR_DATA editor_data; 118 T_AUI_EDITOR_DATA editor_data;
119 USHORT cursor_position; 119 USHORT cursor_position;
120 USHORT output_symbol; 120 USHORT output_symbol;
121 USHORT return_event; 121 USHORT return_event;
122 } 122 }
123 T_AUI_SYMBOL_INFO; 123 T_AUI_SYMBOL_INFO;
124 124
125 //events in main editor screen 125 //events in main editor screen
126 typedef enum 126 typedef enum
127 { 127 {
128 EDITOR_INIT, 128 EDITOR_INIT,
129 EDITOR_DEINIT, 129 EDITOR_DEINIT,
130 EDITOR_UPDATE 130 EDITOR_UPDATE
131 } T_SYMBOL_EVENTS; 131 } T_SYMBOL_EVENTS;
132 132
133 /********************************************************************* 133 /*********************************************************************
134 ********************************************************************** 134 **********************************************************************
135 135
147 static void AUI_symbol_ExecCb (T_MFW_HND win, USHORT event, USHORT value, void * symbol); 147 static void AUI_symbol_ExecCb (T_MFW_HND win, USHORT event, USHORT value, void * symbol);
148 148
149 149
150 /******************************************************************************* 150 /*******************************************************************************
151 151
152 $Function: AUI_symbol_Destroy 152 $Function: AUI_symbol_Destroy
153 153
154 $Description: Destroy thesymbol screen 154 $Description: Destroy thesymbol screen
155 155
156 $Returns: None. 156 $Returns: None.
157 157
158 $Arguments: window handle 158 $Arguments: window handle
159 159
160 *******************************************************************************/ 160 *******************************************************************************/
161 161
162 void AUI_symbol_Destroy (T_MFW_HND window) 162 void AUI_symbol_Destroy (T_MFW_HND window)
163 { 163 {
164 T_MFW_WIN *win = ((T_MFW_HDR *)window)->data; 164 T_MFW_WIN *win = ((T_MFW_HDR *)window)->data;
165 T_AUI_SYMBOL_INFO *data = (T_AUI_SYMBOL_INFO *)win->user; 165 T_AUI_SYMBOL_INFO *data = (T_AUI_SYMBOL_INFO *)win->user;
166 166
167 TRACE_FUNCTION ("AUI_symbol_Destroy()"); 167 TRACE_FUNCTION ("AUI_symbol_Destroy()");
168 168
169 /* Send character to editor window */ 169 /* Send character to editor window */
170 170
171 SEND_EVENT (data->parent, data->return_event, (SHORT)data->output_symbol, NULL); 171 SEND_EVENT (data->parent, data->return_event, (SHORT)data->output_symbol, NULL);
172 172
173 if (data) 173 if (data)
174 { /*SPR 2520, need to destroy ATB editor*/ 174 { /*SPR 2520, need to destroy ATB editor*/
175 ATB_edit_Destroy( data->editor); 175 ATB_edit_Destroy( data->editor);
176 176
177 /* Delete WIN Handler */ 177 /* Delete WIN Handler */
178 win_delete (data->win); 178 win_delete (data->win);
179 179
180 /* Free Memory */ 180 /* Free Memory */
181 FREE_MEMORY ((void *)data, sizeof (T_AUI_SYMBOL_INFO)); 181 FREE_MEMORY ((void *)data, sizeof (T_AUI_SYMBOL_INFO));
182 } 182 }
183 else 183 else
184 { 184 {
185 TRACE_EVENT ("AUI_symbol_Destroy() called twice"); 185 TRACE_EVENT ("AUI_symbol_Destroy() called twice");
186 return ; 186 return ;
187 } 187 }
188 } 188 }
189 189
190 190
191 /******************************************************************************* 191 /*******************************************************************************
192 192
193 $Function: AUI_symbol_Start 193 $Function: AUI_symbol_Start
194 194
195 $Description: Starts the symbol screen 195 $Description: Starts the symbol screen
196 196
197 $Returns: handle 197 $Returns: handle
198 198
199 $Arguments: parent window, editor data 199 $Arguments: parent window, editor data
200 200
201 *******************************************************************************/ 201 *******************************************************************************/
202 T_MFW_HND AUI_symbol_Start (T_MFW_HND parent, USHORT return_event) 202 T_MFW_HND AUI_symbol_Start (T_MFW_HND parent, USHORT return_event)
203 { 203 {
204 T_MFW_HND win; 204 T_MFW_HND win;
207 TRACE_FUNCTION ("AUI_symbol_Start()"); 207 TRACE_FUNCTION ("AUI_symbol_Start()");
208 208
209 win = AUI_symbol_Create (parent); 209 win = AUI_symbol_Create (parent);
210 210
211 if (win NEQ NULL) 211 if (win NEQ NULL)
212 { 212 {
213 SEND_EVENT (win, EDITOR_INIT, return_event, 0); 213 SEND_EVENT (win, EDITOR_INIT, return_event, 0);
214 } 214 }
215 return win; 215 return win;
216 } 216 }
217 217
218 218
219 /******************************************************************************* 219 /*******************************************************************************
220 220
221 $Function: LatinEditorcreate 221 $Function: LatinEditorcreate
222 222
223 $Description: Creation of a symbol screen 223 $Description: Creation of a symbol screen
224 224
225 $Returns: handle of new window 225 $Returns: handle of new window
226 226
227 $Arguments: parent window 227 $Arguments: parent window
228 228
229 *******************************************************************************/ 229 *******************************************************************************/
230 230
231 static T_MFW_HND AUI_symbol_Create (T_MFW_HND parent) 231 static T_MFW_HND AUI_symbol_Create (T_MFW_HND parent)
232 { 232 {
244 return NULL; 244 return NULL;
245 } 245 }
246 246
247 /* Connect the dialog data to the MFW-window */ 247 /* Connect the dialog data to the MFW-window */
248 248
249 data->mmi_control.dialog = (T_DIALOG_FUNC)AUI_symbol_ExecCb; 249 data->mmi_control.dialog = (T_DIALOG_FUNC)AUI_symbol_ExecCb;
250 data->mmi_control.data = data; 250 data->mmi_control.data = data;
251 data->parent = parent; 251 data->parent = parent;
252 win = ((T_MFW_HDR *)data->win)->data; 252 win = ((T_MFW_HDR *)data->win)->data;
253 win->user = (void *)data; 253 win->user = (void *)data;
254 254
255 return data->win; 255 return data->win;
256 } 256 }
257 257
258 258
259 /******************************************************************************* 259 /*******************************************************************************
260 260
261 $Function: AUI_symbol_ExecCb 261 $Function: AUI_symbol_ExecCb
262 262
263 $Description: handles events for symbol window 263 $Description: handles events for symbol window
264 264
265 $Returns: None. 265 $Returns: None.
266 266
267 $Arguments: window, event, value, editor data 267 $Arguments: window, event, value, editor data
268 268
269 *******************************************************************************/ 269 *******************************************************************************/
270 270
271 static void AUI_symbol_ExecCb (T_MFW_HND win, USHORT event, USHORT value, void *parameter) 271 static void AUI_symbol_ExecCb (T_MFW_HND win, USHORT event, USHORT value, void *parameter)
272 { 272 {
273 T_MFW_WIN * win_data = ((T_MFW_HDR *)win)->data; 273 T_MFW_WIN * win_data = ((T_MFW_HDR *)win)->data;
274 T_AUI_SYMBOL_INFO * data = (T_AUI_SYMBOL_INFO *)win_data->user; 274 T_AUI_SYMBOL_INFO * data = (T_AUI_SYMBOL_INFO *)win_data->user;
275 275
276 // T_MFW_HND parent_win = data->parent; // RAVI 276 // T_MFW_HND parent_win = data->parent; // RAVI
277 // USHORT Identifier = data->editor_data.Identifier; // RAVI 277 // USHORT Identifier = data->editor_data.Identifier; // RAVI
278 // T_AUI_EDIT_CB Callback = data->editor_data.Callback; // RAVI 278 // T_AUI_EDIT_CB Callback = data->editor_data.Callback; // RAVI
279 279
280 /* List of symbols */ 280 /* List of symbols */
281 /*SPR 1955, replaced £ sign with our ASCII code for it*/ 281 /*SPR 1955, replaced 0xA3 sign with our ASCII code for it*/
282 /*SPR2175, added previously un-enterable symbols into symbol table*/ 282 /*SPR2175, added previously un-enterable symbols into symbol table*/
283 static char symStr[] = ". , ? ! : ; - + # * ( ) \' \" _ @ & $ \x9C % / < > = \x8F \x86 \xA5 \xA4 \x2 \x7 \x4 \x9D \xe8 \xE2 \xEF \xEA \xE3 \x5 \xe4 \xe9 \xF0 \x92 \x91 \x01 \xAD \xA8 \x06"; 283 static char symStr[] = ". , ? ! : ; - + # * ( ) \' \" _ @ & $ \x9C % / < > = \x8F \x86 \xA5 \xA4 \x2 \x7 \x4 \x9D \xe8 \xE2 \xEF \xEA \xE3 \x5 \xe4 \xe9 \xF0 \x92 \x91 \x01 \xAD \xA8 \x06";
284 284
285 TRACE_FUNCTION ("AUI_symbol_ExecCb()"); 285 TRACE_FUNCTION ("AUI_symbol_ExecCb()");
286 286
287 switch (event) 287 switch (event)
288 { 288 {
289 case EDITOR_INIT: 289 case EDITOR_INIT:
290 /* Get the return event that has been passed */ 290 /* Get the return event that has been passed */
291 291
292 data->return_event = value; 292 data->return_event = value;
293 293
294 /* Create the keyboard handler */ 294 /* Create the keyboard handler */
295 data->kbd = kbdCreate (data->win, KEY_ALL,(T_MFW_CB)AUI_symbol_KbdCb); 295 data->kbd = kbdCreate (data->win, KEY_ALL,(T_MFW_CB)AUI_symbol_KbdCb);
296 296
297 /* Initialise editor variables */ 297 /* Initialise editor variables */
298 298
299 AUI_edit_SetDefault(&data->editor_data); 299 AUI_edit_SetDefault(&data->editor_data);
300 AUI_edit_SetDisplay(&data->editor_data, ZONE_MIDDLE_EDITOR, COLOUR_EDITOR_XX, EDITOR_FONT); 300 AUI_edit_SetDisplay(&data->editor_data, ZONE_MIDDLE_EDITOR, COLOUR_EDITOR_XX, EDITOR_FONT);
301 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE *)symStr, strlen(symStr)+1); 301 AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE *)symStr, strlen(symStr)+1);
302 AUI_edit_SetMode(&data->editor_data, ED_MODE_ALPHA, ED_CURSOR_BLOCK); 302 AUI_edit_SetMode(&data->editor_data, ED_MODE_ALPHA, ED_CURSOR_BLOCK);
303 data->editor = ATB_edit_Create(&data->editor_data.editor_attr,0); 303 data->editor = ATB_edit_Create(&data->editor_data.editor_attr,0);
304 ATB_edit_Init(data->editor); 304 ATB_edit_Init(data->editor);
305 305
306 ATB_edit_Char(data->editor, ctrlTop, TRUE); 306 ATB_edit_Char(data->editor, ctrlTop, TRUE);
307 win_show(data->win); 307 win_show(data->win);
308 break; 308 break;
309 309
310 case EDITOR_DEINIT: 310 case EDITOR_DEINIT:
311 AUI_symbol_Destroy (data->win); 311 AUI_symbol_Destroy (data->win);
312 break; 312 break;
313 313
314 default: 314 default:
315 break; 315 break;
316 } 316 }
317 } 317 }
318 318
319 319
320 /******************************************************************************* 320 /*******************************************************************************
321 321
322 $Function: AUI_symbol_WinCb 322 $Function: AUI_symbol_WinCb
323 323
324 $Description: Editor window event handler. 324 $Description: Editor window event handler.
325 325
326 $Returns: status int 326 $Returns: status int
327 327
328 $Arguments: event, window 328 $Arguments: event, window
329 329
330 *******************************************************************************/ 330 *******************************************************************************/
331 static int AUI_symbol_WinCb (T_MFW_EVENT event, T_MFW_WIN * win) 331 static int AUI_symbol_WinCb (T_MFW_EVENT event, T_MFW_WIN * win)
332 { 332 {
333 T_AUI_SYMBOL_INFO * data = (T_AUI_SYMBOL_INFO *)win->user; 333 T_AUI_SYMBOL_INFO * data = (T_AUI_SYMBOL_INFO *)win->user;
334 334
335 TRACE_FUNCTION ("AUI_symbol__win_cb()"); 335 TRACE_FUNCTION ("AUI_symbol__win_cb()");
336 336
337 if (!data) 337 if (!data)
338 { 338 {
339 return MFW_EVENT_CONSUMED; 339 return MFW_EVENT_CONSUMED;
340 } 340 }
341 341
342 switch (event) 342 switch (event)
343 { 343 {
344 case E_WIN_VISIBLE: /* window is visible */ 344 case E_WIN_VISIBLE: /* window is visible */
345 if (win->flags & E_WIN_VISIBLE) 345 if (win->flags & E_WIN_VISIBLE)
346 { 346 {
347 // Mar 23, 2005 REF: CRR 28490 xnkulkar 347 // Mar 23, 2005 REF: CRR 28490 xnkulkar
348 // Description: Golite- 5-way navigation behaves wrongly while selecting special characters 348 // Description: Golite- 5-way navigation behaves wrongly while selecting special characters
349 // in the text editor screen.The background screen goes blank when the special 349 // in the text editor screen.The background screen goes blank when the special
350 // characters screen comes up. 350 // characters screen comes up.
351 // Solution: Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant. 351 // Solution: Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant.
352 //#ifndef COLOURDISPLAY 352 //#ifndef COLOURDISPLAY
353 /* Clear Screen */ 353 /* Clear Screen */
354 // dspl_ClearAll(); 354 // dspl_ClearAll();
355 //#endif 355 //#endif
356 356
357 /* Print the information */ 357 /* Print the information */
358 ATB_edit_Show(data->editor); 358 ATB_edit_Show(data->editor);
359 359
360 // change by Sasken ( Deepa M D) on March 26th 2004 360 // change by Sasken ( Deepa M D) on March 26th 2004
361 // Issue Number : MMI-SPR-12817 361 // Issue Number : MMI-SPR-12817
362 // Subject: Wrong softkey in the symbol table. 362 // Subject: Wrong softkey in the symbol table.
363 // Bug : While selecting the symbols in the editor 363 // Bug : While selecting the symbols in the editor
364 // for the sms write screen, the softkey dispalyed 364 // for the sms write screen, the softkey dispalyed
365 // was "Options" instead of "Select" 365 // was "Options" instead of "Select"
366 // Solution: Commenting the compilation flags COLOURDISPLAY. 366 // Solution: Commenting the compilation flags COLOURDISPLAY.
367 //#ifndef COLOURDISPLAY 367 //#ifndef COLOURDISPLAY
368 /* Print the softkeys */ 368 /* Print the softkeys */
369 displaySoftKeys(TxtSoftSelect, TxtSoftBack); 369 displaySoftKeys(TxtSoftSelect, TxtSoftBack);
370 //#endif 370 //#endif
371 } 371 }
372 break; 372 break;
373 default: 373 default:
374 return MFW_EVENT_REJECTED; 374 return MFW_EVENT_REJECTED;
375 } 375 }
376 return MFW_EVENT_CONSUMED; 376 return MFW_EVENT_CONSUMED;
377 } 377 }
378 378
379 379
380 /******************************************************************************* 380 /*******************************************************************************
381 381
382 $Function: AUI_symbol__kbd_cb 382 $Function: AUI_symbol__kbd_cb
383 383
384 $Description: Symbol screen keyboard event handler 384 $Description: Symbol screen keyboard event handler
385 385
386 $Returns: None. 386 $Returns: None.
387 387
388 $Arguments: event, keyborad data 388 $Arguments: event, keyborad data
389 389
390 *******************************************************************************/ 390 *******************************************************************************/
391 391
392 static int AUI_symbol_KbdCb (T_MFW_EVENT event, T_MFW_KBD *keyboard) 392 static int AUI_symbol_KbdCb (T_MFW_EVENT event, T_MFW_KBD *keyboard)
393 { 393 {
400 switch (keyboard->code) 400 switch (keyboard->code)
401 { 401 {
402 /* Use left and right keys in colour display, not up and down */ 402 /* Use left and right keys in colour display, not up and down */
403 403
404 #ifdef COLOURDISPLAY 404 #ifdef COLOURDISPLAY
405 case KCD_MNURIGHT: 405 case KCD_MNURIGHT:
406 ATB_edit_Char(data->editor,ctrlRight, FALSE); 406 ATB_edit_Char(data->editor,ctrlRight, FALSE);
407 ATB_edit_Char(data->editor,ctrlRight, TRUE); 407 ATB_edit_Char(data->editor,ctrlRight, TRUE);
408 ATB_edit_Show(data->editor); 408 ATB_edit_Show(data->editor);
409 break; 409 break;
410 410
411 case KCD_MNULEFT: 411 case KCD_MNULEFT:
412 ATB_edit_Char(data->editor,ctrlLeft, FALSE); 412 ATB_edit_Char(data->editor,ctrlLeft, FALSE);
413 ATB_edit_Char(data->editor,ctrlLeft, TRUE); 413 ATB_edit_Char(data->editor,ctrlLeft, TRUE);
414 ATB_edit_Show(data->editor); 414 ATB_edit_Show(data->editor);
415 break; 415 break;
416 416
417 case KCD_MNUUP: 417 case KCD_MNUUP:
418 ATB_edit_Char(data->editor,ctrlUp, TRUE); 418 ATB_edit_Char(data->editor,ctrlUp, TRUE);
419 ATB_edit_Show(data->editor); 419 ATB_edit_Show(data->editor);
420 break; 420 break;
421 421
422 case KCD_MNUDOWN: 422 case KCD_MNUDOWN:
423 ATB_edit_Char(data->editor,ctrlDown, TRUE); 423 ATB_edit_Char(data->editor,ctrlDown, TRUE);
424 ATB_edit_Show(data->editor); 424 ATB_edit_Show(data->editor);
425 break; 425 break;
426 #else 426 #else
427 case KCD_MNUUP: 427 case KCD_MNUUP:
428 ATB_edit_Char(data->editor,ctrlRight, FALSE); 428 ATB_edit_Char(data->editor,ctrlRight, FALSE);
429 ATB_edit_Char(data->editor,ctrlRight, TRUE); 429 ATB_edit_Char(data->editor,ctrlRight, TRUE);
430 ATB_edit_Show(data->editor); 430 ATB_edit_Show(data->editor);
431 break; 431 break;
432 432
433 case KCD_MNUDOWN: 433 case KCD_MNUDOWN:
434 ATB_edit_Char(data->editor,ctrlLeft, FALSE); 434 ATB_edit_Char(data->editor,ctrlLeft, FALSE);
435 ATB_edit_Char(data->editor,ctrlLeft, TRUE); 435 ATB_edit_Char(data->editor,ctrlLeft, TRUE);
436 ATB_edit_Show(data->editor); 436 ATB_edit_Show(data->editor);
437 break; 437 break;
438 #endif 438 #endif
439 439
440 #ifdef COLOURDISPLAY 440 #ifdef COLOURDISPLAY
441 case KCD_MNUSELECT: 441 case KCD_MNUSELECT:
442 #endif 442 #endif
443 case KCD_LEFT: 443 case KCD_LEFT:
444 data->output_symbol = ATB_string_GetChar(&data->editor_data.editor_attr.text, data->editor->cursor.pos); 444 data->output_symbol = ATB_string_GetChar(&data->editor_data.editor_attr.text, data->editor->cursor.pos);
445 AUI_symbol_Destroy(data->win); 445 AUI_symbol_Destroy(data->win);
446 return MFW_EVENT_CONSUMED; 446 return MFW_EVENT_CONSUMED;
447 // break; // RAVI 447 // break; // RAVI
448 448
449 case KCD_HUP: 449 case KCD_HUP:
450 case KCD_RIGHT: 450 case KCD_RIGHT:
451 data->output_symbol = NULL; 451 data->output_symbol = NULL;
452 AUI_symbol_Destroy(data->win); 452 AUI_symbol_Destroy(data->win);
453 return MFW_EVENT_CONSUMED; 453 return MFW_EVENT_CONSUMED;
454 // break; // RAVI 454 // break; // RAVI
455 } 455 }
456 456
457 /* If we've landed on a space or an end-of-string, move cursor left */ 457 /* If we've landed on a space or an end-of-string, move cursor left */
458 458
459 if ( ( ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_SPACE 459 if ( ( ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_SPACE
460 || ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_EOLN ) 460 || ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_EOLN )
461 && data->editor->cursor.pos>0 ) 461 && data->editor->cursor.pos>0 )
462 { 462 {
463 ATB_edit_Char(data->editor, ctrlLeft, TRUE); 463 ATB_edit_Char(data->editor, ctrlLeft, TRUE);
464 // Apr 27, 2004 REF: CRR MMI-SPR-12353 Rashmi C N(Sasken) 464 // Apr 27, 2004 REF: CRR MMI-SPR-12353 Rashmi C N(Sasken)
465 // When we encounter a white space the coordinates were updated but not the screen, hence an ATB_edit_Show is needed at this point 465 // When we encounter a white space the coordinates were updated but not the screen, hence an ATB_edit_Show is needed at this point
466 ATB_edit_Show(data->editor); 466 ATB_edit_Show(data->editor);
467 } 467 }
468 return MFW_EVENT_CONSUMED; 468 return MFW_EVENT_CONSUMED;
469 } 469 }