Skip to content
⌘ NSIS Forum Archive

Mui_header_transparent_text

6 posts

bradharding#

Mui_header_transparent_text

Hi!

I've found that when using ModernUI and defining MUI_HEADER_TRANSPARENT_TEXT, the header text and subtext flicker quite badly with each page change.

I've discovered, however, that by changing the following code starting at line 187 of Contrib\Modern UI\System.nsh...


!macro MUI_HEADER_TEXT_INTERNAL ID TEXT

GetDlgItem $MUI_TEMP1 $HWNDPARENT "${ID}"

!ifdef MUI_HEADER_TRANSPARENT_TEXT

ShowWindow $MUI_TEMP1 ${SW_HIDE}

!endif

SendMessage $MUI_TEMP1 ${WM_SETTEXT} 0 "STR:${TEXT}"

!ifdef MUI_HEADER_TRANSPARENT_TEXT

ShowWindow $MUI_TEMP1 ${SW_SHOWNA}

!endif

!macroend
...to this...


!macro MUI_HEADER_TEXT_INTERNAL ID TEXT

GetDlgItem $MUI_TEMP1 $HWNDPARENT "${ID}"

!ifdef MUI_HEADER_TRANSPARENT_TEXT

LockWindow "on"

ShowWindow $MUI_TEMP1 ${SW_HIDE}

!endif

SendMessage $MUI_TEMP1 ${WM_SETTEXT} 0 "STR:${TEXT}"

!ifdef MUI_HEADER_TRANSPARENT_TEXT

ShowWindow $MUI_TEMP1 ${SW_SHOWNA}

LockWindow "off"

!endif

!macroend
...the flicker goes away nicely.

Is it possible for this to be changed? Am I even requesting this change in the right way? Or is there some other way I can achieve the same thing in my own code?

Thanks in advance.

Regards,
Brad. 🙂
bradharding#
Not that I know of. This way works well.
Joost? Or the powers that be? Can this change please be made to the Modern UI code?
bradharding#
Thanks, Kichik!

The CVS appears to be back up now, so I've submitted a new request (#1696610) in the patch tracker.

I've been using the wonderful NSIS for over 4 years now (on the same project 😱 ), so it'd be great if I were able to contribute.
Joel#
Originally posted by bradharding
I've been using the wonderful NSIS for over 4 years now (on the same project 😱 ), so it'd be great if I were able to contribute.
Try for 6 years 😉 Since 1.1 😛