Reply to thread

I found somewhat of a way, but it only works in full screen I use the following code:


public override void OnAction(MediaPortal.GUI.Library.Action action)

        {

            if (btnFirstContactA_M.Visible == false && PreviousFocusedId >= 2 && PreviousFocusedId <= 14)

            {

                if (action.wID == MediaPortal.GUI.Library.Action.ActionType.ACTION_MOVE_RIGHT)

                {       


                    int nextcontrolid = PreviousFocusedId + 1;


                    switch (nextcontrolid)

                    {                      

                        case 3:

                            Cursor.Position = new Point(btnB._positionX, btnB._positionY);

                            break;

                        case 4:

                            Cursor.Position = new Point(btnC._positionX, btnC._positionY);

                            break;

                        case 5:

                            Cursor.Position = new Point(btnD._positionX, btnD._positionY);

                            break;

etc........



cursor.hide();

return;

}



The problem is when you aren't in full screen the _positionX and _positionY of the buttons aren't correct.  Any ideas to help out think I am ready to release MyRolodex if anyone is interested will be posting sometime over the next couple days maybe sooner.  Check it out.



Thanks


Top Bottom