-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
having indent only in first column #414
Comments
I'll have to think about the best fix, but it probably involve the confusedly named ColumnsStartX (should be renamed to IndentX?) in the context be a per-column thing. For now a possible workaround would be, after calling NextColumn() on the right column to to do:
|
ok. |
Maybe something like: ImGui::Columns(2);
ImGui::Text("name1");
ImGui::NextColumn();
ImGui::Text("value1");
ImGui::NextColumn();
bool Tree = false;
if ((Tree=ImGui::TreeNode("tree1"))) ImGui::TreePop();
ImGui::NextColumn();
ImGui::NextColumn();
if (Tree) {
ImGui::Text("\tname2"); // indent
ImGui::NextColumn();
ImGui::Text("value2");
ImGui::NextColumn();
}
ImGui::End(); |
Try
(not tested. obviously this is just workaround) |
Cool ! thanks ! |
hi,
I'm trying to implement a "property view" (like http://www.openrtm.org/openrtm/sites/default/files/697/fig473TypePropertyView_en.png).
With this naive code :
i got this result :
How to remove the indent in the second column ?
(didn't find any nice way of doing it)
thanks !
The text was updated successfully, but these errors were encountered: