dcxdll
dcxdll copied to clipboard
Link - new proposals to fix and improve for updating
I am using "mIRC v7.66" + "DCX dll v3.1-git428" in system "Windows 8.1 x64".
My proposals for what needs to be corrected and added in "Link", to make it maximally functional and beautiful:
- It is necessary to fix the arising delay in the color change when you hover the mouse cursor over the link.
- Add a new 5th parameter to the "/xdid -q" command to set the color that will appear when the link is clicked.
- Add a new style
openlinkso that when double click on the link, the page will open in the browser. - Add a new style
nounderlineto disable the underline of the link. (Or any other shorter style name). - Add a note to the help document that if in the command "/xdid -w" no flags specified
+, then the icon will be displayed at in the smallest size of 16 pixels.

Here is a test piece of script to reproduce this the problem. To run the script click on "F5" or enter the command "/link_test":
alias F5 { link_test }
alias link_test {
if ($dialog(link_test)) .dialog -x link_test
else { .dialog -m link_test link_test }
}
dialog link_test {
title "Link test"
icon $mircexe,0
option pixels
size -1 -1 280 130
}
on *:DIALOG:link_test:init:*:{
.dcx Mark $dname link_test_work
.xdialog -b $dname +ty
.xdialog -g $dname +b $rgb(20,20,27)
.xdialog -c $dname 1 link 70 35 200 20 notheme | link_decor $dname 1 12 https://google.com
.xdialog -c $dname 2 link 70 55 200 20 notheme | link_decor $dname 2 0 https://mirc.com
.xdialog -c $dname 3 link 70 75 200 20 notheme | link_decor $dname 3 18 http://epicnet.ru
}
alias -l link_decor {
.xdid -x $1 $2 +
.xdid -C $1 $2 +b $rgb(20,20,27)
.xdid -q $1 $2 $rgb(45,123,253) $rgb(5,203,245) $rgb(45,123,253) $rgb(150,150,150)
.xdid -f $1 $2 + ansi 10 Comic Sans MS
.xdid -w $1 $2 + $3 $mircexe
.xdid -t $1 $2 $4
}
alias link_test_work {}
#3 isn't going to happen, open a browser from the callback if you want to.
added nounderline style.