Focus facade by c# (1 Viewer)

realmatrix

Portal Pro
February 6, 2008
91
11
i tried to focus an element by the code.

facade.FilmstripView.Focus = true;

the element looks like it is focuses but the focus is somewhere else,
because the elements can't be controled by move left / move right.

what am i doing wrong?

greets.
 

realmatrix

Portal Pro
February 6, 2008
91
11
ok. i got the solution.

if you set focus to an GUIObject, don't forget to remove the focus from the object which had the focus before.

facade1.FilmstripView.Focus = false;
facade1.FilmstripView.Visible = false;
facade2.FilmstripView.Visible = true;
facade3.FilmstripView.Focus = true;

good luck to all and happy codeing. :)

greets.
 

Users who are viewing this thread

Top Bottom