Hi,
Has anyone succeeded in toggling cellType or columnType between 0 and 3
(default and inline editable)?
I am assuming the user may want to turn off the "Editable" property of a wide
column as it reduces the row selection area.
I tried this code in a checkbox labeled "Editable":
if me.value then
listbox1.columnType(1) = 3
else
listbox1.columnType(1) = 0 // or 1
end if
The result depends on whether you have set the columnType or cellType in the
open event of the listbox:
if you have set any type to anything, then
the checkbox has no effect whatsoever
else
only those cells obey which had NOT gotten focus before clicking the checkbox
others remain editable and they change the cursor to I-beam
end if
Returning true in CellClick is not a method as it prevents from selecting rows.
So, has anyone got a remedy except for REALbugging it (or upgrading to 4.5,
where I don't know if it's fixed)?
Artur
PS. Well, I could somehow mimic the "return" keystroke with a plugin or
declare, but I hate this kind of interface. Still, the cursor over a
once-editable cell would change to I-beam.
----------------------------------------------------------------------
Razem latwiej! >>> http://link.interia.pl/f1643
---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>
Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.
|