Sign in Join

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

Mailing lists / lazarus / 2011-03

TExtendedNotebook without drop arrows on GTK

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hi,

Is lazarus source editor using TExtendedNotebook from "LazControls" palette? Because when I change tab position by mouse drag, source editor component have arrows which shows new position, but TExtendedNotebook doesn't have (only drag cursor is changing). This is only on GTK, on windows I see arrows.

Regards

Reply by email

Martin
to Unknown author
Show quoted text 7 lines
Hi, Is lazarus source editor using TExtendedNotebook from "LazControls" palette? Because when I change tab position by mouse drag, source editor component have arrows which shows new position, but TExtendedNotebook doesn't have (only drag cursor is changing). This is only on GTK, on windows I see arrows.

Yes it does. and I was able to reproduce your problem

It works only if the extended notebook is in the top-left corner of the window

Seems TNoteBook.TabRect otherwise returns incorrect data

Reply by email

Unknown author
to Martin

W dniu 14.03.2011 22:06, Martin pisze:

Show quoted text 16 lines
On 14/03/2011 19:52, wrote: > Hi, > > Is lazarus source editor using TExtendedNotebook from "LazControls" > palette? Because when I change tab position by mouse drag, source > editor component have arrows which shows new position, but > TExtendedNotebook doesn't have (only drag cursor is changing). This > is only on GTK, on windows I see arrows. Yes it does. and I was able to reproduce your problem It works only if the extended notebook is in the top-left corner of the window Seems TNoteBook.TabRect otherwise returns incorrect data

You have right, because I have TToolBar in my project so this is not (1,1) point. In empty form with align=alclient I see arrows. You are author of this component or should I report this on bug trucker?

Reply by email

Martin
to Unknown author
Show quoted text 20 lines
W dniu 14.03.2011 22:06, Martin pisze: > On 14/03/2011 19:52, wrote: >> Hi, >> >> Is lazarus source editor using TExtendedNotebook from "LazControls" >> palette? Because when I change tab position by mouse drag, source >> editor component have arrows which shows new position, but >> TExtendedNotebook doesn't have (only drag cursor is changing). This >> is only on GTK, on windows I see arrows. > > Yes it does. and I was able to reproduce your problem > > > It works only if the extended notebook is in the top-left corner of > the window > > Seems TNoteBook.TabRect otherwise returns incorrect data You have right, because I have TToolBar in my project so this is not (1,1) point. In empty form with align=alclient I see arrows. You are author of this component or should I report this on bug trucker?

I wrote the ExtendedNotebook, but the bug is in the parent control/ in the widgetset.

I should have added to the last ,mail => yes please report as a bug:

TPageControl.TabPosition returns the wrong rect, if TPageControl is not in top/left corner.

then give the example with extended notebook.

Well it is either win32 or gtk that is wrong, since they should return the same results. If win32 is wrong then ext-notebook needs a fix too.

Reply by email

Unknown author
to Martin

W dniu 14.03.2011 22:50, Martin pisze:

Show quoted text 34 lines
On 14/03/2011 21:43, wrote: > W dniu 14.03.2011 22:06, Martin pisze: >> On 14/03/2011 19:52, wrote: >>> Hi, >>> >>> Is lazarus source editor using TExtendedNotebook from "LazControls" >>> palette? Because when I change tab position by mouse drag, source >>> editor component have arrows which shows new position, but >>> TExtendedNotebook doesn't have (only drag cursor is changing). This >>> is only on GTK, on windows I see arrows. >> >> Yes it does. and I was able to reproduce your problem >> >> >> It works only if the extended notebook is in the top-left corner of >> the window >> >> Seems TNoteBook.TabRect otherwise returns incorrect data > You have right, because I have TToolBar in my project so this is not > (1,1) point. In empty form with align=alclient I see arrows. You are > author of this component or should I report this on bug trucker? I wrote the ExtendedNotebook, but the bug is in the parent control/ in the widgetset. I should have added to the last ,mail => yes please report as a bug: TPageControl.TabPosition returns the wrong rect, if TPageControl is not in top/left corner. then give the example with extended notebook. Well it is either win32 or gtk that is wrong, since they should return the same results. If win32 is wrong then ext-notebook needs a fix too.

Ok, I reported it: http://bugs.freepascal.org/view.php?id=18926 . Thanks

Reply by email