PDA

View Full Version : Refreshing variables in scrolling text when back to the previous screen


SPTR
08-30-2006, 07:32 AM
Hello. First sorry for my bad english.

I have a scrolling text screen that have harcoded plain text with variables.

This is the last screen showed before performing the installation or execution of external app. It show destination paths, names, and other informatión stored in variables in the previous stages of manual information recopilation by the user.

When first execute my compiled install and click next, next, ..., introducing the required information, and then arrive to the scrolling text screen, it's work fine, the text has the variables showing the correct information.

The problem arrive when I click on "BACK" to return screens and change any information. After this, when I click next, next, ..., to arrive to the scrolling text screen, the variables in the text show old information and not the new one.

How can I solve it without complex tables, or external text file loads, etc.?

I want that the scrolling text screen have hardcoded text with some variables, no empty and load with tables or similar, because that is a dirty way to make things in this case, and is complicate.

Thanks.

Adam
08-30-2006, 12:45 PM
Can you give a sample of some of the scrolling text with the variables inserted? That way I can take a look for an answer to your specific question.

Adam Kapilik

SPTR
08-30-2006, 06:12 PM
Here is a screen capture of scrolling text dialog (not at runtime):

http://img134.imageshack.us/img134/4291/snap860nj3.jpg

This is the last screen showed before installing or executing files are performed.

In one only direction, NEXT, NEXT, when arrive to this screen, the variables show the correct info, but the problem is when I go BACK to change data.

For debug, I insert a Dialog.Message("DEBUG", SessionVar.Expand("%ImageBrowse% \n %OriginFolderBrowse% \n %CDLabel% \n %ISOBrowse%")) in scrolling screen preload event to view if the variables are correct, and yes, always in this message window for debug are corrects, but when screen shows, its remain showin the old values, the values of the first time.

My project runs at follows:

- Welcome screen.
- RadioButton Screen for several selections.
- Static text screen for advice, after NEXT in this screen, I calling functions in the NEXT EVENT of the screen, so that, the user chooses directories, filenames, etc. Then these selections are expanded to variables that shows in the above screenshot.
- Srolling text screen to show the selections made by user. (Above screenshot).

Is strange, because if I use Static text screens instead Scrolling text, then works fine.

¿Bug?

pww
09-01-2006, 03:47 AM
try something like this:

In the 'On Preload' for this screen, dynamically create the whole text you want to display by concatenating pieces of static text and variable values - assign the whole thing to a variable.

Then use DlgScrollingText.SetProperties to display this variable in the box

I bit more work, but this way the text to show will be recreated each time you enter that screen and then .SetProperties should force a refresh - so hopefully always the newly generated text with updated variable values will be displayed.

SPTR
09-01-2006, 07:09 PM
Thanks, but I dont want that.

With Static Text screen it works perfect, but not with scrolling text screen.

At the moment I replaced the scrolling text by static text and works fine.

It should a bug or feature request.

Concatenating I have to put the text on variables, preloads, etc. and I don't like that. I want to have the text in the screen, for align it, preview, etc.

Thanks otherwise.