mIRC Home    About    Download    Register    News    Help

Print Thread
#76856 27/03/04 01:46 PM
Joined: Mar 2004
Posts: 26
U
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Mar 2004
Posts: 26
I have searched, but am not able to find any info.

Is there a way to color output text in a dialog window?
(have tried the standard CTRL - K, no luck)

Trying to do the following:

I have a dialog that displays the current song name. Upon pause, I want to append - PAUSED to the end of the name.

I have no problem appending the extra text, just wish to make it colored.

Any help/suggestions/input is greatly appreciated.

Also thanks to everyone who has helped me the past few days, its refreshing to find a place where one can actually get an answer that helps!

Last edited by uicn_renegade; 27/03/04 01:47 PM.
#76857 27/03/04 03:14 PM
Joined: Oct 2003
Posts: 306
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
you can download info from the page www.sarrio.org


mess with the best
#76858 27/03/04 04:35 PM
Joined: Mar 2004
Posts: 26
U
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Mar 2004
Posts: 26
Thank you for the link. Unfortunately, I dont speak/read Spanish.

Even using a translator, was still not able to find any information about my question.

#76859 27/03/04 06:01 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Get MDX and see the SetColor section in mdx.hlp.

An example:
  • dialog mdx {
    size -1 -1 60 25
    text "PAUSED" 1, 8 5 50 15
    }

    alias -l mdx return dll\mdx\mdx.dll

    On *:dialog:mdx:init:0:{
    dll $mdx SetMircVersion $version
    dll $mdx MarkDialog $dname
    dll $mdx SetColor 1 text $rgb(255,0,0)
    }
Tip: To bring Windows' color selection dialog where you can find RGB values, press Alt+K in mIRC and right-click anywhere in the colors palette.

#76860 27/03/04 06:14 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i think he means he wants to be able to colour only a certain (like this) part of the text.
you can use the undocumented mdx richedit feature:
Code:
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog dname
dll mdx.dll SetControlMDX dname id richedit [autohs, password, etc] > ctl_gen.mdx

make sure you change the paths above.
and to add text:
Code:
did -a dname id text +r <text>

this will allow all control codes to work as usual.
did -r, -o, -i, and -d don't work though, so it's not too good wink

edit: it only works for edit boxes, and you have to add a $crlf to the end of the line to go to the next line.

Last edited by tidy_trax; 27/03/04 06:17 PM.

New username: hixxy
#76861 27/03/04 06:56 PM
Joined: Mar 2004
Posts: 26
U
Ameglian cow
OP Offline
Ameglian cow
U
Joined: Mar 2004
Posts: 26
I will check out MDX.

In the meantime, here is exactly what I am looking to do, in case someone may have some other input.



You will notice in the "now playing" box, the song title, followed by " - PAUSED".

You will also notice that the " - PAUSED" text is black.

It is my desire to make the " - PAUSED" text be red(or any color for that matter) IE: " - PAUSED "

#76862 27/03/04 08:25 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
in that case, i have no idea how to it, unless you change the text box to an edit box sorry crazy


New username: hixxy

Link Copied to Clipboard