mIRC Homepage
Posted By: WideOpenSpace edit control - 09/08/07 09:28 PM
is there any way to force mirc, that when user presses ENTER
that it actualy goes in new line ? -_-
Posted By: SladeKraven Re: edit control - 09/08/07 09:46 PM
If you have the multi editbox style, you can use $crlf.

/did -a <dname> <id> $crlf

edit "", 1, x y w h, multi
Posted By: WideOpenSpace Re: edit control - 09/08/07 09:50 PM
yes i know that, but i am makeing sort of text editor (for now)
inside mirc dialog and i ment when user presses enter key
if it can be forced mirc to automaticaly makes goes to new line ?

Posted By: Collective Re: edit control - 09/08/07 09:55 PM
You must use both the "return" and "multi" styles.
Posted By: SladeKraven Re: edit control - 09/08/07 09:57 PM
Ah my apologies, I miss read I thought you wrote how to add a new line.

Try using the styles multi and return together.

edit "", 1, x y w h, multi return
Posted By: WideOpenSpace Re: edit control - 10/08/07 12:04 AM
thank you both
too bad help file doesnt describe this additional options
Posted By: SladeKraven Re: edit control - 10/08/07 12:19 AM
Well, it does show the options but it doesn't go into too much detail on it.

edit "text", id, x y w h, style (right, center, multi, pass, read, return, hsbar, vsbar, autohs, autovs, limit N)

Also, I didn't realise Collective posted above me, so I should really say he beat me to it. smile
Posted By: RusselB Re: edit control - 10/08/07 12:20 AM
From the help file with mIRC 6.21
Quote:
edit "text", id, x y w h, style (right, center, multi, pass, read, return, hsbar, vsbar, autohs, autovs, limit N)

Where "text" is the default text for a control, id is a number that uniquely identifies a control, x y w h are the position and size of the control, and style consists of a combination of the words in brackets.



Other Styles

In addition to the styles shown in brackets for each type of control, you can also specify these styles:



disable disables the control

hide hides the control

group start of a group

result identifies the control whose value will be used as the return value to the calling script when the user presses the ok button

Posted By: Collective Re: edit control - 10/08/07 12:52 AM
That doesn't actually explain what any of those control-specific options do, though, which is clearly what he meant.

It would make a nice addition to the help file.
© mIRC Discussion Forums