Recent

Author Topic: may I turn off AutoSelect function of DbGrid cell  (Read 1870 times)

chentung

  • New member
  • *
  • Posts: 9
may I turn off AutoSelect function of DbGrid cell
« on: April 09, 2013, 02:46:02 am »
Hi,
When  input chinese words in TEdit or TDbGrid cell,
I got some trouble :

when  input chinese words under Mandarin_Phonetic_Symbols_Input_Method,
after 2~4 key strokes,
I can select one chinese word from the drop_dwon_list,
then hit Enter_Key to get it,
and then hit Enter_Key again to confirm the phrase(one or more Chinese words) .

But when the first Enter_Key is hit,
all other characters are auto-selected except what I am inputing.

So, when the last Enter_Key is hit,
all other characters are replaced by the appended(or inserted) chinese words.

In TEdit, I can avoid this situation by turn off AutoSelect property.
But in DbGrid, I don't know how to avoid it.

I have tried to trace the source code of DbGrids.pas and Grids.pas ,
but I don't have enough knowledge to find it out.

Can anyone help me ?

Appreciate for any comment.

my environment :
lazarus-1.0.8-fpc-2.6.2
ms-window vista traditional-chinese

best regards

chentung 
« Last Edit: April 09, 2013, 02:53:04 am by chentung »

 

TinyPortal © 2005-2018