Defines a custom mouse icon.
Syntax
|
Get
|
|
|
VB.NET
|
refPictureObj = object.MouseIcon As System.Drawing.Image
|
|
|
VB
|
Set refPictureObj = object.MouseIcon As IPictureDisp
|
|
|
C#.NET
|
System.Drawing.Image refPictureObj = object.MouseIcon;
|
|
|
VC++
|
IPictureDisp* refPictureObj = object->GetMouseIcon();
|
|
|
C
|
HRESULT object->get_MouseIcon(IPictureDisp** refPictureObj);
|
|
|
Delphi
|
refPictureObj := object.MouseIcon : TPicture;
|
|
Put
|
|
|
VB.NET
|
object.let_MouseIcon(ByVal refPictureObj As System.Drawing.Image)
|
|
|
VB
|
object.MouseIcon = refPictureObj As IPictureDisp
|
|
|
C#.NET
|
void object.let_MouseIcon(System.Drawing.Image refPictureObj);
|
|
|
VC++
|
void object->PutMouseIcon(IPictureDisp* refPictureObj);
|
|
|
C
|
HRESULT object->put_MouseIcon(IPictureDisp* refPictureObj);
|
|
|
Delphi
|
procedure object._Set_MouseIcon(refPictureObj : TPicture);
|
|
PutRef
|
|
|
VB.NET
|
object.MouseIcon = refPictureObj As System.Drawing.Image
|
|
|
VB
|
Set object.MouseIcon = refPictureObj As IPictureDisp
|
|
|
C#.NET
|
System.Drawing.Image object.MouseIcon = refPictureObj;
|
|
|
VC++
|
void object->PutRefMouseIcon(IPictureDisp* refPictureObj);
|
|
|
C
|
HRESULT object->putref_MouseIcon(IPictureDisp* refPictureObj);
|
|
|
Delphi
|
object.MouseIcon := refPictureObj : TPicture;
|
object
A SftButton object.
refPictureObj
Defines a custom mouse icon. This icon contains the graphic used as the
custom mouse icon. This icon handle has to remain valid until the
control no longer uses it. For information about picture properties,
please visit the applicable section "Using SftButton/OCX with ...".
Comments
The MouseIcon property defines a custom mouse icon.
The MouseIcon property provides a custom icon that is used
when the MousePointer property is set to sftCustom (99). This mouse pointer
is displayed when the cursor is located anywhere on the control.
Using PutRef (see
Syntax above) the control will use the reference to the Picture object. If
the Picture object is later changed, this will also affect the image used by
the control. Using Put instead
causes the control to create a copy of the Picture object. If the Picture object is later changed, this will not affect the image used by the control
as it uses a copy of the object. Because of the additional overhead and the
increased resource use of Put,
PutRef is the preferred method.
Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com