'Found in the Toolbar, with messagelogtxt being the Sent Messages
'cdFont = CommonDialogBox
'messagetxt = Messages entered here.
Case "Font"
On Error Resume Next
cdFont.Flags = cdlCFBoth
cdFont.FontName = messageLogTXT.Font.Name
cdFont.FontSize = messageLogTXT.Font.Size
cdFont.FontBold = messageLogTXT.Font.Bold
cdFont.FontItalic = messageLogTXT.Font.Italic
cdFont.ShowFont
With cdFont
If .FontSize < 8 Then
messageTXT.Font.Name = .FontName
messageTXT.Font.Size = .FontSize
messageTXT.Font.Bold = .FontBold
messageTXT.Font.Italic = .FontItalic
Else
Exit Sub
End If
End With
Private Sub sendBTN_Click()
On Error Resume Next
Dim tempCommand As command
If Len(messageTXT.Text) > 300 Then
Exit Sub
End If
If Len(messageTXT.Text) = 0 Then
Exit Sub
End If
tempCommand.type = "MSG"
tempCommand.fromIP = getCurrentIP
messageTXT.SelStart = 0
messageTXT.SelLength = Len(messageTXT.Text)
tempCommand.value = messageTXT.SelRTF
sendMessageToSelectedUsers tempCommand
' For x = 0 To contactList.Count - 1
'
' If contactList(x).sendTo Then
'
' sendCommand_MessageSocket tempCommand, contactList(x).IP
'
' End If
'
' Next x
messageTXT.Text = ""
End Sub