change default prompt window selection to "Cancel" button

This commit is contained in:
dborth 2009-07-22 04:41:12 +00:00
parent 69270c14ab
commit 75e5e28532

View File

@ -209,6 +209,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label, const ch
mainWindow->Append(&promptWindow); mainWindow->Append(&promptWindow);
mainWindow->ChangeFocus(&promptWindow); mainWindow->ChangeFocus(&promptWindow);
ResumeGui(); ResumeGui();
if(btn2Label) promptWindow.MoveSelectionHor(1); // change selection to btn2
while(choice == -1) while(choice == -1)
{ {