|
VLButtonBar Reference
|
|||||||||||||||||||||||
|
|
|||||||||||||||||||||||
|
Occurs after every OLEDragOver event. OLEGiveFeedback allows the source
component to provide visual feedback to the user, such as changing the mouse
cursor to indicate what will happen if the user drops the object, or provide
visual feedback on the selection (in the source component) to indicate what
will happen.
Syntax Private Sub object_OLEGiveFeedback(effect As Long, defaultcursors As Boolean) The OLEGiveFeedback event syntax has these parts:
Settings The settings for effect are:
Remarks If there is no code in the OLEGiveFeedback event, or if the defaultcursors parameter is set to True, then Visual Basic automatically sets the mouse cursor to the default cursor provided by the component. The source component should always mask values from the effect parameter to ensure compatibility with future implementations of components. Presently, only three of the 32 bits in the effect parameter are used. In future versions of Visual Basic, however, these other bits may be used. Therefore, as a precaution against future problems, drag sources and drop targets should mask these values appropriately before performing any comparisons. For example, a source component should not compare an effect against, say, vbDropEffectCopy, such as in this manner:
Instead, the source component should mask for the value or values being sought, such as this:
-or-
This allows for the definition of new drop effects in future versions of Visual Basic while preserving backwards compatibility with your existing code. Most components support manual OLE drag and drop events, and some support automatic OLE drag and drop events.
|
|||||||||||||||||||||||
|
©2001-2004 Viklele Associates. All rights reserved. For new products and software updates check Viklele Associates. |