Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1105
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plugin/Zip issue with UTF-8
Next Topic: Performance comparison of mmap+MemStream to FileIn
Goto Forum:
  


Current Time: Sun Aug 03 01:15:21 CEST 2025

Total time taken to generate the page: 0.09023 seconds