Configure TGNumberEntry to Show Hex-Numbers with an 0xPrefix

Hi,

is it possible to configure TGNumberEntry in a way that Hex-Numbers are shown with a “0x” Prefix?

Thanks!,

Maxi

Hi Maxi,

It is actually not possible. This could be implemented, but would be quite tricky, since it would be two characters being part of the text, but not part of the value itself… And what should be the behaviour when people are typing directly in the text entry?

Cheers,
Bertrand.

Hi Bertrand,

Thanks for the Answer. The perfect behaviour would be, that TGNumberEntry recognices the Base of the Number typed in :slight_smile:. But since its not possible i solved my problem by adding a Label in Front of the NumberEntry wich indicates, that the Number is in Hex. I needed it, because I use several NumberEntries, some in Dec some in Hex, and i wanted to prevent confusion.

Cheers,
Maxi

Hi Maxi,

You’re welcome. And I agree it could be useful to have this option, so I’ll add it in my todo list :wink:

Cheers,
Bertrand.