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.

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

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

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

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

Re: [lazarus] TMaskEdit

2007-11-22 Thread Marc Weustink
Guadagnini David wrote: In attach You can found my TMaskEdit component that work well in Windows At first glance this looks like a clean implementation without copied code (can sombody this verify agains cppbuilder implementations) Some remarks about the code: Try to avoid Arguments and

Re: [lazarus] TMaskEdit

2007-11-22 Thread Marc Weustink
Guadagnini David wrote: Try to avoid Arguments and Methods prefixed with _ For Aguments there is no problem in prefixing them with A, for property getters there is nothing wrong with prefixing them with Get. In your case, GetIsMask makes perfectly clear that it reads the IsMasked property.

Re: [lazarus] TMaskEdit

2007-11-22 Thread Guadagnini David
Try to avoid Arguments and Methods prefixed with _ For Aguments there is no problem in prefixing them with A, for property getters there is nothing wrong with prefixing them with Get. In your case, GetIsMask makes perfectly clear that it reads the IsMasked property. Ok! Variable names

Re: [lazarus] TMaskEdit first version

2007-10-29 Thread Graeme Geldenhuys
On 29/10/2007, Marc Weustink [EMAIL PROTECTED] wrote: Guadagnini David wrote: In attach You can found the first version of the control TMaskEdit. For make it I used the delphi 5 source code. PLEASE, PLEASE, PLEASE Don't use copyrighted material when submitting code. At least this time