V
vesperdem+c.l.j.programmer
I have seen discussions about this already here. However, I haven't
seen any mention of how to deal get a popup to work on a cell that is
in edit mode.
I have a project where I have been asked to keep the table in "edit
mode" all the time. Thanks to the newsgroups, I was able to get that to
work just fine.
What I hadn't realized was that the right-click popups that were in the
table now don't work. They expect the table to be in "cursor mode".
Now, depending on where the user right-clicks, the old listeners can
handle the message. However, if the user tries to right-click on the
cell they are currently editing, nothing happens. This is, of course,
because the table's cell editor is currently focused and not the table.
So a right-click message goes to the component that is used by the cell
editor.
What I need is for that cell editor to treat the right-click like the
rest of the table.
The popup menu has options to add a row to the table, or change the
value of the cell to a specific value based on external data.
Am I barking up a dead tree here? Is this even remotely possible? I've
done some experiments, but nothing that was really useful.
Thanks for your attention!
seen any mention of how to deal get a popup to work on a cell that is
in edit mode.
I have a project where I have been asked to keep the table in "edit
mode" all the time. Thanks to the newsgroups, I was able to get that to
work just fine.
What I hadn't realized was that the right-click popups that were in the
table now don't work. They expect the table to be in "cursor mode".
Now, depending on where the user right-clicks, the old listeners can
handle the message. However, if the user tries to right-click on the
cell they are currently editing, nothing happens. This is, of course,
because the table's cell editor is currently focused and not the table.
So a right-click message goes to the component that is used by the cell
editor.
What I need is for that cell editor to treat the right-click like the
rest of the table.
The popup menu has options to add a row to the table, or change the
value of the cell to a specific value based on external data.
Am I barking up a dead tree here? Is this even remotely possible? I've
done some experiments, but nothing that was really useful.
Thanks for your attention!