Phantom Documentation

[Help Home] [Phantom Home]
ScrollBar Functions

The following functions are for use with the ScrollBar type class.  These functions work for both horizontal and vertical ScrollBars.

            GetPos
            SetPos
            GetMinimum
            GetMaximim


Example Code

# Include Phantom Target Declarations
use "PhantomTarget.dec";
System("PhantomTarget.exe");

# Open the scrollbar controls
PhantomTarget._Controls._ScrollBars.Select();

# Set a new maximum
Scroll.Edit1.SetText("300");
Scroll._Set.Click();

# Display the maximum and minimum for a
# scrollbar
disp(Scroll.ScrollBar1.GetMaximum());
disp(Scroll.ScrollBar1.GetMinimum());

# Set the position of a scrollbar
Scroll.ScrollBar1.SetPos(50);

# Retrieve the position of a scrollbar
disp(Scroll.ScrollBar1.GetPos());

# Exit out
Scroll.OK.Click();
PhantomTarget.Close();



See Also: ScrollBar Class


Copyright 2000-2011 Phantom Automated Solutions