Suppose I create a table with the following:
ImGui::Columns(3);
ImGui::Text("Header 1");
ImGui::NextColumn();
ImGui::Text("Header 2");
ImGui::NextColumn();
ImGui::Text("Header 3");
ImGui::NextColumn();
ImGui::Text("1");
ImGui::NextColumn();
ImGui::Text("2");
ImGui::NextColumn();
ImGui::Text("3");
ImGui::NextColumn();
ImGui::Columns(1);
How can I get the text in the second row (1, 2, and 3) to be right aligned in the column? I've seen CalcItemWidth
and CalcTextSize
, but I can't figure out how they work within a multi-column line.