Shoutbox

[split] Help with About boxes - 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: [split] Help with About boxes (/showthread.php?tid=82515)

RE: Messenger Plus! Live 4.60 is out by stuartbennett on 03-20-2008 at 08:54 PM

quote:
Originally posted by Patchou
Skin auto-updating is scheduled for the next version.

As for the documentation, if you see no change, get it again from the server. The Schema's documentation should include a "Fonts" element on the root (I had wrongly updated the file the day of the update).

You are right though, I should add more information to the documentaiton. I'm counting on the new tutorials section of the skin's database to fil lthe gaps. For the About Boxes: just create another window in the file you specified in <InterfaceFile>. You can find some more information about that in the documentation, "Options for Advanced Users" section, bottom of the page.

i tried creating another window in the same file however as soon as i do so my entire custom options panel becomes invalidated as theres no schema for making the about box so the file is considered invalid, a new interfaces schema has to be writen as theres nothing in the documentation about correct syntax for building an about box, alternatively patch could you write up a tutorial on the forum for making these not possible to make about boxes.

quote:
Originally posted by skinning documentation

In Messenger Plus! 4.60 and above, the AboutWnd id can be used to add a button linking to your own customized about box. When the control is clicked, Messenger Plus! searches for the id of an about box defined in your skininfo in <AboutIds>. About box windows are defined like option windows and are associated to a language to allow localization. Example:

<AboutIds>
    <AboutId Language="en-us">SkinAbout</AboutId>
</AboutIds>
Finally, the AboutUrl id can be used to add a button linking to your web site (as specified in the <Information> block). Other link controls in the window are analyzed for possible url recognition. If the caption of a link control contains no space and begins with either "http://" or "https://", the corresponding address is automatically opened in the default web browser when the control is clicked. Any other control with any other id won't be associated to your properties and will only serve as decoration. Here is the interface code that was used to associate the two properties of Test Skin Revisited to the interface shown in the screenshot:


thats all there is regarding about boxes and nothing about making them or how to access them once created.
RE: Messenger Plus! Live 4.60 is out by Patchou on 03-20-2008 at 09:19 PM

About boxes are the same as other windows, the current Interface Schema is all you need. Please create a thread in the Skins section and attach your xml file to it, I'll check what's wrong.

And yes, I'll have to write more about these.


RE: Messenger Plus! Live 4.60 is out by stuartbennett on 03-20-2008 at 09:54 PM

ok patchou, after a few hours of trial and error i think i have now got it working, sorry for being so grouchy, its just when your told something can now be done and you cant get it to work and very little information about it it gets kinda frustrating, i hope i didnt offend you in any way patchou.

EDIT:

i have created a nice about box now however theres one problem, i can't open it, yes if i use interface tester i can see it and see everythings ok, however theres no way for my users to get into it so how do i let them access it?

[Image: AboutBox.png]


RE: RE: Messenger Plus! Live 4.60 is out by Willz on 03-21-2008 at 04:22 AM

quote:
Originally posted by stuartbennett
ok patchou, after a few hours of trial and error i think i have now got it working, sorry for being so grouchy, its just when your told something can now be done and you cant get it to work and very little information about it it gets kinda frustrating, i hope i didnt offend you in any way patchou.

EDIT:

i have created a nice about box now however theres one problem, i can't open it, yes if i use interface tester i can see it and see everythings ok, however theres no way for my users to get into it so how do i let them access it?

[Image: AboutBox.png]


Add this code to your options panel.

<Control xsi:type="ButtonControl" Id="AboutWnd">
                <Position Top="5" Width="50" Left="5"/>               
        <Caption>About</Caption>
  </Control>
RE: Messenger Plus! Live 4.60 is out by stuartbennett on 03-21-2008 at 06:25 AM

willz i added that code but it doesnt do anything when you click on it.

quote:
Originally posted by 365 options file

            <Control xsi:type="ButtonControl" Id="AboutWnd">
                <Position Top="5" Width="50" Left="410"></Position>
                <Caption>About</Caption>
            </Control>


patchou, sorry about that i didnt see that first bit about th buttoncontrol however as stated above its not working when i click the button and cannot figure out why.
RE: RE: Messenger Plus! Live 4.60 is out by Willz on 03-21-2008 at 06:39 AM

quote:
Originally posted by stuartbennett
willz i added that code but it doesnt do anything when you click on it.

quote:
Originally posted by 365 options file

            <Control xsi:type="ButtonControl" Id="AboutWnd">
                <Position Top="5" Width="50" Left="410"></Position>
                <Caption>About</Caption>
            </Control>



