FIX: Drag Icon Property Ignored on Outline Control OCXLast reviewed: January 15, 1996Article ID: Q142392 |
The information in this article applies to:
SYMPTOMSWhen manual drag is initiated on an Outline control (or any OLE Container Control) the standard box icon is used rather than the icon you set in the DragIcon property.
CAUSEThis is caused by the OLE Container Control ignoring the event.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro version 3.0b for Windows.
MORE INFORMATION
Steps to Reproduce Problem
PUBLIC oForm1 oForm1=CREATEOBJECT("Form1") oForm1.Show() ************************* *-- Form: form1 *DEFINE CLASS Form1 AS Form DoCreate = .T. Caption = "Form1" Name = "Form1" ADD OBJECT OLEControl1 AS OLEControl WITH ; Top = 24, ; Left = 72, ; Height = 100, ; Width = 100, ; DragIcon = "SAMPLES\GRAPHICS\CURSORS\PALETTE.CUR", ; DragMode = 1, ; OLETypeAllowed=-2,; OleClass="MSOutl.Outline",; OleLCID=1033,; Name = "OLEControl1" PROCEDURE DragDrop LPARAMETERS oSource, nXCoord, nYCoord IF oSource.ListIndex>=0 newvar = 'lbl' + ALLTRIM(STR(nXCoord)) + '_' + ; ALLTRIM(STR(nYCoord)) THIS.ADDOBJECT(newvar,'label') WITH THIS.&newvar. .Top=nycoord .Left=nXCoord .Caption=oSource.List(oSource.ListIndex) .Visible=.T. ENDWITH ENDIF ENDPROC PROCEDURE OLEControl1.DblClick THIS.Drag ENDPROC PROCEDURE OLEControl1.PictureDblClick LPARAMETERS ListIndex THIS.Drag ENDPROC PROCEDURE OLEControl1.Init THIS.AddItem('text1') THIS.AddItem('text2') THIS.AddItem('text3') THIS.AddItem('text4') ENDPROCENDDEFINE * *-- EndDefine: form1 *************************
|
Additional reference words: 3.00 VFoxWin buglist3.00 fixlist3.00b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |