@ -457,9 +457,9 @@ void ImGui::ShowDemoWindow(bool* p_open)
else
{
// Leaf: The only reason we have a TreeNode at all is to allow selection of the leaf. Otherwise we can use BulletText() or TreeAdvanceToLabelPos()+Text().
node_flags | = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen ; // ImGuiTreeNodeFlags_Bullet
node_flags | = ImGuiTreeNodeFlags_Leaf ; // | ImGuiTreeNodeFlags_Bullet;
ImGui : : TreeNodeEx ( ( void * ) ( intptr_t ) i , node_flags , " Selectable Leaf %d " , i ) ;
if ( ImGui : : IsItemClicked ( ) )
if ( ImGui : : IsItemClicked ( ) )
node_clicked = i ;
}
}
@ -3188,13 +3188,9 @@ static void ShowExampleAppPropertyEditor(bool* p_open)
}
else
{
// Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well)
ImGui : : AlignTextToFramePadding ( ) ;
// Here we use a Selectable (instead of Text) to highlight on hover
//ImGui::Text("Field_%d", i);
char label [ 32 ] ;
sprintf ( label , " Field_%d " , i ) ;
ImGui : : Bullet ( ) ;
ImGui : : Selectable ( label ) ;
ImGui : : TreeNodeEx ( " Field " , ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet , " Field_%d " , i ) ;
ImGui : : NextColumn ( ) ;
ImGui : : PushItemWidth ( - 1 ) ;
if ( i > = 5 )