For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > October 2005 > Numeric input problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Numeric input problems
bruce thompson

2005-10-15, 6:58 pm

I am using .NET CF with C# to write an application for the smartphone. I
have a textbox that I am using to enter a date in MM/DD/YYYY format. I am
using SendMessage to set the input mode to numeric and the "123" appears in
the titlebar status area as it should. When the user is typing a number into
this box the auto-complete menu pops up to suggest completions and ask "Add
Word?". This is highly annoying in a numeric entry field. Is there any way
to shut that off?

The built-in Smart Phone application for setting time and date does not have
that problem in its date and time entry field. I notice that the "123"
status does not appear in the title bar when you are typing in these fields.
How do I get my textbox into that same mode?

One more: I want my date input field to behave exactly like the one in the
built-in app for setting time/date (a delimited input field where the cursor
never lands on the "/" characters). I couldn't find any doco on creating an
input field like this so I wrote a bunch of code in the key event handlers
to implement it. But I'm wondering if there is a built-in way to accomplish
this?

This reminds me of the bad old days of VB3 where I spent more time fighting
with the language than coding my app.

Thanks.

BT


Alex Feinman [MVP]

2005-10-16, 3:59 am

Looks like you need a masked edit control. I know MooseWorks has a library
that includes one.
As for autocomplete, take a look at this post of mine - I am not positive
that it'll help, but it is worth trying
http://groups.google.com/group/micr...6c75148c52bab3b


"bruce thompson" <brucet@sympatico.ca> wrote in message
news:u2nMBpY0FHA.916@TK2MSFTNGP10.phx.gbl...
>I am using .NET CF with C# to write an application for the smartphone. I
>have a textbox that I am using to enter a date in MM/DD/YYYY format. I am
>using SendMessage to set the input mode to numeric and the "123" appears in
>the titlebar status area as it should. When the user is typing a number
>into this box the auto-complete menu pops up to suggest completions and ask
>"Add Word?". This is highly annoying in a numeric entry field. Is there any
>way to shut that off?
>
> The built-in Smart Phone application for setting time and date does not
> have that problem in its date and time entry field. I notice that the
> "123" status does not appear in the title bar when you are typing in these
> fields. How do I get my textbox into that same mode?
>
> One more: I want my date input field to behave exactly like the one in the
> built-in app for setting time/date (a delimited input field where the
> cursor never lands on the "/" characters). I couldn't find any doco on
> creating an input field like this so I wrote a bunch of code in the key
> event handlers to implement it. But I'm wondering if there is a built-in
> way to accomplish this?
>
> This reminds me of the bad old days of VB3 where I spent more time
> fighting with the language than coding my app.
>
> Thanks.
>
> BT
>


Amphib

2005-10-16, 6:59 pm

Alex,

Thanks for the info. I have implemented your code in my app but
unfortunately calling SHSetInputContext has no effect on my SMT 5600 phone.
I read some of your posts in modaco and I see that some phones may ignore
this function call. Those posts were back in April. Do you know if anyone
has come up with a work around since then?

I wonder if the commercial masked edit controls will have the same problem
on my phone.

I suppose I could write my own textbox control. If I have to resort to doing
stuff like that then evc might be a better language for the smartphone.

BT

"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:uhj0$Dg0FHA.3780@TK2MSFTNGP12.phx.gbl...
> Looks like you need a masked edit control. I know MooseWorks has a library
> that includes one.
> As for autocomplete, take a look at this post of mine - I am not positive
> that it'll help, but it is worth trying
> http://groups.google.com/group/micr...6c75148c52bab3b
>
>
> "bruce thompson" <brucet@sympatico.ca> wrote in message
> news:u2nMBpY0FHA.916@TK2MSFTNGP10.phx.gbl...
>



Alex Feinman [MVP]

2005-10-16, 9:57 pm

Commercial masked edit control is exactly that - a custom control. It should
not be affected by the IME behavior
SMT5600 IME is an abomination. It creates a number of problems for a
developer

"Amphib" <brucet@sympatico.ca> wrote in message
news:uy9m3Xl0FHA.2880@TK2MSFTNGP12.phx.gbl...
> Alex,
>
> Thanks for the info. I have implemented your code in my app but
> unfortunately calling SHSetInputContext has no effect on my SMT 5600
> phone. I read some of your posts in modaco and I see that some phones may
> ignore this function call. Those posts were back in April. Do you know if
> anyone has come up with a work around since then?
>
> I wonder if the commercial masked edit controls will have the same problem
> on my phone.
>
> I suppose I could write my own textbox control. If I have to resort to
> doing stuff like that then evc might be a better language for the
> smartphone.
>
> BT
>
> "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> news:uhj0$Dg0FHA.3780@TK2MSFTNGP12.phx.gbl...
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com