klepto2 Posted July 13, 2021 Share Posted July 13, 2021 In the latest beta the password box displays a wrong replacement character. Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
klepto2 Posted July 13, 2021 Author Share Posted July 13, 2021 Forgot to mention: OS: Windows 10. Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted July 13, 2021 Share Posted July 13, 2021 Confirmed on WIndows: #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 800, 600, displays[0]); //Create User Interface auto ui = CreateInterface(window); //Create widget auto sz = ui->root->ClientSize(); auto textfield = CreateTextField(20, 20, 300, 32, ui->root, TEXTFIELD_PASSWORD); textfield->SetText("Here is some text!"); textfield->SelectText(0, textfield->text.size()); while (true) { const Event ev = WaitEvent(); switch (ev.id) { case EVENT_WIDGETACTION: if (ev.source == textfield) { Print(*(ev.extra->As<WString>().get())); } break; case EVENT_WINDOWCLOSE: return 0; break; } } return 0; } My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 13, 2021 Share Posted July 13, 2021 Okay, why is this not working?: wchar_t c = L'•'; It converts the character into this: 226 'â' My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted July 13, 2021 Solution Share Posted July 13, 2021 This seems to work: wchar_t hiddenchar = L'\x2022'; Will be included in next build. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 15, 2021 Share Posted July 15, 2021 I swear I thought this was working previously on Linux, but I am having trouble getting this character to appear... My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 15, 2021 Share Posted July 15, 2021 The problem is in the conversion from wstring to UTF8, but the same code on Mac works fine. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts