anyone?????
It's not clear to me exactly what you are asking.
Maybe you might want to use
Perhaps you could describe precisely what you are expecting.
It's not clear to me exactly what you are asking.
Maybe you might want to use
Perhaps you could describe precisely what you are expecting.
hi admin,
Here's the deal :
We can get key-codes at key-down event, right?
But how can we get key-codes when we are write/type inside an OBJ_EDIT (editable object)?
It seems like , when you type inside an OBJ_EDIT, you don't get any events triggered related to KEYDOWN.
I have never needed anything like that. Unless somebody comes up with an answer, you will need to experiment.
You should be able to detect when the edit object is clicked, and ENDEDIT when another part of the chart is clicked or the enter key pressed. So you may be able to check what has been entered and delete it if it is not a number.
I have never needed anything like that. Unless somebody comes up with an answer, you will need to experiment.
You should be able to detect when the edit object is clicked, and ENDEDIT when another part of the chart is clicked or the enter key pressed. So you may be able to check what has been entered and delete it if it is not a number.
so, there's no way to stop people typing unwanted characters in the entryBox. All we can do is remove the unwanted chars after EndEdit.
Correct me if i'm wrong.
The tradepanel can be a great example where you would want to restrict people from typing anything other than numbers.
If you type a "comma", it wont work here. Only thing works is : numbers & decimal point (dot)
so, there's no way to stop people typing unwanted characters in the entryBox. All we can do is remove the unwanted chars after EndEdit.
Correct me if i'm wrong.
The tradepanel can be a great example where you would want to restrict people from typing anything other than numbers.
If you type a "comma", it wont work here. Only thing works is : numbers & decimal point (dot)
That is not what I am saying. As I posted, I have never needed anything like that so I have never had to investigate it.
I have had times when I have needed to interpret an entered comma as a decimal point, but that is not the same as your requirement.
I can only guess that for what you want, you could use a rectangle label with a label placed on top. Then you could set the text according to whatever keys are pressed, ignoring key presses that don't apply.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use