REMOVER MENU DE TEXTBOX

AUGUSTTO 22/07/2005 22:08:08
#95682
o text box tem algum evento que chama o menu?se tiver tira o evento

sei la tenta isso!
MARCOSAV 22/07/2005 23:45:36
#95699
MORLOCK, "gà¼enta aí", que logo, logo te mando uma resposta definitiva, ok ??
E [txt-color=#0000ff]sim[/txt-color] existe um evento que chama o menu, AUGUSTTO, o clique do botão direito (não dá prá tirar o botão hehehe)...

Tà' cuidando desse assunto vlw, MORLOCK ???

Abraço, e T+

GUGSDAJUBS 23/07/2005 00:21:47
#95700
Cara, até surgir uma alternativa precisa, encontrei um método pra vc...

Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Text1.Enabled = False
End If
End Sub

o único problema é que desabilita o campo... aí vc se vira com um timer pra tentar resolver o problema... até aparecer algo realmente bom, usa isso.
MARCOSAV 23/07/2005 02:40:55
#95703
MORLOCK, tenta fazer isto aqui ó...

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 93 Then PopupMenu mnu
' mnu é um menu qualquer sem Caption e com a propriedade Visible = False
End Sub
_________________________________________________________________________________
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then PopupMenu mnu
End Sub
__________________________________________________________________________________

Vc cria um outro menu e manda mostrar, tomando o lugar do original, ok ??? Só que esse que vc está mandando mostrar está Invisível, portanto, não é para aparecer nada !!!

Vai fundo, tenta aí, vlw ???
Abraço...

MARCOSAV 25/07/2005 12:50:09
#95902
MORLOCK, TEM MAIS ESTA AKI, Ó“...

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 93 Then Text1.Enabled = False
End Sub
____________________________________________________________________
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Text1.Enabled = False
End If
End Sub
______________________________________________________________________
Private Sub Timer1_Timer()
Timer1.Interval = 1000 ' configure de acordo com seu processador
Text1.Enabled = True
End Sub
__________________________________________________________________________

Tenta aí...
Abraço.

PS: Se resolveu, encerre o tópico
USUARIO.EXCLUIDOS 25/07/2005 14:12:25
#95923
Vlw MARCOSAV pela ajuda ae

essa ultima solucao funciona, mas eh uma "gambiarra" neh... vou usando essa ateh conseguir alguma coisa como uma API q desativa akele menu... e por enquanto eu vou agradecendo pela ajuda ae galera, vlw mesmo...

t+
Página 2 de 2 [16 registro(s)]
Tópico encerrado , respostas não são mais permitidas