Results 1 to 4 of 4

Thread: Disabling A Menu

  1. #1

    Thread Starter
    Junior Member Armor-Of-God's Avatar
    Join Date
    Apr 2003
    Location
    Panic In Detroit
    Posts
    30

    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.
    Last edited by Armor-Of-God; Jun 3rd, 2003 at 10:21 AM.
    Our Way To Fall

  2. #2

    Thread Starter
    Junior Member Armor-Of-God's Avatar
    Join Date
    Apr 2003
    Location
    Panic In Detroit
    Posts
    30
    I think I'll bump this, because I'm not patient
    Our Way To Fall

  3. #3

  4. #4
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195
    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
    Using Visual Studio .NET 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width