Skip to content

The Multiline is part of the ImGuiInputTextFlagsPrivate now #2

@MrOneTwo

Description

@MrOneTwo

I'm trying to play around with this app (thanks for writing it!) but there seems to be problems with compiling. The Multiline is part of the ImGuiInputTextFlagsPrivate now. The commented out chunk on the bottom also complains so I commented it out for now, since I don't fully understand why it doesn't build.

diff --git a/src/gui/client.nim b/src/gui/client.nim
index 6cb104e..7bc2c8a 100644
--- a/src/gui/client.nim
+++ b/src/gui/client.nim
@@ -526,7 +526,7 @@ proc showRequestWindow*(fixedFont: ptr ImFont) =
         validateTextPayload(reqPayText)
       reqPayText = buildPayloadText(reqPayload, FORMAT_HEX)
 
-    var payFlags = ImGuiInputTextFlags.Multiline.int32 or
+    var payFlags = ImGuiInputTextFlagsPrivate.Multiline.int32 or
                    ImGuiInputTextFlags.CallbackCharFilter.int32
     # Can't edit in text mode if contains non-editable chars
     if not isTextOnlyReqPayload and reqPayFormatIndex == FORMAT_TEXT.int32:
@@ -673,9 +673,9 @@ proc showRequestWindow*(fixedFont: ptr ImFont) =
 
       igSetNextItemWidth(420)
       igPushFont(fixedFont)
-      discard igInputTextCap("##respPayload", respPayText, len(respPayText),
-                             ImVec2(x: 0f, y: igGetTextLineHeightWithSpacing() * 8),
-                             (ImGuiInputTextFlags.Multiline.int or ImGuiInputTextFlags.ReadOnly.int).ImGuiInputTextFlags)
+      # discard igInputTextCap("##respPayload", respPayText, len(respPayText),
+      #                        ImVec2(x: 0f, y: igGetTextLineHeightWithSpacing() * 8),
+      #                        (ImGuiInputTextFlagsPrivate.Multiline.int or ImGuiInputTextFlags.ReadOnly.int).ImGuiInputTextFlags)
       igPopFont()
 
   igEnd()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions