Shoutbox

Advanced Options - 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: Skinning (/forumdisplay.php?fid=41)
+----- Thread: Advanced Options (/showthread.php?tid=80853)

Advanced Options by sbrown on 01-10-2008 at 07:56 PM

I am using the advanced options page that I got from the documentation. I followed it to a T. I have encountered an error however. I changed a check box to remove the search bar at the bottom of the messenger window with:

code:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd" Name="InterfaceOptions">
<Window Id="SkinOpt" Version="1">
  <Position Width="220" Height="104"/>
  <ChildTmpl/>
  <Controls>
   <Control xsi:type="CheckBoxControl" Id="RemSearchBar">
    <Position Top="86" Width="150" Left="5"/>
    <Caption>Remove the Search Bar</Caption>
   </Control>
  </Controls>
</Window>
</Interfaces>


I put this in the 923 file:
code:
<Element <*PlusSkin Conditions(RemSearchBar = false)*>layoutpos=bottom</*PlusSkin*> <*PlusSkin Conditions(RemSearchBar = true)*>layoutpos=none</*PlusSkin*> padding=rect(8,0,8,8) layout=filllayout() ID=Atom(ai217)>


My skininfo has this:
code:
<Options>
  <Skin>
      <OptionInterface>
    <InterfaceDir>Opts</InterfaceDir>
    <InterfaceFile>OptInterfaces.xml</InterfaceFile>
    <WindowIds>
     <WindowId Language="en-us">SkinOpt</WindowId>
    </WindowIds>
   </OptionInterface>
  </Skin>
</Options>

Every time i close and reopen the options page, the checkbox is not checked. I restart and it does not check. It does not ask to restart when I click ok. Please advise.
RE: Advanced Options by Matti on 01-10-2008 at 08:21 PM

Err, you need to define your actual option...

code:
<Options>
   <Skin>
      <Properties>
         <BoolVal Name="RemSearchBar">
            <DispLabel>Remove the Search Bar</DispLabel>
            <DispHelp>Remove the search bar from the contact list</DispHelp>
            <Default>false</Default>
         </BoolVal>
      </Properties>
      <OptionInterface>
         ...
      </OptionInterface>
   </Skin>
</Options>
;)
RE: Advanced Options by sbrown on 01-10-2008 at 08:40 PM

quote:
Originally posted by Mattike
      <Properties>
         <BoolVal Name="RemSearchBar">
            <DispLabel>Remove the Search Bar</DispLabel>
            <DispHelp>Remove the search bar from the contact list</DispHelp>
            <Default>false</Default>
         </BoolVal>
      </Properties>

but then my custom options page goes away and i get a standard one again.
RE: Advanced Options by sbrown on 01-10-2008 at 09:20 PM

I found out why it wasnt working!

<OptionInterface></OptionInterface> must be before the boolvals!

thanks