Tables: select the whole line with a selectable or another way #3151

Closed
opened 2020-04-22 20:42:37 +00:00 by aiekick · 3 comments
aiekick commented 2020-04-22 20:42:37 +00:00 (Migrated from github.com)

Version: 1.77
Branch: Tables

the tables branch Iwork like a charm for my ImGuiFileDialog,
created a branch here, for use table instead of just list.

by the way im using a selectable in the first cell.
Is there a way for draw selection on the whole line ?
maybe if all collumns of one line can be selected when one item of one line is mouse hovered or clicked ?

BZOPSWcqrI

Version: 1.77 Branch: Tables the tables branch Iwork like a charm for my ImGuiFileDialog, created a branch [here](https://github.com/aiekick/ImGuiFileDialog/tree/detail_view_mode), for use table instead of just list. by the way im using a selectable in the first cell. Is there a way for draw selection on the whole line ? maybe if all collumns of one line can be selected when one item of one line is mouse hovered or clicked ? ![BZOPSWcqrI](https://user-images.githubusercontent.com/1434736/80030752-ee173980-84e8-11ea-9055-41e3872866a2.gif)
ocornut commented 2020-04-22 21:14:40 +00:00 (Migrated from github.com)

Check the flags for Selectable()

Check the flags for Selectable()
aiekick commented 2020-04-22 21:49:19 +00:00 (Migrated from github.com)

haha, im ridiculous.
It's working. it was so easy. thank you so much :)

haha, im ridiculous. It's working. it was so easy. thank you so much :)
ocornut commented 2020-04-23 12:06:47 +00:00 (Migrated from github.com)

To make this thread useful to other readers, the answer is you can use Selectable() with the ImGuiSelectableFlags_SpanAllColumns flag.

To make this thread useful to other readers, the answer is you can use `Selectable()` with the ImGuiSelectableFlags_SpanAllColumns flag.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#3151
No description provided.