Caption parameter for custom pages
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1662 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
10d868f72b
commit
fdd5119f75
5 changed files with 42 additions and 20 deletions
|
@ -518,6 +518,17 @@ nextPage:
|
|||
if (this_page->id!=NSIS_PAGE_COMPLETED) DestroyWindow(m_curwnd);
|
||||
else if (g_autoclose) goto nextPage;
|
||||
|
||||
if (this_page->id==NSIS_PAGE_CUSTOM) // custom page
|
||||
{
|
||||
mystrcpy(g_tmp,g_caption);
|
||||
process_string_fromtab(
|
||||
g_tmp+mystrlen(g_tmp),
|
||||
this_page->caption // post_func contains the caption for custom functions
|
||||
);
|
||||
|
||||
SetWindowText(hwndDlg,g_tmp);
|
||||
}
|
||||
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
if (ExecuteCodeSegment(this_page->prefunc,NULL) || this_page->id<0)
|
||||
goto nextPage;
|
||||
|
|
|
@ -460,7 +460,13 @@ typedef struct
|
|||
int id; // index in the pages array
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
int prefunc; // function to use Abort in, or show the custom page if id == NSIS_PAGE_CUSTOM
|
||||
int postfunc; // function to do stuff after the page is shown
|
||||
union
|
||||
{
|
||||
int postfunc; // function to do stuff after the page is shown
|
||||
#endif //NSIS_SUPPORT_CODECALLBACKS
|
||||
int caption; // caption for custom pages
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
};
|
||||
#endif //NSIS_SUPPORT_CODECALLBACKS
|
||||
int next;
|
||||
int back;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue