• Welcome to Valhalla Legends Archive.
 

Freeze a richtextbox so the text doesnt appear, then unfreeze

Started by BorT, June 15, 2004, 12:34 PM

Previous topic - Next topic

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..


CrAz3D

Don't add anything to the RTB if a public boolean = true?...
IE:

'This should be in a module
Public LockChat as boolean


'This should in you "AddChat" type function
If LockChat = True then Exit Sub
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

BorT


CrAz3D

rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Networks


hismajesty

Quote from: BorT on June 15, 2004, 02:34 PM
Thanks CrAz3D, thats what I was looking for.

That's not what you asked for, well you did but not clearly.  :-\

Eli_1

This whole time I thought he was asking for:


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

' Lock
LockWindowUpdate RichTextBox1.hWnd

' Unlock
LockWindowUpdate ByVal 0&

FrOzeN

in your AddChat function in the module just stick it in a If Then

eg..

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

*add chat code*

  End If
End Function


that will make when the menu section "mnuLock" if its checked it will AddChat if its not it won't that enough help?
~ FrOzeN

Dyndrilliac

That's exactly what Cr4z3d posted except he used a variable instead of a menu control...
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.