Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Gets the SectionGroup's flags (http://forums.winamp.com/showthread.php?t=248065)

edward_18 7th June 2006 09:19

Gets the SectionGroup's flags
 
1 Attachment(s)
Hello,
It is necessary for me to define the status of SectionGroup before the Components page will be shown. I have some SectionGroups and by default all of included section not selected. When I receive a flag of SectionGroup using function

!define MUI_PAGE_CUSTOMFUNCTION_SHOW SectionStatus

Function SectionStatus
SectionGetText ${SECGRP0000} $R0
SectionGetFlags ${SECGRP0000} $R1
MessageBox MB_OK "Section $R0 has flags $R1"
FunctionEnd

it is equal 35! (SF_EXPAND + SF_SECGRP + SF_SELECTED). Why?

If on components page I choose component in other group I receive in function .onSelChange a flag 34 (SF_EXPAND + SF_SECGRP) for this SectionGroup as well as should be.

How can I get the correct section flag before the Components page will be shown?

Example script included.

kichik 16th June 2006 10:57

Try checking the flags in the pre callback function and submit a bug report about this issue.


All times are GMT. The time now is 05:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.