GUI Help > Create > createScrollbar
createScrollbar
int handle=createScrollbar(int x, int y, int width, int height, int orientation, handle parent)
Description: Creates a scrollbar. Scrollbars are bars with a thumb in the middle which the user moves to scroll something such as a document in the application.
Return Value: Handle to the new gadget.
Parameters:
x | X position of new gadget
y | Y position of new gadget
width | Width of new gadget in pixels
height | Height of new gadget in pixels
orientation | If 0, the scrollbar is horizontal. If 1, the scrollbar is vertical.
parent | Handle to the parent of the new gadget, or 0 for the main window
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)