Message from discussion
wxGrid cursor positioning problem using wx-2.9.x-osx_cocoa
Received: by 10.43.134.67 with SMTP id ib3mr344247icc.53.1312479164887;
Thu, 04 Aug 2011 10:32:44 -0700 (PDT)
X-BeenThere: wxpython-mac@googlegroups.com
Received: by 10.231.181.82 with SMTP id bx18ls745818ibb.1.gmail; Thu, 04 Aug
2011 10:32:44 -0700 (PDT)
Received: by 10.42.94.66 with SMTP id a2mr638795icn.36.1312479163791;
Thu, 04 Aug 2011 10:32:43 -0700 (PDT)
Received: by 10.42.94.66 with SMTP id a2mr638794icn.36.1312479163782;
Thu, 04 Aug 2011 10:32:43 -0700 (PDT)
Return-Path: <ro...@alldunn.com>
Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42])
by gmr-mx.google.com with ESMTPS id p1si9288147pbf.1.2011.08.04.10.32.43
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 04 Aug 2011 10:32:43 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of ro...@alldunn.com) client-ip=209.85.210.42;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of ro...@alldunn.com) smtp.mail=ro...@alldunn.com
Received: by pzk37 with SMTP id 37so3687496pzk.15
for <wxpython-mac@googlegroups.com>; Thu, 04 Aug 2011 10:32:43 -0700 (PDT)
Received: by 10.142.188.4 with SMTP id l4mr965915wff.74.1312479163286;
Thu, 04 Aug 2011 10:32:43 -0700 (PDT)
Return-Path: <ro...@alldunn.com>
Received: from dazzler.alldunn2.com (c-98-246-90-205.hsd1.wa.comcast.net [98.246.90.205])
by mx.google.com with ESMTPS id u6sm2436057pbh.48.2011.08.04.10.32.42
(version=SSLv3 cipher=OTHER);
Thu, 04 Aug 2011 10:32:42 -0700 (PDT)
Message-ID: <4E3AD7B9.7090408@alldunn.com>
Date: Thu, 04 Aug 2011 10:32:41 -0700
From: Robin Dunn <ro...@alldunn.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version: 1.0
To: wxpython-mac@googlegroups.com
Subject: Re: [wxPython-mac] wxGrid cursor positioning problem using wx-2.9.x-osx_cocoa
References: <4E3A885A.4010...@forestfield.co.uk>
In-Reply-To: <4E3A885A.4010...@forestfield.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 8/4/11 4:54 AM, David Hughes wrote:
> Mac OS X 10.6.7 and 10.7
> Python 2.7.2
> wx-2.9.(1&2)-osx_cocoa
>
> I have a notebook page containing, amongst other controls, a wx.grid.
> After the page is loaded with data from a database record, the grid
> cursor is set to the first column in the first empty row after the
> existing data. When the grid contains sufficient rows so it has to
> scroll to make the last row visible, the grid cell editor is in the
> right place (with its intrusive blue border in 9.2.2) but the cursor,
> and subsequent data entry, appears a few row spaces (not integer) higher
> up. Once the entry is complete, the cell is then rendered in the correct
> place
>
> All works OK with the Carbon versions.
>
> If I increase the grid row heights, the distance-in-error gets bigger -
> this seems to imply some sort of calculation problem - in the wxWidgets
> code? - that I can't reach using the Wing debugger.
>
> However, in attempting to create a simple runnable example, I also came
> across problems with the the grid demo (using 2.9.x-osx_cocoa): neither
> GridSimple nor GridStdEdRend will accept input to any cell but
> GridCustEditor seems to be OK. I don't know yet whether this is related
> to my problem above.
>
The C++ sample seems to be doing the same thing. I'll see if I can
track down the problem there.
> To avoid spending a lot of time tracking things down I'm asking first if
> anyone is already aware of any of these problems. I couldn't see
> anything relevant in trac.wxwidgets.
>
> Incidentally, why is it necessary to have both a Cocoa and a Carbon
> version of the OS X docs and demos download? They both seem to run using
> whatever version wxPython is installed with.
It probably isn't needed then. It was an "err on the side of caution"
type of decision.
--
Robin Dunn
Software Craftsman
http://wxPython.org