ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

ImGui.InputTextMultiline() doesn't allow me to type in

Open Tesotra opened this issue 4 years ago • 1 comments

What i mean is, whenever i try to type text inside the Multiline text input, it just doesn't want to work (meanwhile erasing does work)

here's the code im using: `static void DrawCodeEditor() { ImGui.SetNextWindowPos(new Vector2(506, 315)); ImGui.SetNextWindowSize(new Vector2(621, 402)); ImGui.Begin("Code Editor");

        ImGui.InputText("Command Name", ref createCommandName, 64);
        ImGui.SameLine();
        if(ImGui.Button("Create",new Vector2(70, 20)))
        {
            File.Copy(Util.Dir("Base/BaseCommand.lua"),$"{Cache.botPath}/commands/{createCommandName}.lua");
        }

        ImGui.InputTextMultiline("Text Editor", ref curText, 4294967295, new Vector2(621, 382));

        ImGui.End();
    }`

Tesotra avatar Oct 10 '21 13:10 Tesotra

use a smaller value for your InputTextMultiline length, like ushort.MaxValue

chairclr avatar Jan 10 '22 23:01 chairclr