Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Window is inactive and the buttons appear to be active  (Read 2293 times)

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 195
    • View Profile
Window is inactive and the buttons appear to be active
« on: January 24, 2014, 03:34:43 PM »

My desire is that when a window is inactive it changes colour, this I can achieve very simply by changing the window inactive image, however I also want all of the buttons to change colour too, so that I can emphasise the inactive state. I can do this programmatically by setting each button to it's disabled state, and then when the window is active by a reversal of the process. Is there any neater way to achieve the same state ?
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Window is inactive and the buttons appear to be active
« Reply #1 on: January 24, 2014, 10:37:26 PM »

It seems that the answer is - no. But the way you described is quite good, considering the fact that it takes (in theory) are just a few lines of code:

[code=script]method DisableControls()
{
  for (var i=0; i<this.NumControls; i=i+1)
  {
    var
« Last Edit: January 24, 2014, 10:40:54 PM by 2.0 »
Logged

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 195
    • View Profile
Re: Window is inactive and the buttons appear to be active
« Reply #2 on: January 25, 2014, 12:51:45 AM »

Thanks thought that was probably the case, neatly coded solution to.
Logged
 

Page created in 0.026 seconds with 20 queries.