Old 7th May 2009, 14:52   #1
furmanOFF
Junior Member
 
Join Date: May 2009
Posts: 4
Recreate Page

Hello i am trying to implement dynamic sections manipulation in my setup:
I have some number of predefined invisible sections.
After some manipulations on "components" page, one of invisible sections must become visible so i call e.g.:
code:
SectionSetText $SECTION "Hello"

Of course it doesn't show up on "components" page (page is shown right now) So i need to refresh it somehow!
I've tried to push "Back" button with
code:
SendMessage $BUTTON ${BM_CLICK} 0 0
and then press "Next" in same way (or call Abort in precreation of previous page).
But my setup crashes right after Back is pressed.

Maybe you know some WM_ Message that will cause components page to refresh?
Or i should add it to components treeView manually?

P.S. I know that i could do it with ListBox in nsDialogs but it will be without checkboxes
furmanOFF is offline   Reply With Quote
Old 7th May 2009, 21:14   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Did you try to move the referred manipulations and the SectionSetText instruction into .onInit function?

Did you try the page functions pre/leave?

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 8th May 2009, 09:55   #3
furmanOFF
Junior Member
 
Join Date: May 2009
Posts: 4
Setting section text in .onInit is not suitable for me, because sections must be added when user is already on "components" page.
The problem with refreshing this page, because components TreeView is filled with lines on creation of page (i think so because when i use SectionSetText to reveal new section then press Back and then press Next to return to "components" page new section shows up).
So i just need some solution to forse "components" page to refresh its data in components TreeView.
furmanOFF is offline   Reply With Quote
Old 8th May 2009, 16:35   #4
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
It is not the nicest method I guess, but the following might work for you:
http://nsis.sourceforge.net/Go_to_a_NSIS_page
jpderuiter is offline   Reply With Quote
Old 8th May 2009, 17:24   #5
furmanOFF
Junior Member
 
Join Date: May 2009
Posts: 4
Thank you. It may help me.
furmanOFF is offline   Reply With Quote
Old 13th August 2010, 18:35   #6
Netsurfer24
Senior Member
 
Join Date: Aug 2010
Posts: 104
Question

Hi,

as I am having exactly the same problem (see http://forums.winamp.com/showpost.ph...68&postcount=6 I am interested in if anybody has a working solution for this problem?

I tried the 'Goto RelPage' suggestion but that leads to a crash of the installer.

Refreshing the GUI due to changes when page is already shown is a most common situation or an often needed scenario - would be nice to have a solution for this!

Or can anybody give me a hint how to "work around" this problem?

Thanks,

Gunther
Netsurfer24 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump