Recent

Author Topic: problem with pagecontrol in design time  (Read 492 times)

calebs

  • Full Member
  • ***
  • Posts: 215
problem with pagecontrol in design time
« on: December 17, 2025, 08:57:47 pm »
Hello all again.
I posted this on the thread of new lazarus 4.4 but i don't know if is the right place to post it because is a problem that i've experiencing from several versions before
Drop a page control to a form, then proceed to create many pages with captions that exceed the available form space for displaying all tabs and then proceed to use the arrows buttons from above right to scroll betwen pages and the right button advance to the next tab (right) and if i keep pressing it it keeps moving to the right. But when the first tab gets out of sight or when i get to the last tab (page) the arrow buttons are disabled and doesn't work anymore.
if i change the active page value from the object inspector to the first page again those buttons are enabled again but it repeats the same behaviour when i get to the last again.
I think this is happening from several versions of lazarus before but forgot to mention it.
This happens on designer, when program runs it works as expected
Thanks!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12116
  • Debugger - SynEdit - and more
    • wiki
Re: problem with pagecontrol in design time
« Reply #1 on: December 17, 2025, 10:00:49 pm »
I was able to see the issues on Windows 10. A very quick check indicates that it does affect 4.x but not 4.99.

If the fix was intentional (i.e. not the by product of some other fix) then I don't know why it wasn't merged. There are lots of commits mentioning pagecontrol, so it would require more time than I currently have to find which commit fixed it (with the aim to then find if it might be merged)

wp

  • Hero Member
  • *****
  • Posts: 13353
Re: problem with pagecontrol in design time
« Reply #2 on: December 17, 2025, 11:19:35 pm »
Strange, I don't see an issue with Laz 4.4 on Windows 11. What is the operating system and widgetset that you are using?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12116
  • Debugger - SynEdit - and more
    • wiki
Re: problem with pagecontrol in design time
« Reply #3 on: December 17, 2025, 11:46:06 pm »
Yes, the same as I use in 4.99 / same settings to compile IDE.

If you add tabs it will keep scrolling, keeping the last added tab active. When I have 4 or 5 tabs the first scrolls off. But best to add like 10 tabs.

If the last tab is visible AND active, then the 2 buttons "<" and ">" (at the top left corner) will not do anything if I click them.

If I select the first tab from OI, then I can use those 2 buttons to scroll the tabs.

wp

  • Hero Member
  • *****
  • Posts: 13353
Re: problem with pagecontrol in design time
« Reply #4 on: December 18, 2025, 12:32:10 am »
Ah, at designtime! Here I see it now (in Laz 4.4, but not in 4.99)

 

TinyPortal © 2005-2018