Print Page | Close Window

Textbox right click (Solved)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13253
Printed Date: 16 November 2024 at 6:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Textbox right click (Solved)
Posted By: rplp4
Subject: Textbox right click (Solved)
Date 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



Replies:
Posted By: rplp4
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net