lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Pasting between multiline edit controls


From: Greg Chicares
Subject: Re: [lmi] Pasting between multiline edit controls
Date: Wed, 11 May 2016 22:50:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0

On 2015-11-11 14:50, Vadim Zeitlin wrote:
> On Tue, 10 Nov 2015 18:46:59 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> But I can't get the paste handler to work. Let me present my patch and ask
> GC> you to tell me what I'm doing wrong.

Thanks for explaining that. I applied your patch here:
  
https://github.com/vadz/lmi/pull/12/commits/03df797d18ac2be60ecdc5a6d27380baf8e74381
20160511T2238Z, revision 6580. (Soon I'll address the "TODO" marker
that I didn't apply.)

Returning to this after some months, I was surprised to see that this
desirable new behavior:

+/// Type wxTextCtrl: Paste literal clipboard contents. Text delimited
+/// with "\n" or "\r\n" is shown on distinct lines in a multiline text
+/// control with all delimiters removed; in single-line text controls,
+/// all delimiters are replaced by RETURN_SYMBOL.

ensued from adding just one line:

  if(!dynamic_cast<InputSequenceEntry*>(t->GetParent())) {return;}

but that's the behavior that {return;} gives now that the RETURN_SYMBOL
support is in wx, right? I might revise the comment block to explain
that specifically.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]