Shoutbox

help for SliderControl - 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: help for SliderControl (/showthread.php?tid=97047)

help for SliderControl by dada24300 on 03-13-2011 at 02:41 PM

Hello

I want an integrated slidercontrol in my window option, but I do not find good attributes.

could you please give me an example.


pout in the documentation there are MsgPlus slidercontrol http://www.msgplus.net/Developers/Documentation/Official-Skinning-Documentation/InterfaceSchema,InterfaceSchema/#complexType_SliderControl_Link04A1C9E0
RE: help for SliderControl by matty on 03-13-2011 at 03:15 PM

My bad, I didn't realize this was in the Skinning section!


RE: help for SliderControl by dada24300 on 03-13-2011 at 03:22 PM

ok thank you anyway.
if anyone knows how to do, help me please.


RE: help for SliderControl by blessedguy on 03-13-2011 at 03:41 PM

Hi there, I have never used this, but I imagine Plus! sends the value to your option according to <Range> [For example, 50% of 0-255 would be 128]

XML code:
<Control xsi:type="SliderControl" Id="SliderTest">
        <Position Top="5" Width="120" Left="5"/>
        <Help>Use an option that accepts numerical values</Help>
        <Attributes>
          <AutoTicks>0</AutoTicks>
          <EnableSelRange>false</EnableSelRange>
          <Orientation>Horizontal</Orientation>
          <TickMarks>Bottom</TickMarks>
        </Attributes>
        <Range>
          <Minimum>0</Minimum>
          <Maximum>255</Maximum>
        </Range>
</Control>


RE: help for SliderControl by dada24300 on 03-13-2011 at 04:25 PM

in fact it is to change the transparency of a window.
in the skin info I use this:

code:
<MultiVal Name="Contacttspt">
<Values>
<Value DispLabel="100%">100</Value>
<Value DispLabel="75%">75</Value>
<Value DispLabel="50%">50</Value>
<Value DispLabel="25%">25</Value>
<Value DispLabel="0%">0</Value>
</Values>
<Default>50</Default>
</MultiVal>

and the uifille use :

code:
<*PlusSkin Conditions(Contacttspt= "100") *>
<Element LayoutPos=client Layout=FillLayout() alpha=0 Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>
</*PlusSkin*>
<*PlusSkin Conditions(Contacttspt= "75") *>
<Element LayoutPos=client Layout=FillLayout() alpha=64 Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>
</*PlusSkin*>
<*PlusSkin Conditions(Contacttspt= "50") *>
<Element LayoutPos=client Layout=FillLayout() alpha=128 Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>
</*PlusSkin*>
<*PlusSkin Conditions(Contacttspt= "25") *>
<Element LayoutPos=client Layout=FillLayout() alpha=192 Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>
</*PlusSkin*>
<*PlusSkin Conditions(Contacttspt= "0") *>
<Element LayoutPos=client Layout=FillLayout() Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>
</*PlusSkin*>

I tried your code.
if I do not change the id but it appears is useless, but if I put the id Contacttspt it does not work.
is what you'll be the changes I should apply please.

EDIT :

I just thought that in the uifille I will put this:

code:
<Element LayoutPos=client Layout=FillLayout() alpha=<*PlusSkin Conditions(Contacttspt) *> Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>

is what you think is good?
but after what to put in the skininfo
RE: help for SliderControl by blessedguy on 03-13-2011 at 04:33 PM

quote:
Originally posted by dada24300
but if I put the id Contacttspt it does not work.
I think that happens because of the possible values, the slider must suppose all values are valid. Maybe you can use ValueOf in your definitions without declaring your option as multival.

For example:

Definitions
XML code:
<Element LayoutPos=client Layout=FillLayout() alpha=<*PlusSkin ValueOf(Contacttspt)*/> Background=rcclr("ruxc",25000) Foreground=rcclr("ruxc",25001) FontFace=rcstr("ruxc",25000) FontWeight=rcint("ruxc",20979)>


Panel
XML code:
<Control xsi:type="SliderControl" Id="Contacttspt">
        <Position Top="5" Width="120" Left="5"/>
        <Help>Contact list transparency</Help>
        <Attributes>
          <AutoTicks>25</AutoTicks>
          <EnableSelRange>false</EnableSelRange>
          <Orientation>Vertical</Orientation>
          <TickMarks>Bottom</TickMarks>
        </Attributes>
        <Range>
          <Minimum>0</Minimum>
          <Maximum>255</Maximum>
        </Range>
</Control>

And add labels with additional elements.
RE: help for SliderControl by dada24300 on 03-13-2011 at 04:45 PM

