Old 10th July 2006, 14:51   #1
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
how to Sendmessage to Checkbox?

i need to change the state of a checkbox on "NOTIFY" but i cant find the right Sendmessage - pls help.

ps. do i need winmessages.nsh?

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 10th July 2006, 14:52   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
BM_SETCHECK
http://msdn.microsoft.com/library/de...m_setcheck.asp

-Stu
Afrow UK is offline   Reply With Quote
Old 10th July 2006, 15:40   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
Works, thx

SendMessage $1 ${BM_SETCHECK} 0 "0" <-- off
SendMessage $1 ${BM_SETCHECK} 1 "0" <-- on

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 10th July 2006, 16:05   #4
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
erm, additional - how to with "Flags=" ?

ok, i think it is solved with example "testnotify.nsi"

Greets, Brummelchen

Last edited by Brummelchen; 10th July 2006 at 16:34.
Brummelchen is offline   Reply With Quote
Old 8th August 2006, 12:39   #5
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
Another problem - i need to send a path-variable to IO

[Field 1]
Type=DirRequest
Left=92
Right=280
Top=75
Bottom=88
State= <-- send here
Flags=PATH_MUST_EXIST|DISABLED

which command is it?

BTW it is part of a leave-function
PHP Code:
StrCmp $STATE "37" 0 check37
  
;copy back default values
  ReadINIStr 
$"$PLUGINSDIR\menu01.ini" "Field 1" "HWND"
  
SendMessage $${???} "$MOZDIR4" "0"
  
!insertmacro MUI_INSTALLOPTIONS_WRITE "menu01.ini" "Field 1" "State" "$MOZDIR4"
  
Abort
check37

thx

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 8th August 2006, 12:45   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use ${WM_SETTEXT} on the text box.

-Stu
Afrow UK is offline   Reply With Quote
Old 8th August 2006, 12:59   #7
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
thank you much

SendMessage $1 ${WM_SETTEXT} 0 "STR:$MOZDIR4"

is there any help to get the right command?
it is not really clear to me, why WM and not EM or BM

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 8th August 2006, 13:38   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
WM = Windows Message (i.e. for general windows and controls)
BM = Button Message
and so on.

Use MSDN if you need information about the messages (just use Google).

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump