how to render the buttons on the side instead of the top ImGui buttons

i was wondering how to render the buttons on the side instead of the top ImGui buttons

    ImGui::Spacing;
    ImGui::SetCursorPos({ 19,17 });
    if (Tab("", { 125,35 }, tab == 0))
        tab = 0;

    ImGui::SetCursorPos({ 19 + 125 + 15,17 });
    if (Tab("", { 125,35 }, tab == 1))
        tab = 1;

    ImGui::SetCursorPos({ 19 + 250 + 20,17 });
    if (Tab("", { 125,35 }, tab == 2))
        tab = 2;

    ImGui::SetCursorPos({ 19 + 375 + 30,17 });
    if (Tab("", { 125,35 }, tab == 3))
        tab = 3;


Read more here: https://stackoverflow.com/questions/68123963/how-to-render-the-buttons-on-the-side-instead-of-the-top-imgui-buttons

Content Attribution

This content was originally published by asfd82rnsijf83838383 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: