Closed qqwrv-f10eq closed 5 years ago
const char* items[] = /* explode m_putf8Info with \n */; static const char* current_item = NULL; ImGui::BeginChild("Scrolling", ImVec2(0, ImGui::GetFrameHeightWithSpacing()*7 + 30), false); for (int n = 0; n < IM_ARRAYSIZE(items); n++) { bool is_selected = (current_item == items[n]); if (ImGui::Selectable(items[n], is_selected)) current_item = items[n]; if (is_selected) ImGui::SetItemDefaultFocus(); } ImGui::EndChild();
I have tried on TextWithColors It just text can't select (TextUnformatted).
I have tried on TextWithColors It just text can't select (TextUnformatted).