im looking for a 'method'
#1
i wonder if anybody can help me out  
im looking for a way/method to change elements of a control  
for example to change the co-ordinates <top>,<left> and size <height>,<width> etc. of a control  
<left>...</left>  
<top>...</top>  
<height>...</height>  
<width>...</width>  
so lets say the above is for the widgets  
i need a way so if i click a button - each click would put a different number in between the tags  
for example  
click once           click twice  
<left>55</left> <left>70</left>  
<top>55</top> <top>90</top>  
etc. etc.  
does anyone know of a method or even if this is possible.  
the ultimate aim is to allow peeps to just click on a button and re-position and/or re-size certain elements of a skin.
Reply
#2
look at SkinSettings.xml

<control type="button" id="607">
                    <label>$LOCALIZE[31156]</label>
                    <label2>$VAR[BackgroundOverlayTypeVar]</label2>
                    <include>DefaultSettingButton</include>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),7)">Skin.SetString(background_overlay,0)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),6)">Skin.SetString(background_overlay,7)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),5)">Skin.SetString(background_overlay,6)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),4)">Skin.SetString(background_overlay,5)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),3)">Skin.SetString(background_overlay,4)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),2)">Skin.SetString(background_overlay,3)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),1)">Skin.SetString(background_overlay,2)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(background_overlay),0)">Skin.SetString(background_overlay,1)</onclick>
                </control>

click once           click twice  
<left>55</left> <left>70</left>  
<top>55</top> <top>90</top>  
etc. etc.  
Skin.SetString(button4,45)
<left>$INFO[Skin.String(button4)]</left>
have used this to do things like that
<control type="button" id="168">
                    <width>1400</width>
                    <label>   widget type</label>
                    <label2>$INFO[Skin.String(skinsearch_art_widget4)]</label2>
                    <include>DefaultSettingButton</include>
                    <onclick condition="String.IsEmpty(skinsearch_art_widget4)">Skin.SetString(skinsearch_art_widget4,WidgetListPoster)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(skinsearch_art_widget4),muti_widget)">Skin.SetString(skinsearch_art_widget4,WidgetListPoster)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(skinsearch_art_widget4),WidgetListPoster)">Skin.SetString(skinsearch_art_widget4,WidgetListEpisodes)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(skinsearch_art_widget4),WidgetListEpisodes)">Skin.SetString(skinsearch_art_widget4,muti_widget_large)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(skinsearch_art_widget4),muti_widget_large)">Skin.SetString(skinsearch_art_widget4,WidgetListprime)</onclick>
                    <onclick condition="String.IsEqual(Skin.String(skinsearch_art_widget4),WidgetListprime)">Skin.SetString(skinsearch_art_widget4,muti_widget)</onclick>
                </control>
“You are going to a criminally dangerous neighbourhood. Pirate sites are big businesses and exist solely to make money by robbing you, or worse. This is your cyber security is in danger and malware, blackmail and identity theft is common place.”
Reply
#3
thank you
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
im looking for a 'method'00
This forum uses Lukasz Tkacz MyBB addons.