[lazarus] Patch: ComboBox issues
Karl Brandt
pascalive at bol.com.br
Sat Aug 2 12:57:34 EDT 2003
Marc Weustink wrote:
>
> I was wondering why there isn't such adjustment in Delphi, so I've been
> playing with some spy and control modification tools and saw the following.
Can you share these tools?
> When sending a SetWindowPos with a new height N (Original height is H) I
> get:
> WM_WINDOWPOSCHANGING height N
> WM_WINDOWPOSCHANGED height N
> WM_SIZE height N
> WM_WINDOWPOSCHANGING height H
> WM_WINDOWPOSCHANGED height H
> WM_SIZE height H
> WM_WINDOWPOSCHANGING height H
>
Did you tested in LCL or in plain win32?
> So the win32 interface should allways report editheight at the end (but
> isn't it getting this height from the internal WM_SIZE ?)
>
> On a dropdown I see the same, where N is the total height.
>
> GetClientRect reports height N
>
> [SNIP]
>
> + > TCustomComboBox is a base class, so optional properties should
> + > be protected.
> +
> + The current way i did is incompatible if custom descendants of
> + TCustomComboBox
>
> I think it also works for fpc. to access protected members, cast it to a
> local derived class, like
> TMyCustomComboBox = class(TCustomComboBox)
> end;
>
Thanks for the hint
karl
More information about the Lazarus
mailing list