|
|
Home » U++ Library support » U++ Core » unsigned long / uint64 from Value type (Same issue different decade)
|
Re: unsigned long / uint64 from Value type [message #60428 is a reply to message #60425] |
Mon, 08 January 2024 21:47 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
Looking at the code it seems that EditInt64 is basing on int64 type (CtrlLib/EditCtrl.h - line 309):
typedef EditMinMax<int64, ConvertInt64> EditInt64;
So, to add support for unsigned type (uint64) there is a need for expansion of this code. There is a need to add following entries:
typedef EditMinMax<uint64, ConvertUInt64> EditUInt64;
// ...
typedef EditMinMaxNotNull<uint, EditUInt64> EditUInt64NotNull;
// ... (Many lines later there is something called spin variant)
typedef WithSpin<int64, EditInt64> EditInt64Spin;
Also, there is a need to implement following classes:
class ConvertUInt64
class EditUInt64
I personally think that supporting unsigned variants would be nice. However, I don't have much time now to implement it by myself. However, if you want to help you can try to expand CtrlLib in the places I have mentioned. After expansion you can create PR to our official repo and then these changes should be in master and in future releases of U++.
Don't forget to modify CtrlLib.usc. There would be good to have these new controls out of the box in layout designer!
In case of any questions please fell free to ask.
Klugier
U++ - one framework to rule them all.
[Updated on: Mon, 08 January 2024 21:50] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Wed May 15 04:33:48 CEST 2024
Total time taken to generate the page: 0.02831 seconds
|
|
|