Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileGRAF_SLIDEBOX(tree,parent_obj,slider_obj,flag) tree, parent_obj, slider_obj, flag: iexp This function also really should be in the Object Library. It moves one rectangle object within another in a similar way to GFAF_DRAGBOX(). However, the object can only be moved horizontally or vertically and, in addition, it must be a 'child' of the limiting rectangle (object). The function call should only take place when a mouse button is pressed, since the function terminates when the button is released. The most common application is the movement of slider bars in windows. Returns the position of the sliding rectangle relative to the limiting rectangle: Horizontally: 0=far left 1000=far right Vertically : 0=top 1000=bottom tree - Address of the object tree. parent_obj - Object number of the limiting rectangle. slider_obj - Object number of the sliding rectangle. flag - Direction: 0: Horizontal 1: Vertical graf_slidebox()+