Questions tagged [tscrollbox]
41 questions
9
votes
4 answers
Why is my TScrollBox not showing scrollbars?
This seems like a very simple problem, but I cannot get a scrollbox to display scrollbars, and it is driving me crazy.
Here is the situation. I need to display a variable number of frames in a portion of a form. The area in which these frames are…

Cary Jensen
- 3,751
- 3
- 32
- 55
9
votes
3 answers
How to detect whether scrollbar is at the very bottom?
It is easy to detect whether the vertical scrollbar of a TScrollBox is at the very top or not:
IsScrollBarAtTop := ScrollBox1.VertScrollBar.Position = 0;
But how can I detect whether the vertical scrollbar of a TScrollBox is at the very BOTTOM or…

user1580348
- 5,721
- 4
- 43
- 105
8
votes
1 answer
How to add components to TScrollBox dynamically one below another on button click?
I have created one TScrollBox. I have added the Label and Edit Box on it dynamically on Button click. For setting the location of component i have used the height,width,left,top property of components.
But when Scroll Bar gets appeared on screen…

naren
- 629
- 4
- 15
- 22
8
votes
1 answer
How to track scrolling of TScrollBox in Delphi
Is there any simple way to track scrolling of TScrollbox content with his scrollbars ?
I have several TScrollBox components (each of them has some components inside) and would like to keep them synchronous. If one of scrollboxes scrolled (vertically…

Andrei Galatyn
- 3,322
- 2
- 24
- 38
5
votes
1 answer
TScrollbox MouseDown override
I created a Custom scrollbox derives from TScrollbox that works the same except that it will scrolls when dragging in the client area aside from its scrollbars.
My problem now is i cannot Drag To Scroll when mouse is on a button or panel inside my…

XBasic3000
- 3,418
- 5
- 46
- 91
5
votes
1 answer
Check is TScrollBox scrollbars are actually visible
I have a simple sizable form with TScrollBox (Align := alClient) and some controls put on TScrollBox. If user change the form size, TScrollBox show and hide the HorzScrollBar and VertScrollBar (depend on actual client form size).
How to check at…

Y.N
- 4,989
- 7
- 34
- 61
4
votes
1 answer
My TVertScrollBox doesn't want to scroll on Android
I am using TVertScrollBox in a Delphi FireMonkey app that needs to work on Android, iOS, and Win32. My app works fine on Win32, that is, when the box is bigger than the available area, I get a scroll bar, and I can scroll it.
However, on Android,…

spierepf
- 2,774
- 2
- 30
- 52
4
votes
3 answers
Show form from DLL in TScrollBox
I posted this online: Show form from DLL in TScrollBox
What i am trying to do is call and show a form in a Delphi TScrollBox.
Not as Show or ShowModal
Example but not with any DLL:
Form1.Parent:= ScrollBox;
Form1.Show;
How do i use this example…

Unit4
- 85
- 1
- 5
3
votes
2 answers
How to show scrollbars in TScrollBox after it has been made visible again?
I've ran into one small problem. I am dynamically generating some controls and place them on a TScrollbox component. But I noticed that if the scrollbox is visible, user can clearly see each of the controls being created and placed. So it looks like…

user1651105
- 1,727
- 4
- 25
- 45
2
votes
2 answers
How to scroll the Scrollbox by .Perform() or SendMessage if Scrollbar.visible := False?
I have observed that when you hide the Horizontal Scrollbar, it will not scroll when using the
sbxStudyBtnHolder.Perform(WM_HSCROLL, SB_LINEDOWN, 0);
how can we make it possible?

XBasic3000
- 3,418
- 5
- 46
- 91
2
votes
1 answer
Do I need to 'create'/initialize local variables if they are just used as pointers to form controls?
I have this simple example of syncing Scrollboxes, where I control which side is synced by Radio button - Sync Left or Right side. When I compile, I get compiler messages:
[dcc32 Warning] Unit1.pas(51): W1036 Variable 'ScrlBox1' might not have been…

Mike Torrettinni
- 1,816
- 2
- 17
- 47
2
votes
1 answer
How to keep controls in a Scroll Box from jumping into focus?
I have a TScrollBox which scrolls vertically, and the horizontal scroll bar is disabled. Inside this scroll box, there's a single large panel aligned to the top, and its height is dynamically calculated based on its contents. Its contents are two…

Jerry Dodge
- 26,858
- 31
- 155
- 327
2
votes
1 answer
Scrolling Programmatically THorzScrollBox Firemonkey XE6
I have a THorzScrollBox in a form, and some TStyledControls inside. Each StyledControl has a Tag to identify. Using an TEdit to inform a value, I can find inside the ScrollBox an specific Control by his tag.
If the control that I searched is not on…

Filipe Martins
- 608
- 10
- 23
2
votes
2 answers
Object container based on TGraphicControl
I'm using TScrollBox to make custom list contains many controls (Tlabels,Timages,Tshapes)
the problem is when i use TPanels as a container for each Item the list getting slow and flickery after adding about 100 items.
i'm looking for an alternative…

Somebody
- 703
- 1
- 7
- 23
2
votes
0 answers
Can't set scrollbar in C++ Builder component
I'm using Embarcadero Software's C++Builder to display some form-based graphics; the canvas is scrollable, and when you move the mouse wheel, the event handler does some internal calculations which decide where the scroll bar should go. Then it…

user2084572
- 331
- 3
- 12