Need code to display a TextEditor on top of a cell in TableListbox grid to edit data


#1

I need to have TableListbox controls that have certain cells that can on demand be editable ( using a texteditor component )

 

anyone have code for this ?  the standard TableListbox doesnt support this currently


#2

Hi ByTheBucket,

The easiest way to achieve this is to use a Label as the custom component for such a table cell.

I just added some example code to the Juce Demo. The Artist/Song/Album/Genre table cells in Tabs & Widgets -> Tables are now editable when you double-click them. Please have a look at the new EditableTextCustomComponent class in WidgetsDemo.cpp.

Hope it helps.

 


#3

thanks !