Re: [lazarus] TMaskEdit new release

2007-11-23 Thread Marc Weustink

Guadagnini David wrote:


Yes, those actions are *not* handled by the LCL, it is the widgetset 
itself which handles the paste. Therefore, you won't see a call to 
SetText.
This is a problem for components similar to MaskEdit because no one can 
handle text input through alternative control + v.
Whether you know there is some procedure call after or before a paste 
command?


You don't. However, the widgetsetinterface should notice a control when 
something is pasted. I don't kbnow if all interfaces implement this atm.


Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit new release

2007-11-23 Thread Marc Weustink

Guadagnini David wrote:




Again, that did you do ? Paste by doing calling paste, or paste by 
pressing ctrl-v (or choose paste form edit popup)


I tried past with ctrl+v, ctrl+ins and paste from edit popup but It's 
the same


Yes, those actions are *not* handled by the LCL, it is the widgetset 
itself which handles the paste. Therefore, you won't see a call to SetText.


Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit new release

2007-11-23 Thread Guadagnini David




Again, that did you do ? Paste by doing calling paste, or paste by 
pressing ctrl-v (or choose paste form edit popup)


I tried past with ctrl+v, ctrl+ins and paste from edit popup but It's 
the same
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;RD
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [lazarus] TMaskEdit new release

2007-11-23 Thread Marc Weustink

Guadagnini David wrote:
In attach You can found my TMaskEdit component with the changes proposed 
by Marc.


Note:
TComponent have a big bug (for me). The windows message WM_PASTE is not 
processed correctly.
In fact, if the override procedure RealSetText or WndProc by entering a 
simple Begin/End without other the text is still overridden if I execute 
a PAST command (note the text will be override only with past command, 
not with key press or with a normal TEXT := 'Mystring')



Again, that did you do ? Paste by doing calling paste, or paste by 
pressing ctrl-v (or choose paste form edit popup)


Marc


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit new release

2007-11-23 Thread Guadagnini David


Yes, those actions are *not* handled by the LCL, it is the widgetset 
itself which handles the paste. Therefore, you won't see a call to 
SetText.
This is a problem for components similar to MaskEdit because no one can 
handle text input through alternative control + v.
Whether you know there is some procedure call after or before a paste 
command?
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;RD
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vcard