Hi Stefan,
Stefan wrote:
It is? What exactly are you talking about? If it's the first character
which auto-starts editing not always getting correctly into the
cell, then there's nothing I can suggest but getting used to start
editing by pressing F2....
1) Yes, it is exactly that problem. I am sorry to say, but pressing F2
is not a valid argument. Using F2 may be ok, if you want to enter
text in a small number of cells, but not if you enter hundreds of
words. I'm speaking french and german (Stefan sounds german?),
you can not imagine the number of words starting with an accentuated
letter or starting with an 'Umlauted' letter.
Besides this, the F2 key may be reserved for frame navigation.
2) I tried to solve the problem, by writing my own cell editing in
a seperate wxTextControl. In that case, I'm falling into one another
problem. Because of your embedded in-cell editing, I can not
(or I do not succeed to) catch grid events like keyup, onchar, ....
Desabling the cell editing will not help. It does not make
these events alive. Using wxPython, I have tried things
like EVT_KEY_DOWN(self.GetGridWindow(), self.OnKeyDown)
but .... Is there doc about such events?
3) wxGrid is a very complexe widget/control, may be too much.
Why not provide a "wxSimpleGrid" control with a limited number of
methods, attributes, but that can catch all standard events?
An event char may be used for a task, that not fires editing.
I'm pretty sure, a lot of developpers be will happy with this.
There is wxStyledTextControl, but a wxTextControl.
And you, wxPython developpers, what do you think about this?
cc to wxpython-users list
Congrats for the 2.3.3.1 (wxWindow team and Robin)
Regards
Jean-Michel Fauth, Switzerland