thank you very much for your help.

it must be necessary to modify the skininfo too, right?


RE: help for SliderControl by blessedguy on 03-13-2011 at 04:45 PM

Hm, indeed. I'm trying to figure it out, wait a bit :)


RE: help for SliderControl by dada24300 on 03-13-2011 at 04:52 PM

oki thank you


RE: help for SliderControl by blessedguy on 03-13-2011 at 05:09 PM

Sorry, couldn't get it to work =/ Even tried all possible values (A) [Considering it must be an integer value]

Spoiler:

XML code:
 <MultiVal Name="Contacttspt">
          <DispLabel>Teste</DispLabel>
          <Values>
            <Value DispLabel="0">0</Value>
            <Value DispLabel="1">1</Value>
            <Value DispLabel="2">2</Value>
            <Value DispLabel="3">3</Value>
            <Value DispLabel="4">4</Value>
            <Value DispLabel="5">5</Value>
            <Value DispLabel="6">6</Value>
            <Value DispLabel="7">7</Value>
            <Value DispLabel="8">8</Value>
            <Value DispLabel="9">9</Value>
            <Value DispLabel="10">10</Value>
            <Value DispLabel="11">11</Value>
            <Value DispLabel="12">12</Value>
            <Value DispLabel="13">13</Value>
            <Value DispLabel="14">14</Value>
            <Value DispLabel="15">15</Value>
            <Value DispLabel="16">16</Value>
            <Value DispLabel="17">17</Value>
            <Value DispLabel="18">18</Value>
            <Value DispLabel="19">19</Value>
            <Value DispLabel="20">20</Value>
            <Value DispLabel="21">21</Value>
            <Value DispLabel="22">22</Value>
            <Value DispLabel="23">23</Value>
            <Value DispLabel="24">24</Value>
            <Value DispLabel="25">25</Value>
            <Value DispLabel="26">26</Value>
            <Value DispLabel="27">27</Value>
            <Value DispLabel="28">28</Value>
            <Value DispLabel="29">29</Value>
            <Value DispLabel="30">30</Value>
            <Value DispLabel="31">31</Value>
            <Value DispLabel="32">32</Value>
            <Value DispLabel="33">33</Value>
            <Value DispLabel="34">34</Value>
            <Value DispLabel="35">35</Value>
            <Value DispLabel="36">36</Value>
            <Value DispLabel="37">37</Value>
            <Value DispLabel="38">38</Value>
            <Value DispLabel="39">39</Value>
            <Value DispLabel="40">40</Value>
            <Value DispLabel="41">41</Value>
            <Value DispLabel="42">42</Value>
            <Value DispLabel="43">43</Value>
            <Value DispLabel="44">44</Value>
            <Value DispLabel="45">45</Value>
            <Value DispLabel="46">46</Value>
            <Value DispLabel="47">47</Value>
            <Value DispLabel="48">48</Value>
            <Value DispLabel="49">49</Value>
            <Value DispLabel="50">50</Value>
            <Value DispLabel="51">51</Value>
            <Value DispLabel="52">52</Value>
            <Value DispLabel="53">53</Value>
            <Value DispLabel="54">54</Value>
            <Value DispLabel="55">55</Value>
            <Value DispLabel="56">56</Value>
            <Value DispLabel="57">57</Value>
            <Value DispLabel="58">58</Value>
            <Value DispLabel="59">59</Value>
            <Value DispLabel="60">60</Value>
            <Value DispLabel="61">61</Value>
            <Value DispLabel="62">62</Value>
            <Value DispLabel="63">63</Value>
            <Value DispLabel="64">64</Value>
            <Value DispLabel="65">65</Value>
            <Value DispLabel="66">66</Value>
            <Value DispLabel="67">67</Value>
            <Value DispLabel="68">68</Value>
            <Value DispLabel="69">69</Value>
            <Value DispLabel="70">70</Value>
            <Value DispLabel="71">71</Value>
            <Value DispLabel="72">72</Value>
            <Value DispLabel="73">73</Value>
            <Value DispLabel="74">74</Value>
            <Value DispLabel="75">75</Value>
            <Value DispLabel="76">76</Value>
            <Value DispLabel="77">77</Value>
            <Value DispLabel="78">78</Value>
            <Value DispLabel="79">79</Value>
            <Value DispLabel="80">80</Value>
            <Value DispLabel="81">81</Value>
            <Value DispLabel="82">82</Value>
            <Value DispLabel="83">83</Value>
            <Value DispLabel="84">84</Value>
            <Value DispLabel="85">85</Value>
            <Value DispLabel="86">86</Value>
            <Value DispLabel="87">87</Value>
            <Value DispLabel="88">88</Value>
            <Value DispLabel="89">89</Value>
            <Value DispLabel="90">90</Value>
            <Value DispLabel="91">91</Value>
            <Value DispLabel="92">92</Value>
            <Value DispLabel="93">93</Value>
            <Value DispLabel="94">94</Value>
            <Value DispLabel="95">95</Value>
            <Value DispLabel="96">96</Value>
            <Value DispLabel="97">97</Value>
            <Value DispLabel="98">98</Value>
            <Value DispLabel="99">99</Value>
            <Value DispLabel="100">100</Value>
            <Value DispLabel="101">101</Value>
            <Value DispLabel="102">102</Value>
            <Value DispLabel="103">103</Value>
            <Value DispLabel="104">104</Value>
            <Value DispLabel="105">105</Value>
            <Value DispLabel="106">106</Value>
            <Value DispLabel="107">107</Value>
            <Value DispLabel="108">108</Value>
            <Value DispLabel="109">109</Value>
            <Value DispLabel="110">110</Value>
            <Value DispLabel="111">111</Value>
            <Value DispLabel="112">112</Value>
            <Value DispLabel="113">113</Value>
            <Value DispLabel="114">114</Value>
            <Value DispLabel="115">115</Value>
            <Value DispLabel="116">116</Value>
            <Value DispLabel="117">117</Value>
            <Value DispLabel="118">118</Value>
            <Value DispLabel="119">119</Value>
            <Value DispLabel="120">120</Value>
            <Value DispLabel="121">121</Value>
            <Value DispLabel="122">122</Value>
            <Value DispLabel="123">123</Value>
            <Value DispLabel="124">124</Value>
            <Value DispLabel="125">125</Value>
            <Value DispLabel="126">126</Value>
            <Value DispLabel="127">127</Value>
            <Value DispLabel="128">128</Value>
            <Value DispLabel="129">129</Value>
            <Value DispLabel="130">130</Value>
            <Value DispLabel="131">131</Value>
            <Value DispLabel="132">132</Value>
            <Value DispLabel="133">133</Value>
            <Value DispLabel="134">134</Value>
            <Value DispLabel="135">135</Value>
            <Value DispLabel="136">136</Value>
            <Value DispLabel="137">137</Value>
            <Value DispLabel="138">138</Value>
            <Value DispLabel="139">139</Value>
            <Value DispLabel="140">140</Value>
            <Value DispLabel="141">141</Value>
            <Value DispLabel="142">142</Value>
            <Value DispLabel="143">143</Value>
            <Value DispLabel="144">144</Value>
            <Value DispLabel="145">145</Value>
            <Value DispLabel="146">146</Value>
            <Value DispLabel="147">147</Value>
            <Value DispLabel="148">148</Value>
            <Value DispLabel="149">149</Value>
            <Value DispLabel="150">150</Value>
            <Value DispLabel="151">151</Value>
            <Value DispLabel="152">152</Value>
            <Value DispLabel="153">153</Value>
            <Value DispLabel="154">154</Value>
            <Value DispLabel="155">155</Value>
            <Value DispLabel="156">156</Value>
            <Value DispLabel="157">157</Value>
            <Value DispLabel="158">158</Value>
            <Value DispLabel="159">159</Value>
            <Value DispLabel="160">160</Value>
            <Value DispLabel="161">161</Value>
            <Value DispLabel="162">162</Value>
            <Value DispLabel="163">163</Value>
            <Value DispLabel="164">164</Value>
            <Value DispLabel="165">165</Value>
            <Value DispLabel="166">166</Value>
            <Value DispLabel="167">167</Value>
            <Value DispLabel="168">168</Value>
            <Value DispLabel="169">169</Value>
            <Value DispLabel="170">170</Value>
            <Value DispLabel="171">171</Value>
            <Value DispLabel="172">172</Value>
            <Value DispLabel="173">173</Value>
            <Value DispLabel="174">174</Value>
            <Value DispLabel="175">175</Value>
            <Value DispLabel="176">176</Value>
            <Value DispLabel="177">177</Value>
            <Value DispLabel="178">178</Value>
            <Value DispLabel="179">179</Value>
            <Value DispLabel="180">180</Value>
            <Value DispLabel="181">181</Value>
            <Value DispLabel="182">182</Value>
            <Value DispLabel="183">183</Value>
            <Value DispLabel="184">184</Value>
            <Value DispLabel="185">185</Value>
            <Value DispLabel="186">186</Value>
            <Value DispLabel="187">187</Value>
            <Value DispLabel="188">188</Value>
            <Value DispLabel="189">189</Value>
            <Value DispLabel="190">190</Value>
            <Value DispLabel="191">191</Value>
            <Value DispLabel="192">192</Value>
            <Value DispLabel="193">193</Value>
            <Value DispLabel="194">194</Value>
            <Value DispLabel="195">195</Value>
            <Value DispLabel="196">196</Value>
            <Value DispLabel="197">197</Value>
            <Value DispLabel="198">198</Value>
            <Value DispLabel="199">199</Value>
            <Value DispLabel="200">200</Value>
            <Value DispLabel="201">201</Value>
            <Value DispLabel="202">202</Value>
            <Value DispLabel="203">203</Value>
            <Value DispLabel="204">204</Value>
            <Value DispLabel="205">205</Value>
            <Value DispLabel="206">206</Value>
            <Value DispLabel="207">207</Value>
            <Value DispLabel="208">208</Value>
            <Value DispLabel="209">209</Value>
            <Value DispLabel="210">210</Value>
            <Value DispLabel="211">211</Value>
            <Value DispLabel="212">212</Value>
            <Value DispLabel="213">213</Value>
            <Value DispLabel="214">214</Value>
            <Value DispLabel="215">215</Value>
            <Value DispLabel="216">216</Value>
            <Value DispLabel="217">217</Value>
            <Value DispLabel="218">218</Value>
            <Value DispLabel="219">219</Value>
            <Value DispLabel="220">220</Value>
            <Value DispLabel="221">221</Value>
            <Value DispLabel="222">222</Value>
            <Value DispLabel="223">223</Value>
            <Value DispLabel="224">224</Value>
            <Value DispLabel="225">225</Value>
            <Value DispLabel="226">226</Value>
            <Value DispLabel="227">227</Value>
            <Value DispLabel="228">228</Value>
            <Value DispLabel="229">229</Value>
            <Value DispLabel="230">230</Value>
            <Value DispLabel="231">231</Value>
            <Value DispLabel="232">232</Value>
            <Value DispLabel="233">233</Value>
            <Value DispLabel="234">234</Value>
            <Value DispLabel="235">235</Value>
            <Value DispLabel="236">236</Value>
            <Value DispLabel="237">237</Value>
            <Value DispLabel="238">238</Value>
            <Value DispLabel="239">239</Value>
            <Value DispLabel="240">240</Value>
            <Value DispLabel="241">241</Value>
            <Value DispLabel="242">242</Value>
            <Value DispLabel="243">243</Value>
            <Value DispLabel="244">244</Value>
            <Value DispLabel="245">245</Value>
            <Value DispLabel="246">246</Value>
            <Value DispLabel="247">247</Value>
            <Value DispLabel="248">248</Value>
            <Value DispLabel="249">249</Value>
            <Value DispLabel="250">250</Value>
            <Value DispLabel="251">251</Value>
            <Value DispLabel="252">252</Value>
            <Value DispLabel="253">253</Value>
            <Value DispLabel="254">254</Value>
            <Value DispLabel="255">255</Value>
          </Values>
          <Default>255</Default>
        </MultiVal>


