Jump to content

Как лучше выполнить редактор 16теричных значений?


Tokay

Recommended Posts

25 minutes ago, Tokay said:

Как лучше выполнить редактор 16теричных значений? TUniEdit? TUniFormattedNumberEdit? Задача: редактировать 16теричные цифры, например: FE10

Вы имеете в виду маску ввода?

Link to comment
Share on other sites

Ок, спасибо, ecUpperCase + 

function keypress(sender, e, eOpts) {
    var allowed = "0123456789ABCDEFabcdef";
    var c = e.getCharCode();
    if (allowed.indexOf(String.fromCharCode(c)) === -1) {
        e.stopEvent();
    }
}

сделали то, что нужно.

  • Like 1
Link to comment
Share on other sites

6 hours ago, Tokay said:

сделали то, что нужно.

Отлично.

Вам нужно ещё учесть "dirtychange". Т.е., при присвоении значений программным путем, при "copy/paste". 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...