This reply seems to have got lost, so I am sending it again. Apologies to
anyone if you receive it twice.
Frank
Frank Millman wrote:
Hi all,
A little while ago I reported some problems using a customised grid cell
editor. The problems occur only with MSW, not with Linux. Platforms are
Windows 2000, Python 2.2.2, wxPython 2.4.0.2u, and RedHat 9, Python
2.2.3,
wxPython 2.4.1.2u.
Robin advised adding the following style to wxTextCtrl -
It works, but I have now come across a side-effect. On pressing F2 to
enter
edit mode, the left/right/home/end keys no longer work.
Robin Dunn wrote:
Within the edit control or once you return to the grid? Do any of the
grids in the demo have this problem?
Within the edit control. If I add the above style to GridCustEditor.py in
the demo, it shows the same behaviour. The style that causes the problem is
wxTE_MULTILINE.
This reply seems to have got lost, so I am sending it again. Apologies to
anyone if you receive it twice.
Frank
Frank Millman wrote:
Hi all,
A little while ago I reported some problems using a customised grid cell
editor. The problems occur only with MSW, not with Linux. Platforms are
Windows 2000, Python 2.2.2, wxPython 2.4.0.2u, and RedHat 9, Python
2.2.3,
wxPython 2.4.1.2u.
Robin advised adding the following style to wxTextCtrl -
It works, but I have now come across a side-effect. On pressing F2 to
enter
edit mode, the left/right/home/end keys no longer work.
Robin Dunn wrote:
Within the edit control or once you return to the grid? Do any of the
grids in the demo have this problem?
Within the edit control. If I add the above style to GridCustEditor.py in
the demo, it shows the same behaviour. The style that causes the problem is
wxTE_MULTILINE.
The MULTI_LINE was recenlty removed from the default cell editor style
too. There may have been a recent change to multi-line mode that causes
problems like this.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Frank Millman wrote:
> This reply seems to have got lost, so I am sending it again. Apologies
to
> anyone if you receive it twice.
>
> Frank
>
> Frank Millman wrote:
>
>>>Hi all,
>>>
>>>A little while ago I reported some problems using a customised grid
cell
>>>editor. The problems occur only with MSW, not with Linux. Platforms are
>>>Windows 2000, Python 2.2.2, wxPython 2.4.0.2u, and RedHat 9, Python
>
> 2.2.3,
>
>>>wxPython 2.4.1.2u.
>>>
>>>Robin advised adding the following style to wxTextCtrl -
>>>
>>>wxTE_PROCESS_TAB|wxTE_MULTILINE|wxTE_NO_VSCROLL|wxTE_AUTO_SCROLL
>>>
>>>It works, but I have now come across a side-effect. On pressing F2 to
>
> enter
>
>>>edit mode, the left/right/home/end keys no longer work.
>
>
> Robin Dunn wrote:
>
>>Within the edit control or once you return to the grid? Do any of the
>>grids in the demo have this problem?
>
>
> Within the edit control. If I add the above style to GridCustEditor.py
in
> the demo, it shows the same behaviour. The style that causes the problem
is
> wxTE_MULTILINE.
The MULTI_LINE was recenlty removed from the default cell editor style
too. There may have been a recent change to multi-line mode that causes
problems like this.
Success!
My original problem, which MULTILINE was intended to solve, was that if
ENTER is pressed inside the GridCellEditor, it is consumed by any active
wxButton elsewhere on the frame. I have now found that if I substitute
wxPROCESS_ENTER for wxTE_MULTILINE, this also solves the problem, without
any of the side-effects of MULTILINE.