Gyannea
February 12th, 2003, 05:57 PM
As I understand it if one has the ES_NUMBER style on an Edit box in the resource file the edit box should only accept digits as input. It looks like this:
CONTROL "", EDIT_LATBOX, "EDIT", ES_LEFT |
ES_NUMBER | WS_CHILD | WS_VISIBLE |
WS_BORDER | WS_GROUP | WS_TABSTOP,
96, 108, 28, 9
Yet I can freely input any text I want into the box and even retrieve it. Is there something wrong with the above resource line?
Thanks for any hints. I don't want to capture keyboard input and filter ASCII 0x30 to 0x39 like in DOS!
CONTROL "", EDIT_LATBOX, "EDIT", ES_LEFT |
ES_NUMBER | WS_CHILD | WS_VISIBLE |
WS_BORDER | WS_GROUP | WS_TABSTOP,
96, 108, 28, 9
Yet I can freely input any text I want into the box and even retrieve it. Is there something wrong with the above resource line?
Thanks for any hints. I don't want to capture keyboard input and filter ASCII 0x30 to 0x39 like in DOS!