View Single Post
Old 8th November 2004, 17:48   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
It's not possible to actually 'gray' the button out, but you can stop user's exiting a page by calling 'Abort' in the leave function.

Example:
code:
Page Custom myPageFunction myLeaveFunction

Function myLeaveFunction
; read check-box State
ReadINIStr $R0 "$PLUGINSDIR\ioFile.ini" "Field 3" "State"
StrCmp $R0 1 +2 ; check-box is checked?
Abort ; it is, so don't leave this damn page!
FunctionEnd



It might need some adaptation, but the general idea is there

-Stu
Afrow UK is offline   Reply With Quote