General information
Category:
Forms & Form designer
>DEFINE CLASS MSFORMS2_SCROLLBAR AS OLECONTROL
>
> * use of Microsoft Forms 2.0 Scrollbar, in FM20.dll (RegSrv32 first!)
> OleClass = "Forms.ScrollBar.1"
... * specify, width, height, orientation here
> PROCEDURE Change
> * OLE event
> * ---- do something
> ENDPROC
>
> PROCEDURE Scroll
> * OLE event
> * ---- do something
> ENDPROC
>
> ... etc etc
>
>ENDDEFINE
>You couldn't be more specific, especially with your procedures? I'm not sure what you mean with "Ole event"? or with the 3 procedures.
>
>ray
Change and Scroll are the two events that the control receives when the user moves the scrollbar with the mouse. Insert whatever code you like to respond to these events.
Any other method procedures you include in the class are of your own devising. For example, a 'MoveToHome' method is likely to be needed if you want to programmatically make the form, container, or controls that the scrollbar governs return to the 'home' position.
John Burton
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only