Going Mad with ActivateWindow and new skinner page
#1
Hi,

I try to create a new page in the PM3-HD skin :
To do a simple try, I just made a copy of "MyScript.xml" file that I have renamed as "MyTry.xml"
According to this wiki link, I JUST have changed the ID to use a free one. I choosed "10504".

So top of my "MyTry.xml" file is :
Code:
<window id="10504">
    <defaultcontrol always="true">50</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <controls>
        <include>CommonBackground</include>
        <control type="group">

I made a button to link to this page as a first try. So, somewhere else, I have created a simple button with this code :
Code:
<control type="button">
    <description>Call the MyTry page</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>1300</width>
    <height>700</height>
    <onclick>ActivateWindow(504)</onclick>
</control>

But it NEVER call the "MyTry" page. According to wiki, I tried several ways :

<onclick>ActivateWindow(504)</onclick> ---- does nothing
<onclick>ActivateWindow(10504)</onclick>---- does nothing
<onclick>ActivateWindow(MyTry.xml)</onclick>---- does nothing
<onclick>ActivateWindow(MyTry)</onclick>---- does nothing
<onclick>ActivateWindow(Custom6.xml)</onclick>---- does nothing
<onclick>ActivateWindow(Custom6)</onclick>---- does nothing

I also tried, according to this wiki link, the given example (IE : <id>4567</id>)

I also tried to define in "Includes.xml" the new page. But it never calls this f%=@&k page !


So I made another try, I changed to "ActivateWindow(504)"
And of course, it calls the correspoding page : MyMusic.xml page


I probably forgot to define something somewhere but what ? Huh

Any help would be really appreciated

Thank you in advance
Reply
#2
put the windowid = 504, the 10k addition is something we do internally (and i realize it can be quite confusing). pm3.hd serves perfectly as a template (Custom1111_SkinSettings.xml)
Reply
#3
spiff Wrote:put the windowid = 504, the 10k addition is something we do internally (and i realize it can be quite confusing). pm3.hd serves perfectly as a template (Custom1111_SkinSettings.xml)

Thank you, it's working Big Grin

Here is the complete solution, just in case it helps somebody else in the future :
Top of "MyTry.xml"
Code:
<window id="504">
    <defaultcontrol always="true">50</defaultcontrol>
    <allowoverlay>no</allowoverlay>
    <controls>
        <include>CommonBackground</include>
        <control type="group">

And the button to call it :
Code:
<control type="button">
    <description>Call the MyTry page</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>1300</width>
    <height>700</height>
    <onclick>ActivateWindow(504)</onclick>
</control>
Reply

Logout Mark Read Team Forum Stats Members Help
Going Mad with ActivateWindow and new skinner page0