Private messages

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
ravanelli
Posts: 31
Joined: 2003-03-17 06:43

Private messages

Post by ravanelli » 2003-10-16 14:01

When you do not pop up private message you can read them in the main chat
I wonder if it is possible to write them in red for example to find them easely later
Thanks
Have a good day

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-10-17 11:35

Not without changing DC++ in a couple ways. The chat box does not support color without being changed to a control that allows rich text.

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2003-10-17 20:15

actually

Code: Select all

		CHARFORMAT cf;
		cf.dwMask = CFM_BOLD;
		cf.dwEffects = CFE_BOLD;
		cf.crTextColor = RGB(255,0,0);
		ctrlClient.SetSelectionCharFormat(cf);
would change the formatting for the textbox to bold red, and I'm pretty sure it would work with dc++ (works with bcdc anyway), you could also use getSelectionCharFormat() to get the old style and reapply it after you insert the new line (ie so only the one line is in the new formatting everything else is normal)

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-10-17 20:28

wouldnt that change the whole window text color ?
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2003-10-17 22:00

no it only changes the selection colour (if nothing is selected it changes what is inserted from now on)

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2003-10-17 22:01

by selection color I meant the selected text (which is always set to nothing before an insert anyway)

I'm pretty sure this is the way some of the dc++ mods do colouring, but I can't remember which ones

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-10-18 07:38

BCDC already uses a CRichEditCtrl instead of a CEditCtrl, so it will support various text styles.

Code: Select all

	CRichEditCtrl ctrlClient;
It was converted as part of the fix/attempted fix for those people who had the bug where chat wouldn't scroll down (when they weren't browsing their history).

Locked