Valhalla Legends Forums Archive | Battle.net Bot Development | Freeze a richtextbox so the text doesnt appear, then unfreeze

AuthorMessageTime
BorT
Hey, what im basically trying to do is make it so that a certain interval it locks the richtextbox and doesnt display the text that has come through when it was locked and then unlock it, kinda like stealths Chat filters..When there enabled it doesnt display anything in the chat screen until you disable the chat filters..
June 15, 2004, 5:34 PM
hismajesty
[code]RichText1.Enabled = False[/code]
June 15, 2004, 5:42 PM
CrAz3D
Don't add anything to the RTB if a public boolean = true?...
IE:

[code]'This should be in a module
Public LockChat as boolean
[/code]

[code]'This should in you "AddChat" type function
If LockChat = True then Exit Sub
[/code]
June 15, 2004, 6:40 PM
BorT
Thanks CrAz3D, thats what I was looking for.
June 15, 2004, 7:34 PM
CrAz3D
Straight up dawg
June 15, 2004, 8:05 PM
Networks
Shouldn't this be in the visual basic forum?
June 15, 2004, 11:18 PM
hismajesty
[quote author=BorT link=board=17;threadid=7266;start=0#msg65371 date=1087328067]
Thanks CrAz3D, thats what I was looking for.
[/quote]

That's not what you asked for, well you did but not clearly. :-\
June 16, 2004, 1:45 AM
Eli_1
This whole time I thought he was asking for:

[code]
Private Declare Function LockWindowUpdate Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long

' Lock
LockWindowUpdate RichTextBox1.hWnd

' Unlock
LockWindowUpdate ByVal 0&
[/code]
June 16, 2004, 2:01 AM
FrOzeN
[code][/code]in your AddChat function in the module just stick it in a If Then

eg..

[code]Public Function AddChat(some stuff here etc..)
If mnuLock.Checked = False Then

*add chat code*

End If
End Function[/code]

that will make when the menu section "mnuLock" if its checked it will AddChat if its not it won't that enough help?
June 16, 2004, 5:34 AM
Dyndrilliac
That's exactly what Cr4z3d posted except he used a variable instead of a menu control...
June 17, 2004, 6:40 PM

Search