Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl - How to Cancel EditMode? And other Problem
ArrayCtrl - How to Cancel EditMode? And other Problem [message #14061] |
Fri, 08 February 2008 00:12 |
loki
Messages: 36 Registered: October 2007
|
Member |
|
|
Hello,
I have some problem with the EditMode. If I use SetEditable(false), the user can't select a row for highlighting. If I use SetEditable(true) I found no way to block the EditMode. EndEdit() is private...
Is there a function which allows the selection when SetEditable(false)? Or must I overload LeftDown() to get what i want?
greetings
loki
[Updated on: Sun, 10 February 2008 15:44] Report message to a moderator
|
|
|
Re: ArrayCtrl - How to Cancel EditMode? And other Problem [message #14088 is a reply to message #14061] |
Sun, 10 February 2008 16:10 |
loki
Messages: 36 Registered: October 2007
|
Member |
|
|
Ok. Seems as if my english is very poor Sorry
Question 1: How can I cancel lineedit in WhenStartEdit ?
Question 2: Why is selection with LMB and resizing of the tabs ignored when SetEditable is set to false? It seems to me that here is something wrong, because I can select a line with RMB and I can resize the tabs in the HeaderObject. Also the mouseimage changes to indicate sizing of the tab.
I think that here are too many tests to "IsReadOnly()".
These tests should be removed from all input-functions and should only be used in functions which create or manipulate something.
StartEdit and DoInsert are candidates.
In my actual program I need to be able to switch between editable and not-editable state. But in both states the user must be able to select a line, because each line contains extra data which is displayed in an extra Ctrl.
Here is a testcase and a modified version of ArrayCtrl.cpp
greetings
loki
[Updated on: Sun, 10 February 2008 18:26] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 04:45:35 CEST 2024
Total time taken to generate the page: 0.03478 seconds
|