NOT part of Seamonkey build, chofmann OK'd. fixups for OnEnter.

git-svn-id: svn://10.0.0.236/trunk@49376 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varada%netscape.com
1999-09-30 00:44:28 +00:00
parent 07441c8e56
commit 6d79dd1e3f
2 changed files with 13 additions and 7 deletions

View File

@@ -27,6 +27,7 @@
#include "WizardMachineDlg.h"
#include "WizardTypes.h"
//NODE WizardTree;
void CreateRshell();
//extern WIDGET GlobalWidgetArray[1000];
@@ -53,8 +54,8 @@ public:
void ExecuteAction(char action);
CString replaceVars(char *str);
BOOL interpret(CString cmd);
void GoToNextNode();
void GoToPrevNode();
BOOL GoToNextNode();
BOOL GoToPrevNode();
void ExitApp();
BOOL CheckForPreBuiltPath();
FILE* OpenAFile(CString outputFile, CString mode);

View File

@@ -164,7 +164,8 @@ LRESULT CWizardUI::OnWizardBack()
UpdateGlobals();
DestroyCurrentScreenWidgets();
theApp.GoToPrevNode();
while (!theApp.GoToPrevNode())
; /* do nothing */
prevLock.Unlock();
}
@@ -206,7 +207,8 @@ LRESULT CWizardUI::OnWizardNext()
UpdateGlobals();
DestroyCurrentScreenWidgets();
theApp.GoToNextNode();
while (!theApp.GoToNextNode())
; /* do nothing */
nextLock.Unlock();
}
@@ -1191,9 +1193,12 @@ void CWizardUI::UpdateGlobals()
if (widgetType == "ComboBox")
{
int selectedIndex = ((CComboBox*)curWidget->control)->GetCurSel();
char tmpStr[MIN_SIZE];
((CComboBox*)curWidget->control)->GetLBText(selectedIndex, tmpStr);
curWidget->value = tmpStr;
if (selectedIndex != -1)
{
char tmpStr[MIN_SIZE];
((CComboBox*)curWidget->control)->GetLBText(selectedIndex, tmpStr);
curWidget->value = tmpStr;
}
}
}
}