Re: XForms: CHANGING browser's SCROLLBAR color and shape

Steve Lamont (spl@szechuan.ucsd.edu)
Sun, 26 Apr 98 08:22:17 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I would like to change the color and the shape/type
> of the horizontal and vertical scrollbar within
> the browser. I can change the size by using
> "fl_set_browser_scrollbarsize" but I do not know
> how to change color and style(shape).

Since the Browser is a composite object (composed of several
objects), you should be able to extract the components with
fl_get_object_component(). For instance, as shown in the manual,

hscrollbar = fl_get_object_component( your_browser,
FL_SCROLLBAR,
FL_HOR_THIN_SCROLLBAR,
0 );

You can then modify the attributes of the scrollbar as you wish.

I don't think there is any provision for changing the type of the
scrollbar, say from FL_HOR_THIN_SCROLLBAR to FL_HOR_NICE_SCROLLBAR,
since this would mean actually creating a new object. As a quick
experiment, I tried to alter the `type' field and it didn't produce a
desirable result.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/