Changing the Skin of a Scroll Bar

Scroll bars are drawn using the scroll bar skins attached to the application skin that was applied. By default, scroll bars are drawn using the JadeSkinHScroll and JadeSkinVScroll skins assigned to the application. You can apply a different skin to a form by calling the Form class setApplicationSkin method, which allows different scroll bars skins to be assigned for the form and its control children.

In addition, you can assign a specific horizontal and vertical scroll bar skin to JADE controls that display scroll bars; that is, to the BaseControl, ComboBox list box, ListBox, Picture, JadeRichText, Table, and TextBox controls on JADE windows and to the Form class.

The Scroll Bar Skins group box on the Jade Skin Maintenance dialog Form and Control sheets contains the Horizontal and Vertical combo boxes, which allow specific horizontal and vertical scroll bar skins to be assigned to the Form skin and to specific Control class skins. The rules for the use of the scroll bar skins are as follows.

  1. For a form, if the form:

    • Has a specific scrollbar skin assigned of the required type, the form scroll bar is drawn with that skin.

    • Does not have a specific scroll bar skin assigned, the application scroll bar skin of the required type is used.

      If the application does not have a scroll bar skin assigned of the required type, the scroll bar is not skinned.

    When the form is an MDI frame, the MDI client window that hosts the child forms uses the form's scroll bar skin using the same rules.

  2. For a control, if the control:

    • Has a specific scrollbar skin assigned of the required type, the control scroll bar is drawn with that skin.

    • Does not have a specific scroll bar skin assigned, the form scroll bar skin rules in step 1 of this list apply.

  3. For a ComboBox, if the combo box:

    • Has a list box skin assigned, the above scroll bar rules for a control in step 2 of this list are applied to the list box part of the combo box display.

    • The list box of a combo box is skinned only if the ComboBox skin has a list box skin assigned to the myListBoxSkin property.

2020.0.01 and higher