What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Simple question: disabled checkbox

Simple question: disabled checkbox
Author: Message:
wincy
Junior Member
**


Posts: 67
Reputation: 4
35 / Male / Flag
Joined: Feb 2008
O.P. Simple question: disabled checkbox
That's what i'm trying to do: a disabled (checked) CheckboxControl.

i read official documentation, searched in forum and tried many times, with no success.

code:
<Control xsi:type="CheckboxControl" Id="blah" enabled="false">
    <Position Top="35" Width="10" Left="90" />
</Control>
Is this wrong?

I found also:
CheckBoxControl/CustomLook/Disabled/Checked/Element

but i still can't do that correctly. Any help? :S
12-11-2008 12:19 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Simple question: disabled checkbox
To disable a checkbox you need to use the EnableWindow API with the relevant parameters
<Eljay> "Problems encountered: shit blew up" :zippy:
12-11-2008 12:26 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Simple question: disabled checkbox
That should work it may be case sensitive:
code:
<Control xsi:type="CheckBoxControl" Id="blah" Enabled="False">
    <Position Top="35" Width="10" Left="90" />
</Control>

quote:
Originally posted by wincy
I found also:
CheckBoxControl/CustomLook/Disabled/Checked/Element
That is if you are giving the control a custom look.

What you can do otherwise is in your script disable it
code:
var pWin = MsgPlus.CreateWnd('mywindow.xml', 'mywindow');
Interop.Call('user32', 'EnableWindow', pWin.GetControlHandle('blah'), false);
12-11-2008 12:27 PM
Profile E-Mail PM Find Quote Report
wincy
Junior Member
**


Posts: 67
Reputation: 4
35 / Male / Flag
Joined: Feb 2008
O.P. RE: RE: Simple question: disabled checkbox
quote:
Originally posted by matty
That should work it may be case sensitive:
code:
<Control xsi:type="CheckBoxControl" Id="blah" Enabled="False">
    <Position Top="35" Width="10" Left="90" />
</Control>


Too simple... it was really case sensitive! :P
I'll use it. Thanks for your help! :D

This post was edited on 12-11-2008 at 12:36 PM by wincy.
12-11-2008 12:35 PM
Profile E-Mail PM Find Quote Report
« 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