Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

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

0 Members and 1 Guest are viewing this topic.

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • 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: 196
    • 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.02 seconds with 21 queries.