Tabindex for Custom Page Elements
Hi,
i made a Custom page for Database validation for my installer.
the page contains 2 radio buttons. on the basis i enable disable 2 text boxes. every thing is fine but in case when i use TAB button on keyboard with those radio buttons the loop is going infinite
here the code follows
in the .ini file
[Field 5]
Type=RadioButton
Text=" Windows Authentication"
State=1
Left=28
Right=140
Top=60
Bottom=77
Flags=NOTIFY
[Field 6]
Type=RadioButton
Text=" SQL Authentication"
State=0
Left=150
Right=232
Top=60
Bottom=77
Flags=NOTIFY
i used NOTIFY flag because i need to enable/disable 2 text boxes for username and password on page.
Page custom SelectDatabaseDialog ValidateDatabaseDialog ""
; Finish page
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Readme.txt"
!insertmacro MUI_PAGE_FINISH
the above is the pages i used
and the function follows
Function ValidateDatabaseDialog
ReadINIStr $Auth "$PLUGINSDIR\Database.ini" "Field 5" "State"
ReadINIStr $UserIdBox "$PLUGINSDIR\Database.ini" "Field 8" "HWND"
ReadINIStr $PasswordBox "$PLUGINSDIR\Database.ini" "Field 10" "HWND"
${If} $Auth == 1
EnableWindow $UserIdBox 0
EnableWindow $PasswordBox 0
${Else}
EnableWindow $UserIdBox 1
EnableWindow $PasswordBox 1
${EndIf}
call testDb
FunctionEnd
any help?