Skip to content

Multiple Scrolling Region #894

@vivienneanthony

Description

@vivienneanthony

Hello,

I'm trying to implement multiple scrolling regions.

Visually
[Career] [Tier1]
............ [Tier2]
............ [Tier3]

I tried the following code


 // Set four columns for tiers


                    ImGui::Columns(2);

                    ImGui::PushItemWidth(100.0f);

                    ImGui::Text("Career");

                    ImGui::NextColumn();

                    ImGui::Text("Tiers");

                    for(unsigned int idx=0; idx<4; idx++)
                    {

                        static const char * label= "###label"+idx;
                       
                        ImGui::BeginChild(label,ImVec2(0,100),true);
                        ImGui::Spacing();
                        ImGui::Text("test");

                        ImGui::EndChild();
                        ImGui::Separator();
                    }

I'm not sure what is wrong. It's nothing major but I am wondering if anyone tried it before.

Vivienne

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions