View Single Post
  #1375  
Old 02-03-2012, 11:36 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by ffcmike View Post
It seems as if no matter what server you log on, whether there are any scripted GUI controls or not, after opening the client for the first time GraalControl is unfocussed and you can't move until you click the screen, even happens when I attempt to force focus once everything has initialized.
This wouldn't be a problem for the vast majority of players, but in terms of someone logging on for the first time you never know, might not occur to them.
I managed to fix this with a combination of using Chris Vimes solution:

Quote:
Originally Posted by cbk1994 View Post
PHP Code:
function onFirstResponderChanges(temp.obj) {
  if (
temp.obj.dontStealFocus) {
    
this.lastResponder.makeFirstResponder(true);
  } else {
    
this.lastResponder temp.obj;
  }

Then you could just set dontStealFocus on any GUI control and it wouldn't steal focus.
plus:

PHP Code:
ChatBar_ToggleTaskBarButton.dontstealfocus true;
DownloadProgress_CloseButton.dontstealfocus true
and then upon all systems initializing, manually setting focus to GraalControl or whatever object should have focus via:

PHP Code:
obj.makeFirstResponder(true); 
Reply With Quote