Go Back   Winamp Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 3rd November 2006, 10:19   #1
davidnewcomb
Junior Member
 
Join Date: Nov 2006
Location: Reading, UK
Posts: 39
Clearing fields

Just spent the last week writing an installer with bells and whistles, and hit a problem. Scenario: I have several custom pages which I use to collect info. Some of the info is repeated and so the custom pages have to be repeated with cleared fields. There are various fields which are dynamically greyed out depending on what on the page is selected.

I did start of with a "Page custom startFn leaveFn" which handles the NOTIFY to grey out the buttons. But found that there was no way to clear a text field. I did use MUI_INSTALLOPTIONS_WRITE but found that you really need to call MUI_INSTALLOPTIONS_DISPLAY to redraw the screen with the new changes.

Then I looked at the mathtest.nsi to figure out how to repeatedly show the same screen, and found that it uses MUI_INSTALLOPTIONS_DISPLAY_RETURN to stay in the startFn and loop until it's ok. MUI_INSTALLOPTIONS_DISPLAY_RETURN only returns Success or Failed, so there is no way to tell if one of my custom buttons is being called.

I'm a bit confused about how I can submit a page (maybe from a custom button), have it do something and then clear all the fields.

Any help would be appreciated.
davidnewcomb is offline   Reply With Quote
 
Go Back   Winamp 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