Discussion of article "Graphical Interfaces XI: Text edit boxes and Combo boxes in table cells (build 15)" - page 2

 

all this miracle still doesn't work in MT4?

 
Pavel Kolchin:

all this miracle still doesn't work in MT4?

With minor adjustments it works.

UPD. Not all elements are checked...

 

Moderators good, these features are implemented, even if the use of the include file is after all the source code visible. Can not let the source code placed inside the library, including the file call library, the main programme call including the file. This is better than directly including the file to see the code is not to write!

 
such a question, when entering text into the table from the right numeric keypad, then nothing happens, the cell does not display the input data, where to look for this bug7
 
Andrii Djola:
I have a question, when entering text into the table from the right numeric keypad, nothing happens, the cell does not display the input data, where to look for this bug7.

In the current version of the library the numeric keypad is not processed.

 
badly
 
Anatoli Kazharski:

The current version of the library does not process the numeric keypad.

Strange as it may seem, but I have it....
 
Oleksii Chepurnyi:
Oddly enough, it's working for me.....
maybe you edited something? If so, what?
 
Oleksii Chepurnyi:
Oddly enough, it's processing for me.....

Are the numbers coming in?

 
Anatoli Kazharski:

Are the numbers being entered?

Yes.

Andrii Djola:
and maybe you edited something? If yes, what?

By the way, yes. I remember something like that... Now I'd like to remember what I changed :)

I think I added this. Keys.mqh

string CKeys::KeySymbol(const long key_code)
  {
   string key_symbol="";
//--- If you need to enter a space (Space key)
   if(key_code==KEY_SPACE)
     {
      key_symbol=" ";
     }
//--- If you want to enter (1) an alphabetic character or (2) a numeric key character or (3) a special character
   else if((key_code>=KEY_A && key_code<=KEY_Z) ||
           (key_code>=KEY_0 && key_code<=KEY_9) ||
           (key_code>=KEY_NUMLOCK_0 && key_code<=KEY_NUMLOCK_SLASH) ||
           (key_code>=KEY_SEMICOLON && key_code<=KEY_SINGLE_QUOTE))
     {
      key_symbol=::ShortToString(::TranslateKey((int)key_code));
     }
//--- Return the character
   return(key_symbol);
  }