-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I am using "mIRC v7.66" + "DCX dll v3.1-git428" in system "Windows 8.1 x64".
Unfortunately, it is currently not possible to remove, change, or adjust the color for the border of this control.
I would like to receive support for solving this problem.
My proposals for what needs to be corrected and added in "RichEdit", to make it maximally functional and beautiful:
- Add customizable enabling and disabling of the border through the command: "/xdid -x".
- Add a new type of border with to customizable the thickness in pixels. For example
+anew flag: "/xdid -x dcx 4 +a 1". - Add to new type of border possibility to color customization. For example
+anew flag: "/xdid -C dcx 4 +a $rgb(255,0,0)". - Add customizable color for selected (highlighted) part of the text (instead of the standard blue).
- Add customizable color of the separator vertical line for the style
showlinenumbersusing the command: "/xdid -g". - Add customizable line position by using indents, separately on each side. Something similar to CSS (margin/padding).
- Add a the ability to align the line numbering position using pixel indents. (If will be different from the font).
- Fix the impossibility of assigning a color to text that was installed from a file using the command: "/xdid -t".
- Add the ability to set focus to the desired existing line number when using the
multistyle. - Expand the ability to customize the internal palette of colors with 16 to 99 shades. In commands: "/xdid -l", "/xdid -q".
- Add a new functionality for the style
transparent, so that only the background can become transparent (without affecting the text and border) and the transparency level was regulation using the command: "/xdid -R dcx 4 +b 2 [0-255]" - through the number+b 2, so as not to break backward compatibility for those who use the effect through the number+b 1. - Add command for opportunity the ability to set (assign) shades of colors in the RGB range on certain words (masks), which will be be present in the text inside the "RichEdit" control. It would be interesting and useful for example when creating your own script editor (code) for highlighting the syntax, events, identifiers, variables, etc. Or to check your spelling when a misspelled word is highlighted in a different color. I think that everyone can think of what this can be used for.
P.S. Perhaps I did not take into account something, forgot to mention or lost sight of what else needs to be done, or on the contrary, made a request about something useless, or maybe after that you have new interesting ideas, therefore, in order to avoid misunderstandings expressed in multiple corrections and rewriting of the code - we can always preliminarily think about this update and discuss in detail the innovations in the chat, so that this control becomes versatile enough, functional, maximally customizable and suitable for any design, in a own peculiar style. Thanks.
Here is a test piece of script to reproduce this the problem. To run the script click on "F5" or enter the command "/richedit_test":
alias F5 { richedit_test }
alias richedit_test {
if ($dialog(richedit_test)) .dialog -x richedit_test | else { .dialog -m richedit_test richedit_test }
}
dialog richedit_test {
title "RichEdit test"
icon $mircexe,0
option pixels
size -1 -1 500 400
}
on *:DIALOG:richedit_test:init:0:{
.dcx Mark $dname richedit_test_work
.xdialog -b $dname +ty
.xdialog -g $dname +b $rgb(40,40,47)
.xdialog -c $dname 1 richedit 50 50 400 300 multi showlinenumbers return showsel autovs
.xdid -x $dname 1 +
.xdid -k $dname 1 $rgb(35,35,35)
.xdid -C $dname 1 +bk $rgb(35,35,35)
.xdid -C $dname 1 +t $rgb(235,227,203)
.xdid -f $dname 1 +a ansi 9 Courier New
.xdid -g $dname 1 $rgb(160,0,0) $rgb(25,25,25) $rgb(250,250,250) $rgb(176,176,200) $rgb(61,61,70)
}
alias richedit_test_work {}