You need to make sure your skininfo is set up

<WindowIds>
                <WindowId Language="en-us">SkinOpt</WindowId>               
               </WindowIds>
               <AboutIds>
                   <AboutId Language="en-us">AboutWnd</AboutId>   
               </AboutIds>

the about windows code should be in the same file as your skin options and the about window should have an id of "AboutWnd"
RE: Messenger Plus! Live 4.60 is out by stuartbennett on 03-21-2008 at 07:17 AM

tried that and still it doesnt work


365 Skin - Latest Beta


heres the skin pack so you can try and debug the issue.


RE: [split] Help with About boxes by Basilis on 03-21-2008 at 05:52 PM

Sorry to ask but I think this is not completely out of topic. Can we have two about boxes?


RE: [split] Help with About boxes by blessedguy on 03-21-2008 at 05:55 PM

I think yes..since they are not with the same id...

P.s.: Has someone already got the aboutwindow to work?!?!


RE: [split] Help with About boxes by Lou on 03-21-2008 at 06:00 PM

quote:
Originally posted by blessedguy
I think yes..since they are not with the same id...

P.s.: Has someone already got the aboutwindow to work?!?!
Willz has gotten it to work, and I confirm that it's perfect:P.
RE: [split] Help with About boxes by duck! on 03-21-2008 at 06:05 PM

quote:
Originally posted by blessedguy
I think yes..since they are not with the same id...

P.s.: Has someone already got the aboutwindow to work?!?!
I've got it to work :P


EDIT: SB, I'll look at your skin now
RE: [split] Help with About boxes by stuartbennett on 03-21-2008 at 06:06 PM

i have a working about window in the sense that it can be viewed by interface tester but no way to let anyone actually access it as yet, hence the reason for this thread.

duck how did you get the window to display?


RE: [split] Help with About boxes by blessedguy on 03-21-2008 at 06:07 PM

geez!!!
everyone can except me!!
my window is almost done, the code is alright...but it doesn't open!!!
only with the tester...


RE: [split] Help with About boxes by stuartbennett on 03-21-2008 at 06:27 PM

quote:
Originally posted by blessedguy
geez!!!
everyone can except me!!
my window is almost done, the code is alright...but it doesn't open!!!
only with the tester...

thats the same problem im getting i can view it in the tester but cannot make a functional button to give people acess to it.

EDIT:

duck just sent me the solution, the About Box is bound by the same limitations as the options panel so the only way it will work outside of the tester is by setting it to a childtmpl instead of a dialogtmpl then it will work.
RE: [split] Help with About boxes by Basilis on 03-21-2008 at 07:19 PM

Stuart, could you please post what exactly has to be done in order to create an about window? Only if you have time or wanting to. :)


RE: [split] Help with About boxes by blessedguy on 03-21-2008 at 07:38 PM

WORKED!!!!!!
HALLELUIAH!!!

there was a mispelling error at the skin info...instead of AboutWnd it was AboutWdn...also...the about window HAS TO BE A CHILD TEMPLATE OR IT WON'T WORK, in another words, it has to begin with:

code:
<Window Id="AboutWnd" Version="1">
<Position Width="370" Height="300"></Position>
<ChildTmpl/>
<Elements>

....

</Elements>
<Controls>

...
</Controls>
</Window>


RE: [split] Help with About boxes by Basilis on 03-21-2008 at 07:58 PM

Ok. I found myself. It was some mistake I made


RE: [split] Help with About boxes by blessedguy on 03-21-2008 at 08:01 PM

yeah...we've got to be careful...imagine...
this looooong thread just because of a mispelling!!!


RE: [split] Help with About boxes by Basilis on 03-21-2008 at 08:22 PM

I checked it and I think you can have only one about window. Anyone else willing to check it in order to be sure? Should we ask Patchou?


RE: [split] Help with About boxes by stuartbennett on 03-21-2008 at 09:28 PM

i would ask pathou to be sure, i will happily make a tut on about boxes, ill write it tomorrow and post it to forum.


RE: [split] Help with About boxes by blessedguy on 03-21-2008 at 09:32 PM

quote:
Originally posted by Basilis
I checked it and I think you can have only one about window. Anyone else willing to check it in order to be sure? Should we ask Patchou?
I tried adding a second one and didn't really go...I don't thing it is possible...YET
@Patchou: why don't you add a "create windows" feature?? it would solve our problems...

