Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement