I am probably getting confused with another language but thought there was a way to get other controls to sit inside a cell in a listbox? Did I imagine that?!
I want the last cell in each row to have a delete button instead of text saying delete if that makes sense?
Add a menuItem (Delete) with a Keyboard shortcut, Add a Menu Handler and Populate the Menu Handler with code, then the user is able to select/delete each, any Row at will.
Thanks Emile but I’m not struggling to find an alternative way, I already have a way to do it, I just wanted to put a button in the listbox and there have been other times I’ve wanted to put controls in a listbox too.
Now, you can eventually add an image of a button and use that as a Delete button (with code). But once more, I may be wrong (or not what you really want).
Now, you can eventually add an image of a button and use that as a Delete button (with code). But once more, I may be wrong (or not what you really want).[/quote]
Hi, thanks again for that but my question was can you use other standard controls in a listbox. I think I was getting confused with a language I used on Windows a few years back. Thanks again.
Theres no way to embed a control in a desktop listbox
At best you could do something like Alex Restrepo’s old code which did custom cells
It works pretty well - but its still not embedding an actual custom control in a listbox cell
[quote=471564:@Norman Palardy]Theres no way to embed a control in a desktop listbox
At best you could do something like Alex Restrepo’s old code which did custom cells
It works pretty well - but its still not embedding an actual custom control in a listbox cell[/quote]
Thanks Norman.
I’ve settled for making the last column a smaller font size with the text in bold, it stands out enough to be obvious to the end user. Can’t quite see why Xojo would add a checkbox and not a button as well, I would imagine it would be a quite requested feature.