mIRC Home    About    Download    Register    News    Help

Print Thread
edit control #182457 09/08/07 09:28 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
is there any way to force mirc, that when user presses ENTER
that it actualy goes in new line ? -_-


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: edit control [Re: WideOpenSpace] #182458 09/08/07 09:46 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
If you have the multi editbox style, you can use $crlf.

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

edit "", 1, x y w h, multi

Re: edit control [Re: SladeKraven] #182459 09/08/07 09:50 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
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 ?



The harder I chase my dreams the more I experience the time for smiles and tears...
Re: edit control [Re: WideOpenSpace] #182460 09/08/07 09:55 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You must use both the "return" and "multi" styles.

Re: edit control [Re: WideOpenSpace] #182462 09/08/07 09:57 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: edit control [Re: Collective] #182468 10/08/07 12:04 AM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
thank you both
too bad help file doesnt describe this additional options


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: edit control [Re: WideOpenSpace] #182471 10/08/07 12:19 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: edit control [Re: WideOpenSpace] #182472 10/08/07 12:20 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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


Re: edit control [Re: RusselB] #182474 10/08/07 12:52 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.