[Lazarus] Carbon and TMemo/TEdit

Tom Gregorovic _tom_ at centrum.cz
Fri May 30 13:18:37 CEST 2008


On Fri, May 30, 2008 at 10:47 AM, Damien Gerard <milipili at shikami.org> wrote:
>
> I have in my app a TScrollBox (AutoScroll=True) with some controls
> created by hand as follow :
>
> E := TEdit.Create(nil);
> E.Parent := MyScrollBox;
> [...]
>
> Works fine under GTK2/Win32. However with Carbon TEdit and TMemo don't
> have a border and they are not properly drawn when scrolling in the
> TScrollBox.
>
> I try to make a new and simple app to reproduce it but using the IDE
> to create controls (Lazarus with the Carbon Widgetset) and all works
> well, at runtime such as designtime (except the control selects the
> whole text then deselect it when you click on it).
>
> Would the parameter `nil` (in `TEdit.Create(nil)`) be a problem with
> the Carbon WidgetSet ?
>

Hi,
I think the problem is in adjusting client area of TScrollBox after
its content changes. I deal with this so long and have been not able
to solve it so far.

Tom



More information about the Lazarus mailing list