ListCtrl EnsureVisible

Hi,

ListCtrl EnsureVisible method returns True if item is visible or False if item is not visible but it doesn’t scroll my ListCtrl…
Why?

Thx

Platform? Version? Small runnable sample? MakingSampleApps - wxPyWiki

···

On 10/28/10 3:19 AM, Christian D�molis wrote:

Hi,

ListCtrl EnsureVisible method returns True if item is visible or False
if item is not visible but it doesn't scroll my ListCtrl...
Why?

--
Robin Dunn
Software Craftsman

I see EnsureVisible failing to work as well.

My example code is pysvn Workbench. Its checkin dialog will be off by one line
if you are checking in more files then fit in the dialog box. (Yes I know this is hardly
a small example).

This has been reported to me as a problem on Windows XP and I have reproduced it
on Mac OS X.

I'm using wxPython 2.8.10.1 with python 2.6 on Mac OS X 10.6.5.

The case I've reproduced EnsureVisible is called with 0 which
I assume is the index of the first row in the list control.

The code in question is in wb_subversion_list_handler_common.py
at line 326.

Barry

···

On 28 Oct 2010, at 17:25, Robin Dunn wrote:

On 10/28/10 3:19 AM, Christian Démolis wrote:

Hi,

ListCtrl EnsureVisible method returns True if item is visible or False
if item is not visible but it doesn't scroll my ListCtrl...
Why?

Platform? Version? Small runnable sample? MakingSampleApps - wxPyWiki

--
Robin Dunn
Software Craftsman
http://wxPython.org

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en