|
-
May 7th, 1999, 01:00 AM
#1
informations
Hi everyone.
I would like to know how to validate an editbox and how to make work accelerator with command button. I did the relation beetween the accelerator and the button, it doesn't work. Also, my editbox is taking any numbers and i put the condition, maximum 9 digits.
Thanx Gaetan. This is for my work. You have my email for home. could you answer me also at [email protected]
-
May 12th, 1999, 05:35 PM
#2
Re: informations
Hello,
1. Creating an Accelerator for a button
Thats very easy - just add an ampersand character (&) in front
of the letter from text for the button that you want to work as an
accelerator. Example:
Setting a buttons text to "E&xit" will cause the button to be pressed
by using the shortcut Alt+x
2. Control Editbox changes
Go into class wizard and select the edit box element
within your dialogs class, e.g. IDC_MYEDIT.
Then search for the message EN_CHANGE in the
Messages window and double-click on it.
Class wizard now asks you for a function name.
this function will be called whenever the content
of the edit box is changed.
Within this function you can then make your data
validation.
Uli
-
May 13th, 1999, 09:49 AM
#3
Re: informations
Ok, thank you Uli but it is working if I clicked on the edit box and then enter my number with the keyboard (notice that the cursor is showed in the dialog box) but if i am not doing that it won't work. Why???????????????
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
|