Jaimie Vos Posted May 2, 2021 Posted May 2, 2021 Is there a way to make this space smaller? I tried changing the padding but that didn't help. This is my code: auto treeview = CreateTreeView(10, 10, sz.x / 4 - 20, sz.y - 20, ui->root); treeview->root->AddNode("image1.jpg"); treeview->root->AddNode("image2.jpg"); treeview->root->AddNode("image3.jpg"); treeview->root->AddNode("image_that_has_a_long_name.jpg"); treeview->root->AddNode("image_that_has_an_even_longer_name.jpg"); Quote
Josh Posted May 2, 2021 Posted May 2, 2021 The space is actually there because space is needed if a node has any children, for the little arrow on the left. Maybe you want a listbox instead? Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Jaimie Vos Posted May 2, 2021 Author Posted May 2, 2021 1 hour ago, Josh said: The space is actually there because space is needed if a node has any children, for the little arrow on the left. Maybe you want a listbox instead? Oh yeah stupid from me. Thanks! 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.