Page 1 of 1

SRV and TabSheet

Posted: Tue Jun 01, 2010 1:09 pm
by gotoxy
Is it only me or others are getting range check error when dropping a SRV into a TTabSheet of a TPageControl.


How to reproduce:
1. Create a new Application VCL
2. Drop a TPageControl
3. Add a Page
5. Drop SRV into the tabsheet
6. Set Align to alClient of the SRV
7. Run and get the error

How i did come to that, is im getting drawing issue in my software where i dock the SRV in real time to a TPageControl. the 2 Scrollbar are redrawn in black and i have to pass my mouse over to get it refreshed. Initially i use TAdvPageControl so i though i could have been a parent redraw error, but i cant get my test to run because of the range check error.

Screen shot of the issue with painting:
Image

Thanks for your time

Posted: Tue Jun 01, 2010 4:24 pm
by Sergey Tkachenko
Can you create a simple project to reproduce, preferable without thirdparty controls?

Posted: Wed Jun 02, 2010 12:22 pm
by gotoxy
How to reproduce:
1. Create a new Application VCL
2. Drop a TPageControl
3. Add a Page
5. Drop SRV into the tabsheet
6. Set Align to alClient of the SRV
7. Run and get the error
There is no third party controls.

and if your request about the application was about the scrollbar refresh issue, well
but i cant get my test to run because of the range check error.
Thanks again to take your time

GoToXY

Posted: Wed Jun 02, 2010 3:05 pm
by Sergey Tkachenko
It will be fixed in the next update.
Meanwhile, turn off range checking in the project options.

Posted: Thu Jun 10, 2010 12:44 pm
by gotoxy
ok thx