wx.grid / Keep focus on column 0 when exeeding window width ...

Hello

I am looking a solution to solve this kind of issue …
Let take the GridSimple.py exemple from demo. I just increased width of Column D.

When I click on any cell in column D I get:

But I would like to keep focus on col 0 like this:

If there is something simple that can do that I am interested …

Stephane

Stéphane Bausson wrote:

Hello

I am looking a solution to solve this kind of issue ...
Let take the GridSimple.py exemple from demo. I just increased width of
Column D.

<https://lh3.googleusercontent.com/-f8vzxQtjJv0/Ute5TZ-WhEI/AAAAAAAACgc/OBX_ktMA-VY/s1600/sc1.png&gt;

When I click on any cell in column D I get:

<https://lh6.googleusercontent.com/-5vDXPlfH3Eg/Ute5vGWyuvI/AAAAAAAACgk/ArPAwH1cVqU/s1600/sc2.png&gt;

That is intended. The window scrolls so as much as possible of the focused control is visible.

But I would like to keep focus on col 0 like this:

<https://lh6.googleusercontent.com/-X8xNJ9VdXCc/Ute57D9SCWI/AAAAAAAACgs/e41V_ai7vxU/s1600/sc3.png&gt;

If there is something simple that can do that I am interested ...

No. Probably the best you can do is to catch the scroll events and move it back to where you want it after it has done the initial scroll, and that will look very ugly to the user.

···

--
Robin Dunn
Software Craftsman

Have no fear “Metallicow is here”

Attcehed Image.

ShapedBitmapButton.png