Jump to content

Jaimie Vos

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Jaimie Vos

  1. 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!

    • Haha 1
  2. Knipsel.PNG.2694bc2aad2979a1483049a2d3fc2790.PNG

    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");

     

×
×
  • Create New...