Resend. This was supposed to go to the list, not by private reply...
---------- Forwarded message ---------- From: Derrell Lipman <[EMAIL PROTECTED]> Date: Tue, Feb 26, 2008 at 9:06 PM Subject: Re: [qooxdoo-devel] Editable Tables with setShowCellFocusIndicator(false) not working (0.7.2) To: [EMAIL PROTECTED] On Tue, Feb 26, 2008 at 3:29 PM, cboulanger <[EMAIL PROTECTED]> wrote: > Derrell Lipman schrieb: > > > On Tue, Feb 26, 2008 at 11:17 AM, cboulanger <[EMAIL PROTECTED]> wrote: > > > >> I am using a Table as a property editor (qooxdoo 0.7.2). Column 1 holds > >> the property names, column 2 the editable property data. When the user > >> double clicks on a cell in column 2, it becomes editable - that is > >> standard behaviour. I do not need a cell focus editor, in fact, the > >> focus indicator is preventing a custom link cell renderer from working > >> because clicks on hyperlinks are intercepted by the focus editor and > >> thus prevented. > >> > >> However, when I turn off the cell focus indicator by > >> "myTable.setShowCellFocusIndicator(false);", I get an error when > >> double-clicking on a cell: > >> > >> [Exception... "Component returned failure code: 0x80004005 > >> (NS_ERROR_FAILURE) [nsIDOMNSHTMLInputElement.selectionStart]" nsresult: > >> "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: > >> > http://localhost/bibliograph/qooxdoo-0.7-sdk/frontend/framework/source/class/qx/ui/form/TextField.js > >> :: anonymous :: line 1075" data: no] > >> > http://localhost/bibliograph/qooxdoo-0.7-sdk/frontend/framework/source/class/qx/ui/form/TextField.js > >> Line 1075 > >> > >> Is the cell focus indicator absolutely needed for editable tables or is > >> this a bug? I attach a modified demobrowser page which demonstrates the > >> behaviour. > >> > > > > Hi Christian, > > > > There was no attachment to your message so I can't try it. Have you > > tried pressing Enter or F2 while the cell has focus to begin editing? > > It'd be interesting to know if the problem occurs with keyboard > > commands or just with mouse clicks. > > > > The error message you're getting seems to be in setSelectionLength() > > of a TextField. I'd need a backtrace to know much more, though. > > > > Derrell > > > Hi Derrell, here is the attachment again. There seem to be no difference > .. maybe you can find out more... Ok, reviewing the code carefully reveals that the ordinary in-line cell editor is highly tied to the focus indicator. It will take fairly significant changes to allow that form of editing with the focus indicator disabled. You can, however, use a Modal Window Cell Editor. I've added a new Table_5.html example which shows how to do it. There was a bug (in the code related to the error you encountered) which also reared its ugly head when using the modal window cell editor. I've fixed that bug. Both the bug fix and Table_5.html have been checked in to 0.7 svn. Cheers, Derrell ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
