About Dialog

By Protheus on Nov 21, 2011

My About dialog. Needs DCX.dll to run. Once again, posting from my cellphone so go easy on me. Enjoy.

alias about {
if ($dialog(about)) { dialog -x about }
dialog -m about about
}

alias DCX_about {
}

dialog about {
title "About"
size -1 -1 200 200
option dbu
}
on *:dialog:about:init:*: {
dcx Mark $dname about_cb
xdialog -g about +b $rgb(0,0,0)
xdialog -c $dname 1 image 5 6 338 150
xdid -i $dname 1 + $mircdir/YOURIMAGEFOLDER/YOUIMAGE.FILEEXTENTION
xdialog -c $dname 2 text 5 160 338 15 transparent
xdid -t $dname 2 TEXTHERE
xdialog -c $dname 3 text 5 174 338 15 transparent
xdid -t $dname 3 TEXTHERE
xdialog -c $dname 5 text 5 202 338 15 transparent
xdid -t $dname 5 TEXTHERE
xdialog -c $dname 6 text 5 218 338 15 transparent
xdid -t $dname 6 TEXTHERE
xdialog -c $dname 7 text 5 232 338 15 transparent
xdid -t $dname 7 TEXTHERE
xdialog -c $dname 8 text 5 245 338 15 transparent
xdid -t $dname 8 TEXTHERE
xdialog -c $dname 9 text 5 258 338 15 transparent
xdid -t $dname 9 TEXTHERE
xdialog -c $dname 10 text 5 272 338 15 transparent
xdid -t $dname 10 TEXTHERE
xdialog -c $dname 11 text 5 288 338 15 transparent
xdid -t $dname 11 TEXTHERE
xdialog -c $dname 12 button 5 370 82 26
xdid -t $dname 12 BUTTONNAME
xdialog -c $dname 13 button 158 370 82 26
xdid -t $dname 13 BUTTONNAME
xdialog -c $dname 14 button 312 370 82 26
xdid -t $dname 14 Close
}

alias about_cb {
if ($2 == sclick) && ($3 == 12) {
echo -a COMMAND FOR BUTTON 12 HERE
}
else if ($2 == sclick) && ($3 == 13) { 
echo -a COMMAND FOR BUTTON 13 HERE
}
else if ($2 == sclick) && ($3 == 14) {
dialog -x about
}
}

Comments

Sign in to comment.
Protheus   -  Nov 23, 2011

If i can get to internet today i will.

 Respond  
xdesoto   -  Nov 23, 2011

Should add a pic man. And I understand you're on your phone. But in my status bar DCX snippet I have a link to download the DCX.dll. You can put on here for those who want to try it

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.