mirror of
https://github.com/xemu-project/imgui.git
synced 2024-11-24 02:39:58 +00:00
Demo for InputTextMultiline() (#200)
This commit is contained in:
parent
490e9e42ff
commit
b0e8643523
@ -10953,6 +10953,15 @@ void ImGui::ShowTestWindow(bool* opened)
|
||||
//ImGui::ListBox("##listbox2", &listbox_item_current2, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
|
||||
//ImGui::PopItemWidth();
|
||||
|
||||
if (ImGui::TreeNode("Multi-line text input"))
|
||||
{
|
||||
static char text[1024*4] = "// F00F bug\nlabel:\n\tlock cmpxchg8b eax\n";
|
||||
ImGui::PushItemWidth(-1.0f);
|
||||
ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(0.f, ImGui::GetTextLineHeight() * 8), ImGuiInputTextFlags_AllowTabInput);
|
||||
ImGui::PopItemWidth();
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
if (ImGui::TreeNode("Multi-component Widgets"))
|
||||
{
|
||||
ImGui::Unindent();
|
||||
|
Loading…
Reference in New Issue
Block a user