Imgui: [Tables] select the whole line with a selectable or another way

Created on 22 Apr 2020  路  3Comments  路  Source: ocornut/imgui

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

tablecolumns

Most helpful comment

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

All 3 comments

Check the flags for Selectable()

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spaderthomas picture spaderthomas  路  3Comments

namuda picture namuda  路  3Comments

bizehao picture bizehao  路  3Comments

KaungZawHtet picture KaungZawHtet  路  3Comments

ILoveImgui picture ILoveImgui  路  3Comments