Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    7

    Refreshing the body text of a dialog at runtime

    Hello!!

    I have the following problem:
    I have a dialog with a body text. In this body text is a session variable. While the dialog is displayed, the session variable changes. When the user clicks on a button, on that dialog, I would like to refresh the body text so that the new value of the session variable is displayed.
    I tried to reopen the dialog with Screen.Jump("..."), but this didn't worked. The value of the session variable displayed in the body text is always as it was when the dialog opened the first time.

    I hope you understand my question...

    Jens Drescher

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    [By dialog you mean one of the wizard screens (Project > Screens) and not a pop-up dialog, right?]

    You can set the body text directly on a screen using something like this:

    Code:
    DlgStaticText.SetProperties(CTRL_STATICTEXT_BODY, {Text="new text"});
    If you want to include a session variable in the text, you can expand it from script like this:

    Code:
    strNewText = SessionVar.Expand("Text containing a session variable like %ProductName%");
    DlgStaticText.SetProperties(CTRL_STATICTEXT_BODY, {Text=strNewText});
    --[[ Indigo Rose Software Developer ]]

Similar Threads

  1. Status Dialog text disappears
    By Lizard in forum Setup Factory 7.0
    Replies: 4
    Last Post: 09-20-2006, 11:15 AM
  2. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  3. INFO: Microsoft Data Access Components 2.8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:20 AM
  4. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  5. Tip: Variable number of text items determined at runtime
    By csd214 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-10-2001, 12:09 PM

Posting Permissions

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