Internals: Merge of harmless stuff from Navigation stuff. Added GetHoveredID() internal helper.

This commit is contained in:
omar
2018-01-12 19:53:27 +01:00
parent 16285603f2
commit 1493de4f81
3 changed files with 12 additions and 3 deletions

View File

@ -1552,7 +1552,7 @@ void ImGui::ShowDemoWindow(bool* p_open)
ImGui::OpenPopup("Stacked 2");
if (ImGui::BeginPopupModal("Stacked 2"))
{
ImGui::Text("Hello from Stacked The Second");
ImGui::Text("Hello from Stacked The Second!");
if (ImGui::Button("Close"))
ImGui::CloseCurrentPopup();
ImGui::EndPopup();
@ -1857,6 +1857,7 @@ void ImGui::ShowDemoWindow(bool* p_open)
ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf));
if (ImGui::IsItemActive()) has_focus = 3;
ImGui::PopAllowKeyboardFocus();
if (has_focus)
ImGui::Text("Item with focus: %d", has_focus);
else