Archive: Footer Background


Footer Background
Hi All,

I changes the background of the dialog with an image but it dosent cover the entire dialog ...footer where the NEXT and Cancel buttons are there is left out ...I need to change the background of that footer with a image or with color ...

Please guide me ..


Did you use the code on this page:
http://nsis.sourceforge.net/Image_in...dow_background

Note the known issues section.

Stu


Hi Stu ...Thanks for quick reply ...I used the following code

nsDialogs::Create /NOUNLOAD 1044
Pop $DIALOG

nsDialogs::CreateControl /NOUNLOAD STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${SS_BITMAP} 0 0 0 109u 193u ""
Pop $IMAGECTL

StrCpy $0 $PLUGINSDIR\welcome.bmp
System::Call 'user32::LoadImage(i 0, t r0, i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_LOADFROMFILE}) i.s'
Pop $IMAGE

SendMessage $IMAGECTL ${STM_SETIMAGE} ${IMAGE_BITMAP} $IMAGE

With this I am able to replace everyhing on the dialog except it do not cover the footer section

I wrote some script to change the NEXT button to an image

GetDlgItem $BUTTON1 $HWNDPARENT 1 ; Next button

${NSD_AddStyle} $BUTTON1 "${BS_BITMAP}"
; Set the bitmap.
System::Call 'user32::LoadImage(i 0, t "$PLUGINSDIR\next.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s'
Pop $6

Now if I can change the footer to some color it will be done ...please guide me