| View previous topic :: View next topic |
| Author |
Message |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Sep 28, 2002 10:52 am Post subject: EDIT add,<item> ??? |
|
|
Does anyone knows a script which can add a line to an edit box?
I'v tried
| Code: | %%edit = @dlgtext(editbox)
%%edit = %%edit@cr()@dlgtext(text_to_add)
dialog set,editbox,%%edit |
But it don't works...  _________________ phpBB Development Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Sep 28, 2002 11:14 am Post subject: |
|
|
Here ya go:
| Code: |
OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
DIALOG CREATE,Test Program,-1,0,300,200
DIALOG ADD,BUTTON,Add,5,210,85,20,,,DEFAULT
DIALOG ADD,EDIT,E1,5,5,200,20,"A line of text"
DIALOG ADD,EDIT,E2,30,5,290,165,"This is a test",,MULTI
DIALOG SHOW
:EVLOOP
WAIT EVENT
goto @event()
:AddBUTTON
LIST CREATE, 1
LIST ASSIGN, 1, @dlgtext(E2)
LIST ADD, 1, @dlgtext(E1)
DIALOG SET, E2, @text(1)
LIST CLOSE, 1
goto EVLOOP
:CLOSE
EXIT
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Sep 28, 2002 11:17 am Post subject: |
|
|
Tnx for ya help!  _________________ phpBB Development Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Sep 28, 2002 11:47 am Post subject: |
|
|
Why not simply use this???
| Code: |
dialog set,editbox,@dlgtext(editbox)@cr()@chr(10)@dlgtext(text_to_add)
|
|
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Sep 28, 2002 11:49 am Post subject: |
|
|
That works to!
Tnx!  _________________ phpBB Development Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Sep 28, 2002 12:18 pm Post subject: |
|
|
Thanks Skit,
@chr(13)@chr(10) also works. Strangely, I had
just tried @chr(10)@chr(13), but it doesn't work
with @chr(10) first....
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|