• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

the scroll bar works like edit box?

Hi
I mean I am trying to do a program that works with   scroll bars, So What  I want to know is how can use scrool bars like edit boxes.
Any suggestions#
Thanks
Guerra
0
guerra
Asked:
guerra
  • 2
1 Solution
 
pjdbCommented:
Use TMemo instead of TEdit. The difference is that TMemo manage many lines while TEdit manage only one line
0
 
guerraAuthor Commented:
Hi
How can I put a scrollbar for example with values from 0 to 360 selected the value and this value will appear in an edit box.
Any suggestion#
Thanks
Guerra
0
 
pjdbCommented:
drop a scrollbar and an edit box on a from. put "edit1.text:=IntToStr(ScrollBar1.Position);" in the onchange event of the scroll bar to show the current position of the scroll bar in the edit box and "ScrollBar1.Position:=StrToInt(edit1.text);" to modify the scroll bar position from the edit box

JDB
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now