Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Visual Patch 2.0

 
 
Thread Tools Display Modes
  #1  
Old 04-04-2007
jdrescher jdrescher is offline
Forum Member
 
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  
Old 04-10-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
[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 ]]
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -6. The time now is 12:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software