Shoutbox

[resolved] Checkboxes have three states... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [resolved] Checkboxes have three states... (/showthread.php?tid=93884)

[resolved] Checkboxes have three states... by whiz on 02-18-2010 at 03:47 PM

xml code:
        <Control xsi:type="CheckBoxControl" Id="ChkTest">
            <Position Left="3" Top="3" Width="37" Height="15">
                <Units>AllPixels</Units>
            </Position>
            <Attributes>
                <Has3States>true</Has3States>
            </Attributes>
            <Caption>Test</Caption>
        </Control>
Well, that works fine.  I get a checkbox that switches between unchecked, checked and the square one (don't know the name of it :P).

The problem is...  PlusWnd.Button_IsChecked("ChkTest") returns true for both checked and the 3rd.  Is there a way to check which one it is?  And also, can it be set to the 3rd with PlusWnd.Button_SetCheckState("ChkTest", ThirdState)?

Edit: never mind, found it: http://shoutbox.menthix.net/showthread.php?tid=72761
RE: [resolved] Checkboxes have three states... by Spunky on 02-18-2010 at 06:37 PM

The "square" one is usually used for sub-groups of options isn't it?

You know that if it's checked, the user has selected at least one sub-item... If not, you can pretty much ignore them (assume they are false)


RE: [resolved] Checkboxes have three states... by whiz on 02-18-2010 at 07:18 PM

Well, I'm actually going to use them as part of Interface Writer, for editing multiple items (with the square selection for not changing a particular item).  :P