Archive: !define MUI_WELCOMEPAGE_TEXT in .onInit ?


!define MUI_WELCOMEPAGE_TEXT in .onInit ?
I would like to customize the MUI_WELCOMEPAGE_TEXT based on a function that I call in .onInit and which initializes some variables.

Every example that I saw so far, has the

!define MUI_WELCOMEPAGE_TEXT
(and any other !define MUI_) appear before .onInit.

I tried ignoring this fact by including such a variable (that is declared before !define MUI_WELCOMEPAGE_TEXT but initialized in .onInit) in the !define MUI_WELCOMEPAGE_TEXT but - not surprisingly, I receive the following compilation warning:
unknown variable/constant "{oninit_var}" detected, ignoring (macro:MUI_FUNCTION_WELCOMEPAGE:42
Is it possible at all to customize MUI_WELCOMEPAGE_TEXT with non-static text?

If so, how do I do this?

Thanks!

nope - but you can always use WM_SETTEXT to change the text of the control if you must


Simply set it to a variable and set that variable in .onInit.


Thank you Animaethe and kichik.

I ended up using the following approach and it works beautifully:

Originally posted by kichik
Simply set it to a variable and set that variable in .onInit.