What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Thx!] CheckBoxControl/Attributes/Has3States

Pages: (2): « First [ 1 ] 2 » Last »
[Thx!] CheckBoxControl/Attributes/Has3States
Author: Message:
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. [Thx!] CheckBoxControl/Attributes/Has3States
how to see the State 3????

code:
Debug.Trace("Click "+w.Button_IsChecked( c ))

Appel de la fonction : OnPsDp_PsChild1Event_CtrlClicked
Click false
Appel de la fonction : OnPsDp_PsChild1Event_CtrlClicked
Click true
Appel de la fonction : OnPsDp_PsChild1Event_CtrlClicked
Click true

This post was edited on 03-18-2007 at 04:31 PM by Flash.
My script: Psdp
03-17-2007 10:57 PM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
33 / Male / –
Joined: Jan 2007
RE: [Help] CheckBoxControl/Attributes/Has3States
this property this in false by default
if Has3States is true, what is the state 3?
03-18-2007 01:41 AM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Help] CheckBoxControl/Attributes/Has3States
The three states of a checkbox

Not Checked
Partial Check
Checked
03-18-2007 01:56 AM
Profile E-Mail PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
33 / Male / –
Joined: Jan 2007
RE: [Help] CheckBoxControl/Attributes/Has3States
Partial Check?
how is that?
03-18-2007 01:58 AM
Profile PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [Help] CheckBoxControl/Attributes/Has3States
maybe with a Timer? :D

Edit: how to set the checkbox status "Partial Check" with API?

This post was edited on 03-18-2007 at 02:48 AM by felipEx.
03-18-2007 02:37 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: [Help] CheckBoxControl/Attributes/Has3States
quote:
Originally posted by Dennis Mike
Partial Check?
how is that?
A common example of partially checked is when you install a new program and go into a custom set-up.  If you choose some (not all) features in a branch of the tree then it will partially select the parent of the ones you chose.  I hope this explanation is not too confusing.
[Image: markee.png]
03-18-2007 03:33 AM
Profile PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
33 / Male / –
Joined: Jan 2007
RE: [Help] CheckBoxControl/Attributes/Has3States
Edit
this is for cheked, no?
BM_SETCHECK = 0xF1
PlusWnd.SendControlMessage(ControlId,BM_SETCHECK, BST_CHEKED, 0)

how is for partialcheked?


This post was edited on 03-18-2007 at 03:45 AM by Dennis Mike.
03-18-2007 03:36 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: [Help] CheckBoxControl/Attributes/Has3States
with two states:

[Image: ThreeStateTreeView1.png]





with three states:

[Image: ThreeStateTreeView2.png]
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
03-18-2007 03:47 AM
Profile PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [Help] CheckBoxControl/Attributes/Has3States

var BS_CHECKBOX = 0x2
var BM_GETCHECK = 0xF0

var res = Interop.Call("user32", "SendMessageW",  PlusWnd.GetControlHandle("yourcheckbox"), BM_GETCHECK, BS_CHECKBOX, 0)

if res = 0 ..  the checkbox is not checked
if res = 1 .. the checkbox is checked
if res = 2..  the checkbox is "Partial Check"


it works for me :)

This post was edited on 03-18-2007 at 07:27 AM by felipEx.
03-18-2007 03:59 AM
Profile E-Mail PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
33 / Male / –
Joined: Jan 2007
RE: [Help] CheckBoxControl/Attributes/Has3States
felipex say how to set the checkbox status "Partial Check"?


PlusWnd.SendControlMessage(controlid, 0xF1, 2, 0)
03-18-2007 04:02 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On