![]() |
Buttons taking the focus
I can't seem to figure out how to make GuiButtonCtrl's not take the focus. Whenever you login or when the script is updated on my main gui the buttons take the focus, forcing you to spam your keyboard with tab and arrow keys to be able to talk again. I've tried everything I could think of. I've set the profiles to have cankeyfocus=false, I've tried makeFirstResponder(), both true and false, and I've tried closequery=true.
Any suggestions? And, on a rather unrelated note, is there a way to use the players gui style for gui controls? |
Try GraalControl.makefirstresponder(true);
|
Quote:
|
PHP Code:
|
Ah, I did something similar to that and it worked, thanks.
But, yeah, I don't suppose it's possible to read the players current gui style and use it in GUI Controls, is it? |
GuiControlObject.style = $pref::video::defaultguistyle;
If its not done automatically, which it should be unless style == "" |
The button profiles need to have the following (either with useownprofile = true or having profile = a profile with these):
PHP Code:
|
I found that when the Graal taskbar is hidden, then there are much less problems with gui controls taking focus. Not sure if that is an issue with the client or not.
|
Normally you just set
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
| All times are GMT +2. The time now is 01:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.