Jump to content

PasswordStyle wrong Character


Go to solution Solved by Josh,

Recommended Posts

Posted

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.

Posted

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.

  • Solution
Posted

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.

  • Josh locked this topic
Posted

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.

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...