Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

Carbon - Ghost objects inside of components

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turcan

Hello Lazarus mailing list!

I have got some ghost objects painted into components randomly and I don't know how to find out where the objects came from. The fact is that the same code works on linux Gtk2 brilliant. The objects are shown randomly on any component. Look at attachments and you will see, that top component is my own one, but the bottom one is standard LCL's TPanel.
The objects are always painted as gradient rectangles in horizontal or vertical direction.

It looks me as a rectangle which is reserved for TScrollbar. I hope, that Dmitry can explain it.

The reason why I think it could be related to TScrollingWindow is, that I have one component which sometimes looses the scrollbars in cases to be shown. When I open the form more times then I see that it behaves different even there is no reason.

Thanks in advance.

I use FPC and Lazarus SVN up-to-date.

Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk -------------- next part -------------- A non-text attachment was scrubbed... Name: Ghost.png Type: image/png Size: 5743 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100527/9177aed0/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Ghost2.png Type: image/png Size: 6900 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100527/9177aed0/attachment-0001.png>

Reply by email

dmitry boyarintsev
to Roland Turcan

2010/5/27 Roland Turcan :

It ? looks ? me ? as ? a rectangle which is reserved for TScrollbar. I hope, that Dmitry can explain it.

This is Scrollbars.
Somehow control's client size is reported wrongly, that makes LCL to show scrollbars.

thanks,
dmitry

Reply by email

Roland Turcan
to dmitry boyarintsev

Hello Dmitry,

Thanks for your fast reply, but how can I get rid off?

I have made many changes on my components, but I think my changes should not be responsible for this behavior. But if necessary I can check out my old state which was OK. But my latest build of that project was build on SVN from January 2010 and I have been making all changes on up-to-date state.

Should I test up-to-date LCL vs. old state of my code?

But there still one question remains. Why is LCL.TPanel painted wrong?

TRoland;

<<< 27.05.2010 13:22 - dmitry boyarintsev "" >>>
db> 2010/5/27 Roland Turcan :

> It ? looks ? me ? as ? a rectangle which is reserved for TScrollbar. I > hope, that Dmitry can explain it.

db> This is Scrollbars.
db> Somehow control's client size is reported wrongly, that makes LCL to db> show scrollbars.

db> thanks,
db> dmitry

Reply by email

Roland Turcan

Hello Dmitry,

I have found out, that when you create a new project and try to put TPanel on TForm in design time then sometimes the panel is painted with horizontal or vertical scroll bar area. But this seems to be related to a luck, because you have to repeat this new/delete/new/delete operations few time up to 15 to get it. It looks as not initialized property. :-|

As I wrote you, with my old components used and tested on SVN from beginning of year didn't have this problem and when I tried to build them into up-to-date then they showed this problem as well.

Thanks.

TRoland;

<<< 27.05.2010 13:42 - dmitry boyarintsev "" >>>

Roland Turcan wrote 7 lines
> I ?have ?made ?many ?changes ?on my components, but I think my changes > should ?not ?be ?responsible for this behavior. But if necessary I can > check ?out ?my ?old ?state ?which ?was OK. But my latest build of that > project ?was build on SVN from January 2010 and I have been making all > changes on up-to-date state. > > Should I test up-to-date LCL vs. old state of my code?

db> If it's possible, please test.

> But ?there ? still ?one ?question ?remains. ?Why is LCL.TPanel painted > wrong?

db> It's not painted wrong, it shows ScrollBars for some reason. db> How to reproduce?

db> thanks,
db> dmitry

Reply by email

Roland Turcan
to Roland Turcan

Hello Dmitry,

I have just tested this behavior on Lazarus Carbon PPC and it is the same as on Intel.

TRoland;

<<< 31.05.2010 16:29 - Roland Turcan "" >>>
RT> Hello Dmitry,

RT> I have found out, that when you create a new project and try to put RT> TPanel on TForm in design time then sometimes the panel is painted RT> with horizontal or vertical scroll bar area. But this seems to be RT> related to a luck, because you have to repeat this RT> new/delete/new/delete operations few time up to 15 to get it. It looks RT> as not initialized property. :-|

RT> As I wrote you, with my old components used and tested on SVN from RT> beginning of year didn't have this problem and when I tried to build RT> them into up-to-date then they showed this problem as well.

RT> Thanks.

RT> TRoland;

RT> <<< 27.05.2010 13:42 - dmitry boyarintsev "" >>>

Roland Turcan wrote 7 lines
>> I ?have ?made ?many ?changes ?on my components, but I think my changes >> should ?not ?be ?responsible for this behavior. But if necessary I can >> check ?out ?my ?old ?state ?which ?was OK. But my latest build of that >> project ?was build on SVN from January 2010 and I have been making all >> changes on up-to-date state. >> >> Should I test up-to-date LCL vs. old state of my code?

db>> If it's possible, please test.

>> But ?there ? still ?one ?question ?remains. ?Why is LCL.TPanel painted >> wrong?

db>> It's not painted wrong, it shows ScrollBars for some reason. db>> How to reproduce?

db>> thanks,
db>> dmitry

Reply by email