DomAPI Home
DomAPI
Build: 4.0
Topic: Window Caption background image

  Philippe PIERRE registered v4 wrote on Tuesday 4/1/08 at 12:58 AM (PST)  
 

Hi,

I have seen in the theme how to change the window caption color but I would like to add a backgound image in this caption (small gradient picture with the repeat property in order to have a look as XP and not just a flat caption)
And I don't know how to do that !

Is this possible and how ?

Thanks

Philippe PIERRE

 
    RSS feed of forum  
  Darin Kadrioski registered v4 wrote on Thursday 4/3/08 at 5:53 PM (PST)  
 

For affecting all windows, a piece of cake -- just include this CSS somewhere:

.DA_WINDOW .DA_LABEL td{
  background: url(/img/gradient.png) 0 0 repeat;
}


However if you have multiple windows and need to show a separate background image for dimmed Windows, then things become complicated. At that point you're better off using the onactivate/ondeactivate events to manually set the background. See the setActive() method in window.js for more insight.

HTH
Darin Kadrioski Darin Kadrioski
support@domapi.com

 
    RSS feed of forum  
  Philippe PIERRE registered v4 wrote on Friday 4/4/08 at 6:23 AM (PST)  
 


Cool, it works very well

If I can ask advises again, (I have quite some problem to find how to do with themes), how could I remove the backgroung image when the windows is not selected ?
In fact, I'd like to do as default. (A color when the windows is selected and another color when not selected) but this time only with the background image. (may be what you say about onactivate/ondeactivate events ? - not sure to understand...)

And more, is it possible to remove the caption border and how ?
I have seen the syntax for the window border but not caption border ...

Thanks,

Philippe PIERRE

 
    RSS feed of forum  
You could respond to this post if you were logged in.
DHTML by www.domapi.com