|
yelayon Novice
Joined: 15 Mar 2005 Posts: 42
|
Posted: Wed Jun 17, 2009 10:36 am
[3.08] Multistate button - losing focus? |
I've defined m-s-button like:
Code: |
<button type="Multistate" variable="corpseBtnState" autosize="false" width="90" height="18" autopos="false" left="-1" top="19" color="black" textcolor="#FFCC00" priority="132" id="8940">
<caption>C: absorb</caption>
<button color="black" textcolor="#FFCC00" id="9008">
<caption>C: absorb</caption>
</button>
<button color="black" textcolor="#FFCC00" id="9041">
<caption>C: take</caption>
</button>
<button color="black" textcolor="#FFCC00" id="9047">
<caption>C: compact</caption>
</button>
<button color="black" textcolor="#FFCC00" id="9048">
<caption>C: biomatter</caption>
</button>
<button color="black" textcolor="#FFCC00" id="9051">
<caption>C: salvage</caption>
</button>
<button color="black" textcolor="#FFCC00" id="15332">
<caption>C: none</caption>
</button>
</button> |
When I click on it the avaible states are showed. Wait a moment and let few lines of mud output to show and few triggers to execute (for me it is 1 fight round when few triggers and aliases are executed). You will lose focus on button's menu (i.e. onmouseover you won't notice changing background of menu item) and when you click on one of states... it doesn't change. |
|
_________________ Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jun 17, 2009 3:19 pm |
I'll add this to the bug list, but it might be difficult to fix. If Windows gives keyboard/mouse focus back to the command line because of some script being run, then the button menu will lose focus.
Many applications lock the mouse region to the area of the popup menu to prevent these problems, but with script running in the background I obviously didn't want to restrict the mouse movement just because you clicked on a button.
But I'll see what I can do. It just depends upon whether it's something in Windows that I have control over or not. |
|
|
|
|
|