Well...while we can create only one...lets just try to fit every little thing we need!
RE: [split] Help with About boxes by stuartbennett on 03-21-2008 at 09:43 PM

why would we need 2 about boxes, i had 2 developers in addition to myself and jason to credit on my skin and it all fitted nicely i even added the uk skins united logo and blessedguys logo to represent his credit in addition to the text credit.

it is a shame that the about box had to be a child template though.


RE: [split] Help with About boxes by Patchou on 03-22-2008 at 12:08 AM

Well, you can only have one about box for one language. This means that you cna create multiple copies of yoru about box with different ids to display a different box for different languages but that's it (exactly like for the preferences window).

The reason for the child templates is to make it easier for you: much less restrictions like that and you let Plus! take care of the details. This way, you avoid a lot of possible errors.


RE: [split] Help with About boxes by blessedguy on 03-22-2008 at 12:19 AM

quote:
Originally posted by Patchou
The reason for the child templates is to make it easier for you: much less restrictions like that and you let Plus! take care of the details. This way, you avoid a lot of possible errors.
I don't know much about plus interfaces (just that when I edited them I !#$%&¬! with plus), but you could at least have written that we needed to use child templates...well...telling or not...

°º° PLUS 4.60 IS MARVELLOUS!! °º° :D

Oh, a question that even made me delay my next release: people with Msg Plus! 4.50 will have problems when importing skins that uses Msg 4.60 features (like about box)?

RE: [split] Help with About boxes by Nagamasa on 03-22-2008 at 02:12 AM

quote:
Originally posted by blessedguy
Oh, a question that even made me delay my next release: people with Msg Plus! 4.50 will have problems when importing skins that uses Msg 4.60 features (like about box)?
Yes it will, as the <SkinInfo Version="2"> will lock them out of your skin anyhow.
RE: [split] Help with About boxes by stuartbennett on 03-22-2008 at 08:15 AM

well things like auto theme through the date rang you just create different resgroups for but yes if you use an about box how will that affect 4.50 users will it result in them just not being able to access it or will it prevent the skin from being imported.

if it prevents the skin from being imported then a future upgrade to resolve this is put a restrictions tag on the optioninterfaces section of skininfo that way you have one version of your skin options panel with about box button etc for your 4.6 and above users and a seperate version of the skin options panel without that button for your 4.5 users that way if they are running 4.5 that restriction group wont have any aboutids so wont prevent you from running the skin but of course this doesnt exist yet but perhaps could be a feature suggestion for maybe a small refresh that patchou could release to solve the issue.


RE: [split] Help with About boxes by blessedguy on 03-22-2008 at 12:35 PM

Ok...so I'll add restricticons...
Ty guys!!


RE: [split] Help with About boxes by stuartbennett on 03-22-2008 at 01:13 PM

quote:
Originally posted by blessedguy
Ok...so I'll add restricticons...
Ty guys!!

that will work for date range stuff but wont solve the about box problem as far as i know as restrictions dont exist in optioninterface.
RE: [split] Help with About boxes by blessedguy on 03-22-2008 at 01:21 PM

i thought about adding a restriction that would block the hole skin if there wasn't Plus! 4.60...


RE: [split] Help with About boxes by Nagamasa on 03-22-2008 at 01:22 PM

quote:
Originally posted by Willz
well the issue is the Version="2" attribute prevents the skin from being loaded in anything prior to 4.60, i had a talk to patch about this before release as I wanted him to add PlusVersion restrictions in the information section of a skin (which currently does not exist) so that I could specify what versions of Plus! my skins were compatible with and yeah he said that that attribute should be enough.

If you want compatibility with both just don't add the Version="2" attribute. But make sure you haven't used any 4.60 feature on it or it will break under 4.50.

I think looking in the T&T would've saved quite a few pids :P

RE: [split] Help with About boxes by blessedguy on 03-22-2008 at 01:31 PM

ok..so then it would be like this:

code:
<SkinInfo xmlns="urn:msgplus:skins"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:skins PlusSkins.xsd" Version="2">


wouldn't it?

(p.s.: I just want to block Plus! versions below 4.60)
RE: [split] Help with About boxes by stuartbennett on 03-22-2008 at 03:10 PM

i guess ill probably do the same.


RE: [split] Help with About boxes by blessedguy on 03-22-2008 at 03:36 PM

i think everyone should do it...but also warn that the skin woild only work with Plus! 4.60 and above...


RE: [split] Help with About boxes by stuartbennett on 03-22-2008 at 03:59 PM

yes i agree.