Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    Arrow Dialog.TimedMessage

    a bug I think..

    I tried to use the Dialog.TimedMessage to display a status dialog to the user but when the Dialog.TimedMessage is executed the dialog box is not sized correctly.

    It would be if I didn't use the hard return symbols but the Dialog.TimedMessage didn't autowrap the text of the dialog.

    I wanted a nice standard sized dialog with no buttons.

  2. #2
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    I didn't attach the screen shot

    I didn't attach the screen shot in the last post sorry!
    Attached Images

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    It is working fine on my end with the latest version of the software. What version are you running (help -> about)

    Adam Kapilik

  4. #4
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114
    I'm using SUF 7.0.5.1

  5. #5
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Me too. Can you show me your exact text? I will try to replicate with that.

    Adam Kapilik

  6. #6
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    Exact text

    Exact text of code

    Dialog.TimedMessage("SDCS Approved Security Updates", "Security updates are being installed by\r Senate Democratic Computer Services. Do NOT use your computer\r until it has rebooted. This procedure will take 2 minutes.", 60000, MB_ICONINFORMATION);

  7. #7
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Try using \r\n for newline. With this code I get it to look nice:

    Dialog.TimedMessage("SDCS Approved Security Updates", "Security updates are being installed by\r\n Senate Democratic Computer Services. Do NOT use your computer\r\n until it has rebooted. This procedure will take 2 minutes.", 5000, MB_ICONINFORMATION);

    AJK
    Attached Images

  8. #8
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    Thanks

    Thats exactly what my boss wants. Now I just got to put the \r\ns in the right places to make look pretty.

    Is there a good explanation of the /r /n characters in the help file in case I firget?

    thanks again..

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    Each "\r\n" is actually two escape sequences that are used to start a new line. It's called a "carriage return/linefeed" pair, and is usually abbreviated as CRLF (CarriageReturn/LineFeed).

    This stems back to the old typewriter days where advancing the page by one line and returning to the beginning of the line were two separate actions.

    There are different standards for text on different operating systems; some of them need CRLF to start a new line, others need just the CR, others need only the LF.

    Windows uses CRLF.

    In programming languages like C, and Lua, newlines are often represented by a single escape sequence: \n. That \n will normally be translated into whatever is needed to make a new line, for example CRLF on Windows, or LF on Unix. This behaviour is what happens when the output is done in "text mode."

    If the text is output in "binary mode" instead, then no translation is done, and the \n represents a single character.

    (You might recognize the terms "text mode" and "binary mode" from FTP transfers. There, too, it refers to whether any translation is done for the newline characters.)

    On Windows, sometimes you can use \n, and other times you need to use \r\n. Essentially, some parts of Windows operate in text mode, and others operate in binary mode.

    As for remembering what to use, the best advice I can give you is to just try \n, and if that doesn't work, try \r\n.
    --[[ Indigo Rose Software Developer ]]

  10. #10
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    That's what I appreciate about you I.R. folks... williness to take a minute to long-hand explain something.

    Intrigued

  11. #11
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Lorne knows almost everything about computers.. glad he's on our side

    Adam.

Similar Threads

  1. Custom icon in Dialog.TimedMessage
    By Steve_K in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-23-2006, 10:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts