PRB: _ED Functions in Toolbar Causes Fatal ErrorLast reviewed: February 28, 1996Article ID: Q145693 |
The information in this article applies to:
SYMPTOMSWhen you use the _ED* editor functions to achieve cut, copy, and paste functionality in an application and the editor functions are part of a toolbar, use of the commands will cause Visual FoxPro to quit abnormally.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Sample Code**---------------------------------------------------------------** ** Begin code sample ****---------------------------------------------------------------** PUBLIC oEditBar
oEditBar=CreateObject('editbar')
oEditBar.Visible=.t.
DEFINE CLASS editbar AS toolbar
Caption = "Edit Controls"
Height = 30
Left = 0
Top = 0
Width = 132
Name = "editbar"
ADD OBJECT cmdcut AS commandbutton WITH ;
Top = 4, ;
Left = 6, ;
Height = 23, ;
Width = 24, ;
Picture = "cut.bmp", ;
Caption = "", ;
Default = .F., ;
ToolTipText = "Cut", ;
Name = "cmdCut"
ADD OBJECT cmdcopy AS commandbutton WITH ;
Top = 4, ;
Left = 29, ;
Height = 23, ;
Width = 24, ;
Picture = "copy.bmp", ;
Caption = "", ;
Default = .F., ;
ToolTipText = "Copy", ;
Name = "cmdCopy"
ADD OBJECT cmdpaste AS commandbutton WITH ;
Top = 4, ;
Left = 52, ;
Height = 23, ;
Width = 24, ;
Picture = "paste.bmp", ;
Caption = "", ;
Default = .F., ;
ToolTipText = "Paste", ;
Name = "cmdPaste"
ADD OBJECT separator1 AS separator WITH ;
Top = 4, ;
Left = 81, ;
Height = 0, ;
Width = 0, ;
Name = "Separator1"
ADD OBJECT cmdundo AS commandbutton WITH ;
Top = 4, ;
Left = 81, ;
Height = 23, ;
Width = 24, ;
Picture = "undo.bmp", ;
Caption = "", ;
Default = .F., ;
ToolTipText = "Undo", ;
Name = "cmdUndo"
ADD OBJECT cmdredo AS commandbutton WITH ;
Top = 4, ;
Left = 104, ;
Height = 23, ;
Width = 24, ;
Picture = "redo.bmp", ;
Caption = "", ;
Default = .F., ;
ToolTipText = "Redo", ;
Name = "cmdRedo"
PROCEDURE Init
SET LIBRARY TO SYS(2004)+"FOXTOOLS.FLL"
ENDPROC
PROCEDURE cmdcut.Click
=_EdCut(_WOnTop())
ENDPROC
PROCEDURE cmdcopy.Click
=_EdCopy(_WOnTop())
ENDPROC
PROCEDURE cmdpaste.Click
=_EdPaste(_WOnTop())
ENDPROC
PROCEDURE cmdundo.Click
=_EdUndo(_WOnTop())
ENDPROC
PROCEDURE cmdredo.Click
=_EdRedo(_WOnTop())
ENDPROC
ENDDEFINE
**---------------------------------------------------------------**
** End code sample ****---------------------------------------------------------------**
|
Additional reference words: 3.00 3.00b VFoxWin gpf fatal error
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |