Re: Paste rows patch

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Edward Di Geronimo Jr(dot)" <edigeronimo(at)xtracards(dot)com>, <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Paste rows patch
Date: 2006-05-09 15:46:29
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E401388019@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

> -----Original Message-----
> From: pgadmin-hackers-owner(at)postgresql(dot)org
> [mailto:pgadmin-hackers-owner(at)postgresql(dot)org] On Behalf Of
> Edward Di Geronimo Jr.
> Sent: 09 May 2006 15:00
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: Re: [pgadmin-hackers] Paste rows patch
>
> Quoting Dave Page <dpage(at)vale-housing(dot)co(dot)uk>:
>
> > It's looking much better, however, I still think that if
> the cursor is
> > actually active in a cell then the paste should go to that
> cell, and
> > only in other cases to the new row. On Windows, the only way to do
> > that is ctrl-v or right-click->paste. The paste button and ctrl-v
> > should always do the same thing (though I wonder if that's an issue
> > with Windows doing the actual paste operation in the ctrl-v
> case) imo.
>
> I forgot about that issue. I think you're right, however, I
> don't really know how to solve it. I think the solution is to
> detect if the cursor is in an edit box, and call the edit
> box's Paste function if so, however, I'm not sure how to tell
> if we're in an edit box or not.

We enable/disable the save button on the entry/exit of a cell - see
frmEditGrid::OnEditorShown() & frmEDitGrid::OnSave(). Does that look
robust enough to use to set a flag?

Regards, Dave.

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Andrew Lazarus 2006-05-09 17:44:32 Re: [pgadmin-support] Segmentation fault in GUI
Previous Message svn 2006-05-09 15:10:21 SVN Commit by dpage: r5139 - trunk/pgadmin3/xtra/wx-build