-
September 27th, 2020, 11:47 AM
#1
Text control as ES_NUMBER
Hi, ALL,
I am trying to create a text control that will only accept numbers and so I used the style ES_NUMBER.
Everything is built and ran fine.
But when I tried to enter a character, the tooltip showed up saying:
Unacceptable character
You can only type the numbers here
Is there a way to suppress this tooltip?
Thank you.
-
September 27th, 2020, 01:30 PM
#2
Re: Text control as ES_NUMBER
Not sure, however did you try EM_HIDEBALLOONTIP message?
Victor Nijegorodov
-
September 27th, 2020, 01:38 PM
#3
Re: Text control as ES_NUMBER
Originally Posted by VictorN
Not sure, however did you try EM_HIDEBALLOONTIP message?
If it won't help then see https://stackoverflow.com/questions/...cedit/51041222
Victor Nijegorodov
-
October 3rd, 2020, 03:16 AM
#4
Re: Text control as ES_NUMBER
Hi,
Originally Posted by VictorN
Not sure, however did you try EM_HIDEBALLOONTIP message?
Yes, I did. And I did include the manifest file (embedded into an executable).
Thank you.
I'm on Windows 8.1 with MSVC 2017 Community.
One question though - is there a difference between defining and not defining ISOLATION_AWARE_ENABLED?
Thank you
-
October 3rd, 2020, 05:29 AM
#5
Re: Text control as ES_NUMBER
Originally Posted by OneEyeMan
Hi,
Yes, I did. And I did include the manifest file (embedded into an executable).
Thank you.
So did you solve your problem?
Originally Posted by OneEyeMan
One question though - is there a difference between defining and not defining ISOLATION_AWARE_ENABLED?
Sorry, I have no idea... Try to find something useful in MSDN.
Victor Nijegorodov
-
October 3rd, 2020, 02:15 PM
#6
Re: Text control as ES_NUMBER
Hi,
Originally Posted by VictorN
So did you solve your problem?
No.
Originally Posted by VictorN
Sorry, I have no idea... Try to find something useful in MSDN.
The problem - debugger doesn't even stop there...
Thank you.
-
October 3rd, 2020, 06:32 PM
#7
Re: Text control as ES_NUMBER
Regarding ISOLATION_AWARE_ENABLED. Is your app a COM app or does it host COM objects?
-
October 3rd, 2020, 09:12 PM
#8
Re: Text control as ES_NUMBER
Hi,
Originally Posted by Arjay
Regarding ISOLATION_AWARE_ENABLED. Is your app a COM app or does it host COM objects?
No, nothing like this.
Thank you.
-
October 3rd, 2020, 09:34 PM
#9
Re: Text control as ES_NUMBER
Hi,
Des this message has to be handed in WindowProc()?
Because it looks like I did it inside the MSWOnNotify()...
Thank you.
-
October 4th, 2020, 04:47 AM
#10
Re: Text control as ES_NUMBER
Originally Posted by OneEyeMan
Des this message has to be handed in WindowProc()?
Because it looks like I did it inside the MSWOnNotify()...
1. What is MSWOnNotify?
2. What message do you mean? If it is EM_HIDEBALLOONTIP, then no, it is not a notification message. It is the message you are to send to the edit control.
Victor Nijegorodov
-
October 4th, 2020, 05:30 AM
#11
Re: Text control as ES_NUMBER
Originally Posted by OneEyeMan
Originally Posted by VictorN
So did you solve your problem?
No.
But didn't you try the solution I had suggested in the post#3?
It works for me!
Victor Nijegorodov
-
October 4th, 2020, 09:52 AM
#12
Re: Text control as ES_NUMBER
Originally Posted by OneEyeMan
Hi,
No, nothing like this.
Thank you.
I asked because the ISOLATION_AWARE_ENABLED docs indicate this flag is related to COM apps (only).
-
October 4th, 2020, 11:44 AM
#13
Re: Text control as ES_NUMBER
Hi,
Originally Posted by VictorN
But didn't you try the solution I had suggested in the post#3?
It works for me!
Yes, it works for me as well.
I just did handle it as a notification message instead of a regular one.
Sorry for the noise.
Thank you.
-
October 4th, 2020, 11:45 AM
#14
Re: Text control as ES_NUMBER
Hi,
Originally Posted by Arjay
I asked because the ISOLATION_AWARE_ENABLED docs indicate this flag is related to COM apps (only).
Thx for clarifying.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|