\ File: Trackbar.f \ Author: Jeff Kelm \ Created: 26-Oct-1998 \ Updated: 21-May-1999 \ Trackbar class Comment: Revision History (most recent first) 19990521 - Cosmetic cleanup 19981231 - Incorporated the new ChildWindow class. 19981204 - Rename SetPosition:/GetPosition: to SetValue:/GetValue: 19981117 - General cosmetic updates - redefined to use BaseWindow superclass and call BasicWin.f Comment; NEEDS BasicWin.f CR .( Loading Trackbar class...) \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ \\\ A generic trackbar class \ :Class Trackbar R word-join R> TBM_SETRANGE SendMessage: self DROP ;M :M SetSel: ( min max f) \ tf= redraw >R word-join R> TBM_SETSEL SendMessage: self DROP ;M \ clears the current selection in a trackbar, tf=redraw :M ClearSel: ( f -- ) 0 SWAP TBM_CLEARSEL SendMessage: self DROP ;M ;Class