Scrollbox with a Tupdown control for scrolling (so no scrollbars)

Posted on 2004-10-30
Last Modified: 2010-04-05

I'm looking for a control like Tscrollbox but with a Tupdown controll for scrolling instead of Srollbars.

What i'm trying to accomplish is to get a control where u have property TotalPages for example 10. A click on the tupdown down control would then scroll one page down (the size of the control) using the scrollby method. A simple check to see wheither there can be scrolled up or down by keeping a currentpage position. I can more or less create this behaviour without creating a component but the problem is that i like to be able to push on the Tupdown buttons in design time as well to scroll down in design time to add other controls on a new "page". So a Customn control would make sense.
Which parent class would i have to use etc, and is it even possible ?
Can anyone help me with this since ive never created a component and i'm clueless on how i would accomplish this all.

thanks in advance
Question by:joyrider
    LVL 12

    Accepted Solution

    Just a suggestion - use TNotebook (from Win 3.1 tab). It has pages - you can add pages dinamically and instead of Scrolling down and up, you can show the next tab. This will be simple and easy solution for your needs. If you still need TScrollBox - you can create TScrollBox on the tab and set its align to alClient.

    Of course it will not work if you want to display graphic.

    Author Comment

    Didn't knew about Tnotebook it's just what i needed, I can create pages and use a TupDown to control which page is active. Thanks !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now