PB_Rainer wrote:
Hi Thorsten,
ListEx is great piece of code! Thanks for that!
What I'm missing is a flag for editable fields = FirstCharacterClear
That would be nice, because when you want to edit a field which already has a value/text, you have to clear it with backspace.
Regards
Rainer
Hi Thorsten,
@all
I tried the following:
init the column = OK:
Code:
ListEx::AddColumn(Palette_ListEx, 6, "Change to color#", 95, "ChangeToColor", ListEx::#Integer | ListEx::#Editable)
ListEx::SetColumnAttribute(Palette_ListEx, 6, ListEx::#Align, ListEx::#Center)
Getting cell-infos after doubleclick = OK:
Code:
Case #PB_Event_Gadget
Select EventGadget()
Case Palette_ListEx
If EventType() = 2
Palette_ClearEditCell(ListEx::EventRow(Palette_ListEx), ListEx::EventColumn(Palette_ListEx))
Trial to clear the cell = NOT OK:
Code:
Procedure Palette_ClearEditCell(Row.i, Cell.i)
Protected.s ColumnLabel, ItemText
ColumnLabel = ListEx::GetColumnLabel(Palette_ListEx, Cell)
ItemText = ListEx::GetItemText(Palette_ListEx, Row, Cell)
Debug "Row / Cell / ColumnLabel / ItemText " + Row + " / " + Cell + " / " + ColumnLabel + " / " + ItemText
ListEx::SetCellState(Palette_ListEx, Row, ColumnLabel, ListEx::#Edit)
ListEx::SetItemText(Palette_ListEx, Row, "", Cell)
EndProcedure
But this trial does not work, tried a lot setitemstate, celldata and so on.
Nothing clears the cell after doubleclick.
Does anyone knows a solution,
can anyone help?
Thanks to all in advance
regards
Rainer