Old 7th June 2006, 09:19   #1
edward_18
Junior Member
 
Join Date: Jun 2006
Posts: 3
Question Gets the SectionGroup's flags

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.
Attached Files
File Type: nsi sectexmpl.nsi (8.3 KB, 253 views)
edward_18 is offline   Reply With Quote
Old 16th June 2006, 10:57   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Try checking the flags in the pre callback function and submit a bug report about this issue.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump