Page 1 of 1 1
Topic Options
#27163 - 2002-08-15 06:43 PM Messagebox function
Umar Offline
Lurker

Registered: 2002-08-15
Posts: 3
Loc: New York
This is a sample of some message box code, I want to put "the time is currently..." on the next line. Does anyone know how to begin a new line in a message box.

MESSAGEBOX("Good Evening @USERID , the time is curently @TIME am","Welcome Message",0,8)

PS if someone could also tell me how display your own custom icon that would be cool too.

Top
#27164 - 2002-08-15 06:46 PM Re: Messagebox function
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
try with:
MESSAGEBOX("Good Evening @USERID ,@crlf the time is curently @TIME am","Welcome Message",0,8)
_________________________
!

download KiXnet

Top
#27165 - 2002-08-15 06:47 PM Re: Messagebox function
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
You could use the @CRLF macro to insert a 'new line' or use the CHR(13)+CHR(10) combination which would create the same effect.
Thus:
code:
$rc=MESSAGEBOX('Good Evening @USERID,'+@CRLF+'the time is curently '+@TIME,'Welcome Message',0,8)

And no, you cannot use custom icons unless you start hacking the appropriate resource files for the message box.
_________________________
There are two types of vessels, submarines and targets.

Top
#27166 - 2002-08-15 06:52 PM Re: Messagebox function
Umar Offline
Lurker

Registered: 2002-08-15
Posts: 3
Loc: New York
Thanx a bunch you all were a great help.

PS how would I hack an icon file where are they kept.

Top
#27167 - 2002-08-15 06:54 PM Re: Messagebox function
Umar Offline
Lurker

Registered: 2002-08-15
Posts: 3
Loc: New York
What about a center justification in the message box any macro's or do I just have to press the space bar a bunch of times
Top
#27168 - 2002-08-15 06:58 PM Re: Messagebox function
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
That's also something you'll ahve to do manually. Though, you could write a custom UDF for this that centers a string.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.057 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org