[Lazarus] Visual "uglyness" when creating TSynEdit @ runtime in my app

luiz americo pereira camara luizmed at oi.com.br
Sat Jan 5 15:09:48 CET 2013

2013/1/5 Martin <lazarus at mfriebe.de>:
> On 05/01/2013 12:57, luiz americo pereira camara wrote:
>> 2013/1/5 Martin <lazarus at mfriebe.de>:
>>> On 05/01/2013 11:19, luiz americo pereira camara wrote:
>>>> Can you check (comment ShowScrollBar) if the paint you are seeing is
>>>> really from ShowScrollBar?
>>> This would not make sense?
>>> Nothing, except the scrollbars is painted (SynEdit does not paint).
>> I understood that SynEdit.Paint was called when setting Parent in your
>> system, but seems this is not the case.
>> Although in the description of Bart he sees the whole SynEdit painted.
> I am sure he was mistaken:
>>   for a
>> brief moment you can see the TSynEdit,
> He would see the 2 scrollbars, and in the sort time he would not have paid
> attention to the absence of all else. Seing the 2 scrollbars *flicker* it is
> only natural to assume one saw the synedit flicker.


Now i see the issue. At runtime i could not notice the flicker and
there's no WM_PAINT message involved, only stepping with the debugger
is possible to see the control painted


putting SWP_NOREDRAW in SetWindowPos

It fixed here, but not sure of collateral effects


More information about the Lazarus mailing list