Jaimie Vos Posted May 2, 2021 Share 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 Link to comment Share on other sites More sharing options...
Josh Posted May 2, 2021 Share 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. Link to comment Share on other sites More sharing options...
Jaimie Vos Posted May 2, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
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.