Archive: GetDlgItem + SetCtlColors = no color on branch


[solved] GetDlgItem + SetCtlColors = no color on branch
I cant get this piece of code working.

$R3 is a FIELD counter (from IO) and set to 9 or 10.
In case this text is shown text color has to be gray and not black (default).

  !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "menu02.ini"
Pop $HWND
GetDlgItem $DLGITEM $HWND 1200 ;1200 + Field number - 1
SetCtlColors $DLGITEM 800000 transparent
GetDlgItem $DLGITEM $HWND 1202 ;1200 + Field number - 1
SetCtlColors $DLGITEM 800000 transparent
GetDlgItem $DLGITEM $HWND 1204 ;1200 + Field number - 1
SetCtlColors $DLGITEM 808080 transparent
GetDlgItem $DLGITEM $HWND 1205 ;1200 + Field number - 1
SetCtlColors $DLGITEM 808080 transparent
GetDlgItem $DLGITEM $HWND 1206 ;1200 + Field number - 1
SetCtlColors $DLGITEM 800000 transparent

StrCmp $R3 "9" "" showinfo21
GetDlgItem $DLGITEM $HWND 1208 ;1200 + Field number - 1
SetCtlColors $DLGITEM 808080 transparent
showinfo21:

StrCmp $R3 "10" "" showinfo22
GetDlgItem $DLGITEM $HWND 1209 ;1200 + Field number - 1
SetCtlColors $DLGITEM 808080 transparent
showinfo22:


!insertmacro MUI_INSTALLOPTIONS_SHOW


but i cant get this working this way nor when $R3 contains the right number (eg 1209)
      GetDlgItem $DLGITEM $HWND $R3 ;1200 + Field number - 1
SetCtlColors $DLGITEM 808080 transparent


any hints ?

damn im really stupid man

i pop'ed $r3 before this action so $r3 from before is lost and not working

thx 4 ur attention ^^

(gimme a lollypop next time -.-)