Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Textbox right click (Solved)
  FAQ FAQ  Forum Search Search  Events Events  Register Register  Login Login

Textbox right click (Solved)

 Post Reply Post Reply
Author
Message
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post Topic: Textbox right click (Solved)
    Posted: 25 January 2009 at 2:10pm
I would like to be able to disable the right click menu popup on the flat edit control.   I need to use my own pop up menu on right click but Code Jocks menu pops up.   How can I stop/disable Code Jocks right click menu on a text box?
Product: Xtreme SuitePro (ActiveX) version 12.0.0
Platform: Vista (64bit) - SP 2
Language: Visual Basic 6.0
Back to Top
rplp4 View Drop Down
Groupie
Groupie


Joined: 18 May 2008
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote rplp4 Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2009 at 10:07am
I have the issue solved.   Setting the FlatEdit.Enabled to False the standard menu will not be displayed
Example:
         If Button = vbRightButton Then
         ' Avoid the 'disabled' gray text by locking updates
            LockWindowUpdate FlatEdit1.hWnd
            ' A disabled TextBox will not display a context menu
            FlatEdit1.Enabled = False
            ' Give the previous line time to complete
            DoEvents
            ' Display our own context menu
            PopupMenu mnuPopup
            ' Enable the control again
            FlatEdit1.Enabled = True
            ' Unlock updates
            LockWindowUpdate 0&
         End If
Product: Xtreme SuitePro (ActiveX) version 12.0.0
Platform: Vista (64bit) - SP 2
Language: Visual Basic 6.0
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.