Wierd
Something has just started to my sections. The first section is never selected, even though I have told it to...
.onInit
StrCpy $R1 ${secBSPnew} ; Gotta remember which section we are at now...
SectionGetFlags ${SecBSPreq} $R0
IntOp $R0 $R0 | ${SF_SELECTED}
SectionSetFlags ${SecBSPreq} $R0
SectionGetFlags ${SecBSPnew} $R0
IntOp $R0 $R0 | ${SF_SELECTED}
SectionSetFlags ${SecBSPnew} $R0
SectionGetFlags ${SecBSPold} $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags ${SecBSPold} $R0
StrCpy $3 ${secVISfull} ; Gotta remember which section we are at now...
SectionGetFlags ${SecVISreq} $2
IntOp $2 $2 | ${SF_SELECTED}
SectionSetFlags ${SecVISreq} $2
SectionGetFlags ${SecVISfull} $2
IntOp $2 $2 | ${SF_SELECTED}
SectionSetFlags ${SecVISfull} $2
SectionGetFlags ${SecVISfast} $2
IntOp $2 $2 & ${SECTION_OFF}
SectionSetFlags ${SecVISfast} $2
StrCpy $5 ${secRADextra} ; Gotta remember which section we are at now...
SectionGetFlags ${SecRADreq} $4
IntOp $4 $4 | ${SF_SELECTED}
SectionSetFlags ${SecRADreq} $4
SectionGetFlags ${SecRADextra} $4
IntOp $4 $4 | ${SF_SELECTED}
SectionSetFlags ${SecRADextra} $4
SectionGetFlags ${SecRADnormal} $4
IntOp $4 $4 | ${SF_SELECTED}
SectionSetFlags ${SecRADnormal} $4
SectionGetFlags ${SecRADfast} $4
IntOp $4 $4 & ${SECTION_OFF}
SectionSetFlags ${SecRADfast} $4
.onSecChange
StrCpy $1 ${SF_SELECTED}
SectionGetFlags ${secVISreq} $0
IntOp $1 $1 & $0
SectionGetFlags ${secVISfull} $0
IntOp $1 $1 & $0
SectionGetFlags ${secVISfast} $0
IntOp $1 $1 & $0
StrCmp $1 0 skip2
SectionSetFlags ${secVISreq} 0
SectionSetFlags ${secVISfull} 0
SectionSetFlags ${secVISfast} 0
skip2:
StrCpy $1 ${SF_SELECTED}
SectionGetFlags ${secRADreq} $0
IntOp $1 $1 & $0
SectionGetFlags ${secRADextra} $0
IntOp $1 $1 & $0
SectionGetFlags ${secRADnormal} $0
IntOp $1 $1 & $0
SectionGetFlags ${secRADfast} $0
IntOp $1 $1 & $0
StrCmp $1 0 skip3
SectionSetFlags ${secRADreq} 0
SectionSetFlags ${secRADextra} 0
SectionSetFlags ${secRADnormal} 0
SectionSetFlags ${secRADfast} 0
skip3:
; Turn off old selected section
SectionGetFlags $R1 $R0
IntOp $R0 $R0 & ${SECTION_OFF}
SectionSetFlags $R1 $R0
SectionGetFlags ${SecBSPnew} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
IntCmp $R0 ${SF_SELECTED} 0 +2 +2
StrCpy $R1 ${SecBSPnew}
SectionGetFlags ${SecBSPold} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
IntCmp $R0 ${SF_SELECTED} 0 +2 +2
StrCpy $R1 ${SecBSPold}
StrCmp $R1 $R1 0 +2 ; selection hasn't changed
SectionGetFlags $R1 $R0
IntOp $R0 $R0 | ${SF_SELECTED}
SectionSetFlags $R1 $R0
; Turn off old selected section
SectionGetFlags $2 $3
IntOp $3 $3 & ${SECTION_OFF}
SectionSetFlags $2 $3
SectionGetFlags ${SecVISreq} $3
IntOp $3 $3 & ${SF_SELECTED}
IntCmp $3 ${SF_SELECTED} 0 +2 +2
StrCpy $2 ${SecVISreq}
SectionGetFlags ${SecVISfull} $3
IntOp $3 $3 & ${SF_SELECTED}
IntCmp $3 ${SF_SELECTED} 0 +2 +2
StrCpy $2 ${SecVISfull}
SectionGetFlags ${SecVISfast} $3
IntOp $3 $3 & ${SF_SELECTED}
IntCmp $3 ${SF_SELECTED} 0 +2 +2
StrCpy $2 ${SecVISfast}
StrCmp $2 $2 0 +2 ; selection hasn't changed
SectionGetFlags $2 $3
IntOp $3 $3 | ${SF_SELECTED}
SectionSetFlags $2 $3
; Turn off old selected section
SectionGetFlags $4 $5
IntOp $5 $5 & ${SECTION_OFF}
SectionSetFlags $4 $5
SectionGetFlags ${SecRADreq} $5
IntOp $5 $5 & ${SF_SELECTED}
IntCmp $5 ${SF_SELECTED} 0 +2 +2
StrCpy $4 ${SecRADreq}
SectionGetFlags ${SecRADextra} $5
IntOp $5 $5 & ${SF_SELECTED}
IntCmp $5 ${SF_SELECTED} 0 +2 +2
StrCpy $4 ${SecRADextra}
SectionGetFlags ${SecRADnormal} $5
IntOp $5 $5 & ${SF_SELECTED}
IntCmp $5 ${SF_SELECTED} 0 +2 +2
StrCpy $4 ${SecRADnormal}
SectionGetFlags ${SecRADfast} $5
IntOp $5 $5 & ${SF_SELECTED}
IntCmp $5 ${SF_SELECTED} 0 +2 +2
StrCpy $4 ${SecRADfast}
StrCmp $4 $4 0 +2 ; selection hasn't changed
SectionGetFlags $4 $5
IntOp $5 $5 | ${SF_SELECTED}
SectionSetFlags $4 $5
The SecBSPnew should start selected but never does. I then have to click on it twice to select it.
It just started happening, and I have no idea why.
I just had 2 sections above it that I removed, but they were nothing to do with it.
-Stuart:cry: