[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableView.EditWith not working


On 6/2/25 10:18 AM, Lee wrote:
On 6/2/25 7:36 AM, Bruce Steers wrote:
But it seems the wiki warning for Edit() is also true for EditWith()

Ie. if you do not use the Click event then arrow keys operate the TableView not the MaskBox

I had called .Edit within the Activate event, and it worked fine, including keyboard management. The thing that got me was that after calling .EditWith in the Activate event, the editor was then immediately hidden which of course means the edit of that cell was ended.

Since .Edit works when called within the Activate event, I hadn't tried using .EditWith in the Click event. I just did, and it works. That's not quite what I wanted because I prefer a double-click to initiate editing, but at least it works.

Thanks for taking the time, Bruce.

Further, there is a contradiction in the documentation on the Wiki.

https://gambaswiki.org/wiki/comp/gb.form/tableview says:
"Beware that the Edit or EditWith method must be called during the Click or Activate event handler, otherwise the keyboard management won't work!"

Yet the page for .Edit only mentioned the Click event. But since keyboard management does indeed work when .Edit is called withing the Activate event, I edited the .Edit page to include the Activate event in the warning. The .EditWith page has no warning regarding events.

So, either the documentation on the TableView page is incorrect, or this issue is a bug.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
TableView.EditWith not workingLee <t.lee.davidson@xxxxxxxxx>
Re: TableView.EditWith not workingLee <t.lee.davidson@xxxxxxxxx>
Re: TableView.EditWith not workingBruce Steers <bsteers4@xxxxxxxxx>
Re: TableView.EditWith not workingBruce Steers <bsteers4@xxxxxxxxx>
Re: TableView.EditWith not workingBruce Steers <bsteers4@xxxxxxxxx>
Re: TableView.EditWith not workingLee <t.lee.davidson@xxxxxxxxx>