Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File8.12.10 graf_slidebox TOS Name: »Graphics slide box« - Obtain slider position etc. Opcode: 76 Syntax: int16_t graf_slidebox ( OBJECT *gr_slptree, int16_t gr_slparent, int16_t gr_slobject, int16_t gr_slvh ); Description: The call graf_slidebox serves to inquire the position of sliders within the bounds of its parent object. The following apply: Parameter Meaning gr_slptree Address of object tree holding parent and child objects gr_slparent Index of the parent rectangle gr_slobject Index of the child rectangle to be moved (slider) gr_slvh Direction of movement: 0 = Move horizontally 1 = Move vertically Note: The function may only be called with an already pressed mouse button, since it returns immediately when the button is released. It can be used also with sliders built into dialogs: Make the slider a TOUCHEXIT object and call this func tion when it is clicked on. In Geneva the parameter gr_slvh has changed slightly. Return value: The function returns the relative position of the slider, between 0 (far left or very top) and 1000 (far right or very bottom). Availability: All AES versions. Group: Graphics library See Also: Binding OBJECT