There must be a problem with the RichEdit.Undo function.
Continuing on After "UNDO"ing, it pops up an "Access violation" error window.
This error also shows up on your new FNXEditor.
RichEdit UNDO "Access violation"
RichEdit UNDO "Access violation"
hi, i`ve tested it on a simple program and found no error, within the fnxeditor the error exists because the program highlights the text between ie a cut and an undo.
I will try to find a workaround to fix it.
best regards
I will try to find a workaround to fix it.
best regards
RichEdit UNDO "Access violation"
First let me "say" that you are doing a fantastic job! I really like FNX Basic. It is easiest windows programming language I have used. (Me, "C" and "Windows" don`t get allong at all!)
I must be missing some setting in the RichEdit settings.
What am I missing to get the UNDO to work propperly?
If you need me to post the entire listing let me know.
Below are exerpts from my program.
CODE
-----------------------------------------------------------
object meUndo as menuitem
Caption = "Undo"
Shortcut = "CTRL+Z"
onclick = undo
end object
object editor as richedit
top=0
left=0
width=f.clientwidth
height=f.clientheight-21
borderstyle=bssingle
onkeyup = formkeyup
scrollbars=ssBoth
end object
sub undo
editor.undo
end sub
-----------------------------------------------------------
I must be missing some setting in the RichEdit settings.
What am I missing to get the UNDO to work propperly?
If you need me to post the entire listing let me know.
Below are exerpts from my program.
CODE
-----------------------------------------------------------
object meUndo as menuitem
Caption = "Undo"
Shortcut = "CTRL+Z"
onclick = undo
end object
object editor as richedit
top=0
left=0
width=f.clientwidth
height=f.clientheight-21
borderstyle=bssingle
onkeyup = formkeyup
scrollbars=ssBoth
end object
sub undo
editor.undo
end sub
-----------------------------------------------------------
RichEdit UNDO "Access violation"
i`ve teststed the program below and it works, the problem could be the onkeydown event. If you somehow change the text of the richedit in this routine undu will fail. Undo has a suspend resume method for it in richedit 3.0 but not in richedit 2.0. So there is a compatebilty problem with it. I`m now busy to write my own routines that work on all richedit versions.
Or write one in fnx basic.
best regards
object f as form
object menu as mainmenu
object meUndo as menuitem
Caption = "Undo"
Shortcut = "CTRL+Z"
onclick = undo
end object
end object
object editor as richedit
top=0
left=0
width=f.clientwidth
height=f.clientheight-21
borderstyle=bssingle
`` onkeyup = formkeyup
scrollbars=ssBoth
end object
showmodal
end object
sub undo
editor.undo
end sub
Or write one in fnx basic.
best regards
object f as form
object menu as mainmenu
object meUndo as menuitem
Caption = "Undo"
Shortcut = "CTRL+Z"
onclick = undo
end object
end object
object editor as richedit
top=0
left=0
width=f.clientwidth
height=f.clientheight-21
borderstyle=bssingle
`` onkeyup = formkeyup
scrollbars=ssBoth
end object
showmodal
end object
sub undo
editor.undo
end sub
RichEdit UNDO "Access violation"
hi, i`ve updatet the update section of the forum, if you use this compiler
the bug of the richedit undo function is gone.
best regards marco
the bug of the richedit undo function is gone.
best regards marco