Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [^^Up^^] [Menu] [About The Guide]
 WArrowButton           Arrow button control class
 ----------------------------------------------------------------------------
 WArrowButton
 Arrow button control class
 ----------------------------------------------------------------------------
 
 Properties
 Down           A logical indicating/controlling the direction of the arrow
 Left           A logical indicating/controlling the direction of the arrow
 oHelp          Contains a help object
 Right          A logical indicating/controlling the direction of the arrow
 Up             A logical indicating/controlling the direction of the arrow
 WndClass       The name of the control's window class ("button")
 WndStyle       The control's usual style (a combination of WS_* values)
 
 Methods
 WArrowButton:Init()        Construct an arrow button control object
 WArrowButton:Paint()       Draw/re-draw an arrow button
 
 Inherits From
 WControlWindow
 
 Inherited By
 Nothing.
 
 Description
 This is the class for button controls displaying an up, down,
 left, or right arrow.
 
 As this is implemented using an owner-drawn button, to put
 this control in a dialog you should use a button with the
 BS_OWNERDRAW style.
 
 Because Clip-4-Win uses "smart dialogs with dumb controls",
 few properties and few methods are required in this class or
 most sub-classes.  (The WDialog class provides the logic,
 rather than spreading it across the controls.)
 
 Example
 // From SOURCE\OO\CLASSES\SPINBTN.PRG:
 oBtn = WArrowButton{::oParent, , , .f.}
 if  lHoriz
      oBtn:Left = .t.
 else
      oBtn:Up = .t.
 endif
 ::oUp = oBtn:Create( , ::CreateId(), nX, nY, nW, nH)
 ::oParent:Add(oBtn, {| | ::ClickUp()})
 
 See Also  (press Enter)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson