Brummelchen
4th March 2004 04:26 UTC
2.0 final - bug in GetDlgItem / SetCtlColors
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "menu01.ini"
Pop $HWND
GetDlgItem $DLGITEM $HWND 1211 ;1200 + Field number - 1
SetCtlColors $DLGITEM 0000FF transparent
!insertmacro MUI_INSTALLOPTIONS_SHOW
>> 1211
--> not possible
1210 sure, but not 1211
Field 12 was a label which was added after i have finished the rest.
if i use it as Field 2 (the fields after increases +1) it works. and then i can color field 12 which is now a directory box.
so labels cant and dir boxex can be colored >= 1211
HTH
Joost Verburg
4th March 2004 08:38 UTC
Please create a generic test script that adds identical fields in a loop and givse them a color. That way you can see whether it's a bug or a script problem.
Brummelchen
4th March 2004 17:12 UTC
sorry for delay, my provider had trouble (error 678)
here are the examples - one with and one w/o fault.
HTH
PS nsis 2.0 final
Brummelchen
5th March 2004 12:13 UTC
so i can consider it as a know bug?
i apologize but this titel "Much to say..." says nothing to me like "rain in honululu".
maybe u can merge all in a "bug in nsis final" thread - thx
kichik
5th March 2004 12:15 UTC
On the end of that thread you'll find a solution.
Brummelchen
5th March 2004 12:33 UTC
ic...
Originally posted by eccles
(The example script I mentioned in an earlier post has an example of this.) The control ID of the button part is the control ID of the text part + 1. The control IDs of all following fields are then also + 1. E.g. if fields 1 to 3 are Label, FileRequest and Text, the IDs are:
Field 1 (Label): 1200
Field 2 (FileRequest) text part: 1201
button part: 1202
Field 3 (Text): 1203
I'll see if I can make a note about this in the InstallOptions readme (after I sort that bug out...)!
in my case it has to be 1212 instead 1211 'cause 1211 is the button from dirrequest.
and it works - many thx kichik
deguix
6th March 2004 00:07 UTC
Is probably off-topic but:
deguix
I remembered another bug, when I'm using the Banner Plugin and I use or click in another program at the same time, it doesn't load anything anymore, and you can only close the banner using "Ctrl + Alt + Del". If you want to verify that, compile the RCMainMenu.nsi, or just run "Registry Changer.exe".
eccles
Anyone want to look at the Banner plugin problem? I'm not familiar with the Banner plugin code.
Nobody said anything after that, and this bug continues until now.