 CheckModes:
 ; Update allModes
 Gui, PrgLnchOpt: Submit, Nohide
-CheckModesFunc(SelIniChoicePath, PresetPropHwnd, targMonitorNum, dispMonNamesNo, iDevNumArray, dispMonNames, ResIndexList, ResArray, allModes)
+CheckModesFunc(SelIniChoicePath, defPrgStrng, PresetPropHwnd, targMonitorNum, dispMonNamesNo, iDevNumArray, dispMonNames, ResIndexList, ResArray, allModes)
 Tooltip
 Return
 
-CheckModesFunc(SelIniChoicePath, PresetPropHwnd, targMonitorNum, dispMonNamesNo, iDevNumArray, dispMonNames, ByRef ResIndexList, ByRef ResArray, allModes)
-{
-
+CheckModesFunc(SelIniChoicePath, defPrgStrng, PresetPropHwnd, targMonitorNum, dispMonNamesNo, iDevNumArray, dispMonNames, ByRef ResIndexList, ByRef ResArray, allModes)
+{
 
 ResIndexList := GetResList(targMonitorNum, dispMonNamesNo, iDevNumArray, dispMonNames, ResArray, allModes, 1)
-
 
 strTemp := substr(ResIndexList, 1, StrLen(ResIndexList) - 1)
 

selPrgChoice := 1
selPrgChoiceTimer := 0
regoVar := 0
navShortcut := 0




ResListBox:
Tooltip

	if (allModes)
	{
	GuiControlGet, strTemp, PrgLnchOpt:, currRes
	GuiControl, PrgLnchOpt: ChooseString, ResIndex, %strTemp%
	}
	else
	{
	fTemp := 0
	GuiControlGet, strTemp, PrgLnchOpt:, ResIndex
		Loop, Parse, ResIndexList, |
		{
			If (strTemp == A_Loopfield)
			{
			fTemp := A_Index
			Break
			}
		}
		if (fTemp)
		{
		PrgLnchOpt.scrWidth := ResArray[fTemp - 1, 1]
		PrgLnchOpt.scrHeight := ResArray[fTemp - 1, 2]
		PrgLnchOpt.scrFreq := ResArray[fTemp - 1, 3]

			if (PrgChoicePaths[selPrgChoice])
			IniProc(selPrgChoice)
		}
		else
		GuiControl, PrgLnchOpt: ChooseString, ResIndex, % PrgLnchOpt.MonCurrResStrng
	}
Return

FindStoredRes(SelIniChoicePath, ResIndexHwnd)
