Badubo we need your skills.....XmoveWindow with XL V3

V3 help and support questions

Re: Badubo we need your skills.....XmoveWindow with XL V3

Postby smarty on Thu Mar 26, 2009 2:51 pm

From us non-code literate folks, I wish to say THANK YOU ALL :D for your contributions!
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Re: Badubo we need your skills.....XmoveWindow with XL V3

Postby lar282 on Thu Mar 26, 2009 2:58 pm

here we go:
http://www.xlobby.com/files/Shaggy/xmovewindow/XMoveWindow.dll

There is one thing to look out for. Xl V3 handles screen res differently. So basically your screen res must be the same as your skin. Just open one of the xml files in your skin and look at the top and you will know what I mean.
DO NOT CHANGE this without having a full backup of your skin.

I change only this in the code:
Code: Select all
   public bool SetScreen(string Name)
            {
                if (Name == this.Screen)
                {
                    return true;
                }




// str2 = string.Concat(new object[] { button.rect.X, ":", button.rect.Y, ":", button.rect.Width, ":", button.rect.Height });
              //  string command = string.Format("buttonsize:{0}_{1}", Name, this.strName);
              //  string strPos = xhelper.SendCommand(command);

                XPluginSDK.Button xbutton = null;
                string command = string.Format("{0}_{1}", Name, this.strName);
                xbutton = xhelper.GetButton(command);
                int x = -666;
                 x = xbutton.GetX();
               
                int y = xbutton.GetY();
                int Cw = xbutton.GetWidth();
                int Ch = xbutton.GetHeight();
               
                string strPos = string.Concat(new object[] { x, ":", y, ":", Cw, ":", Ch });
              //  Logging.Log.Write(strPos);
                //  250:100:406:278
                // real size in XLEventArgs  250 200 100 200
                if (x!=-666)
                {
                    this.wpos = new Winposition(strPos);
                    this.InScreen = true;
                    return true;
                }
                this.Screen = Name;
                this.InScreen = false;
                return false;
            }
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Previous