Fandom

Livecode Wiki

Scrollbar

2,161pages on
this wiki
Add New Page
Comments0 Share
Scrollbar object is used for progress bar, sliders, arrows and much more.


Scrollbar orietation is automatic, is the direction of the major size between horizontal and vertical.

The value of the current position showed in the scrollbar is the thumbpos. Example:

on mouseUp
  answer the thumbpos of me
end mouseUp

One very common message used with this object is scrollbarDrag:

on scrollbarDrag newValue 
  put newValue  
end scrollbarDrag

Basic PropertiesEdit

The basic properties change depending on the style chosen:

ScrollbarEdit

  • visible
  • disabled
  • focus with keyboad
  • orientation
  • Start value (usually zero)
  • End value (usually pixels)
  • Current value (usually pixels from starting point)
  • Thumb size (dimesnion of the small scrolling box)
  • Scroll distance: how many pixel the thumb advance when
    • on arrow click (clicking the arrows at the end of the scroller)
    • on bar click (clicking the scrollbar directly)
  • Layer mode
  • Behavior

SliderEdit

  • visible
  • disabled
  • focus with keyboard
  • orientation
  • Start value (usually zero)
  • End value (any number)
  • Current value (any number)
  • Show value: show the number of the current value
  • Value format: what format use for the value. It uses the numberFormat syntax
  • Scroll distance: how many pixel the thumb advance when
    • on bar click (clicking the scrollbar directly)
  • Layer mode
  • Behavior

Progress barEdit

  • visible
  • disabled
  • Start value (usually zero)
  • End value (any number)
  • Current value (any number)
  • Layer mode
  • Behavior

Little arrowsEdit

  • visible
  • disabled
  • focus with keyboard
  • focus border
  • orientation
  • Start value
  • End value
  • Current value 
  • Value change:
    • on arrow click (clicking the arrows)
  • Layer mode
  • Behavior

Colors & patternsEdit

Here you can set the color of various elements of the button. You can choose a pattern instead of a color.

Custom propertiesEdit

Custom properties are the best replacement for variable in Livecode. You can use variables in Livecode, but usually they are just temporary; on the contrary custom properties are real containers for all your data. Easy to recover and to check.

GeometryEdit

See Geometry manager

Graphic effectsEdit

Here yo can activate and mix many effects:
GraphicEffects
  • drop shadow
  • inner shadow
  • outer glow
  • inner glow
  • color overlay

If you activate the drop shadow, you can manipulate all aspects of it (color, opacity, position, etc.) with the submenu.

BlendingEdit

The blending effect is a way to make the object transparent, you can choose between many way to render the resulting object (arithmetic, subpin, etc.). You can choose the percentage of blending your object with the background.

Property profilesEdit

All the property of an object are inherited from a master profile, however you can add and change profile. This way all objects will have the same properties, will look the same or act the same.

Size & PositionEdit

Here you can

  • specify the size of the object
  • fit it to text content
  • set location using the center of the object or its borders
  • lock size and position
  • choosing which element is above the others, specifying object layer

Text formattingEdit

Here you can change:

  • font type
  • font size (you can enter size directly, you are not restricted to the few showed)
  • font style:
    • plain
    • bold
    • italic
    • underlined
    • boxed
    • boxed 3D
    • link
    • stroked
  • alignment
  • margins

You can also change all letter to uppercase, lowercase or else using tha last button.

All propertiesEdit

Here is a list of all scrollbar properties (help us to complete this list):

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.