-
Disabling A Menu
I noticed something about the autoverbmenu. It screws up my paste.
Here's the thing: I'm trying to get my rich text box to seem like a regular text box. So when one pastes through my menu, it comes out in one font, looking like all the rest.
However, with the autoverbmenu, ctrl+v goes there. And it does not call my procedure to simplify all the font.
I *would* disable the autoverbmenu, but I'm using it for the nifty undo option.
So, any suggestions? I don't even know where to start.
-
I think I'll bump this, because I'm not patient
-
I think I'll ask you not to do that (particularly after only 10 minutes) because I'm a Moderator.
-
You can do an undo with the autoverbmenu;
Declare this API Function:
Code:
Private Declare Function SendMessageA Lib "user32.dll" (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
And then, to undo, call this:
Code:
SendMessageA RichTextBox.hWnd, 199, 0, 0