Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Carbon
»
TScrollWindow
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Offical launch of the 1 B...
by
Gustavo 'Gus' Carreno
[
Today
at 12:50:46 am]
what to do if my target M...
by
Laksen
[
Today
at 12:49:12 am]
For-in loop over constant...
by
ASerge
[
Today
at 12:36:09 am]
Converting a string/index...
by
TRon
[April 18, 2024, 11:56:37 pm]
exclude ALL packages from...
by
PascalDragon
[April 18, 2024, 11:33:29 pm]
Demoscene The Champs Crac...
by
KodeZwerg
[April 18, 2024, 11:29:50 pm]
Poll: Watches and Display...
by
440bx
[April 18, 2024, 10:55:14 pm]
Database standards OR Am ...
by
dseligo
[April 18, 2024, 10:50:26 pm]
BUG REPORT: Unable to gen...
by
PascalDragon
[April 18, 2024, 10:24:23 pm]
How to: create DLL file f...
by
paule32
[April 18, 2024, 10:23:59 pm]
Have anyone develop UEFI ...
by
PascalDragon
[April 18, 2024, 10:14:15 pm]
Lazarus for Windows on aa...
by
PascalDragon
[April 18, 2024, 10:09:10 pm]
The weird Rewrite bug
by
PascalDragon
[April 18, 2024, 09:58:53 pm]
Assign (textfile) not com...
by
PascalDragon
[April 18, 2024, 09:51:50 pm]
Question for people who h...
by
PascalDragon
[April 18, 2024, 09:44:32 pm]
Linux Workspaces -- StayO...
by
AmatCoder
[April 18, 2024, 08:34:20 pm]
I just released a commerc...
by
Seenkao
[April 18, 2024, 07:57:21 pm]
Access violation when re-...
by
TRon
[April 18, 2024, 07:37:31 pm]
[SOLVED] assembler name i...
by
TRon
[April 18, 2024, 07:26:33 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 18, 2024, 07:01:52 pm]
Step-into the field sette...
by
Martin_fr
[April 18, 2024, 06:54:19 pm]
[Fun Fact] PNG and Micros...
by
Ten_Mile_Hike
[April 18, 2024, 06:24:19 pm]
HTTP/2+HTTP/1.1+WebSocket...
by
iLya2IK
[April 18, 2024, 06:14:30 pm]
Improvement of TFPTimerTh...
by
AlexTP
[April 18, 2024, 05:56:38 pm]
Arabic text, problem on L...
by
nouzi
[April 18, 2024, 05:21:27 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: TScrollWindow (Read 8177 times)
JimKueneman
Full Member
Posts: 220
TScrollWindow
«
on:
May 01, 2017, 10:18:50 pm »
Is there anyone who is good at Carbon graphics who can help me finally fix the TScrollWindow? The way the mouse position is calculated works correctly if the window is not scrolled but as you scroll the window the offsets that appear in the Mouse events get more incorrect the further you scroll. This make using TScrollWindow for anything that involves the mouse useless. This problem has been around for years. I put ticked and demo in the tracker a long, long time ago but it is still broken and I am not smart enough with Carbon to fully understand where it is going wrong. I have single stepped through the code and can see it is not getting the right offset but the way it gets and calculates these points is convoluted and I am not sure which step is failing. It works correctly in Linux and Windows builds.
I think it may have something to do with the scrollbar code itself (which is used in one of the steps to calculate the client area for the mouse events). There is no way to set the scrollbar parameter to get the window to scroll completely, you always have to add some non-consistent padding on the scroll max to compensate, again Linux and Windows work correctly. If I make a rectangle larger than the visible screen and set the scrollbar bounds to the size of the rectangle OSX will not scroll the rectangle completely and will always cut off some of the far edge.
https://bugs.freepascal.org/view.php?id=24279
thanks,
Jim
«
Last Edit: May 01, 2017, 10:29:16 pm by JimKueneman
»
Logged
AlexTP
Hero Member
Posts: 2402
Re: TScrollWindow
«
Reply #1 on:
May 08, 2017, 12:19:19 pm »
Hi
If you try own control, based on Paintbox+Scrollbars, its good.
Consider also own control based on ATScrollbar+Panel. not themed scrollbars, but stable.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Carbon
»
TScrollWindow
TinyPortal
© 2005-2018