@Valery
You don't need to press Control, just click in the area and you can type numbers. This is not a HD feature, it is available with regular HoMM3 - or at the very least it worked on my 4.0 copy without HDmod.
@igrik
Thanks)
I looked at function that does for creatures but I got lost.
0x5BB000 (process command)
0x5FF3A0 (load correct text to 0x697428)
Alternatively, I thought of reading text from edit and removing unwanted characters - then load back text without unwanted characters to edit.
Спасибо)
Я смотрел на функцию, которая делает для существ, но я потерялся.
0x5BB000 (команда процесса)
0x5FF3A0 (загрузить правильный текст в 0x697428)
В качестве альтернативы, я думал о чтении текста из редактирования и удалении нежелательных символов, а затем загружать текст без ненужных символов для редактирования.
Code:
proc:
(print to buffer) ((_DlgTextEdit_*)dlg->GetItem(edit_id))->text;
(remove non-digits from buffer);
((_DlgTextEdit_*)dlg->GetItem(edit_id))->text = buffer;
I have not had time to try and code it and test so no idea if it could/would work.