My bet is that the problem is in the SkinInfo, we're missing something or something's not documented.

Meanwhile, why don't you try RadioControls with CustomLook?
RE: help for SliderControl by dada24300 on 03-13-2011 at 05:32 PM

thank you for your help, it's very nice.

I already tried that too

for now I use a ComboBoxControl, but slidercontrol is more practical. lol


RE: RE: help for SliderControl by felipEx on 03-13-2011 at 07:33 PM

quote:
Originally posted by blessedguy

My bet is that the problem is in the SkinInfo, we're missing something or something's not documented.

Meanwhile, why don't you try RadioControls with CustomLook?
AFAIK, It's not supported yet... I've already suggested support for SliderControl (on May 2009) after testing Stealth skin and noticed LuckyMe was using RadioControls with CustomLook to get slidercontrol's behavior :P

However I didn't bump the thread in which Patchou said he will add in v5 but hey Patchou's not in charge of Plus! anymore :zippy:
RE: help for SliderControl by blessedguy on 03-13-2011 at 09:04 PM

quote:
Originally posted by felipEx
I've already suggested support for SliderControl
Yuna [Jieff, totonf, Apatik], feel suggested to implement it (A)
RE: help for SliderControl by dada24300 on 03-15-2011 at 07:52 PM

thank you for these explanations.
hoping that integrates someday so.