Re: Luxor, Cypress and CSS

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Servus Stephan,

  I'm currently on the road on my way back to
Vancouver, BC so answers might be forthcoming slower
than usual.

> thanks for your answer to my last question
> concerning Luxor and Java Beans.
> I found out that componentref/gadget is just perfect
> for my needs.

 Great. I forgot to mention it. It sure is somewhat
easier.

> I am currently writing my dissertation in computer
> science about Luxor. It
> is an evaluation stating whether Luxor is suitable
> for the already existing
> "StarOffice4Kids" project at the university of
> Paderborn. The project uses
> Mozilla-XUL for creating the user interface (and
> therefore is restricted to
> the Mozilla browser). So I have to show that the UI
> can completely be
> realized with Luxor.

  Whow. Fantastic. If there any missing pieces you are
more than welcome to contribute. You can always fall
back to plain-vanilla Java, but it should become a
habit.

> My problem now is to style some toolbar buttons
> using style sheets. The
> buttons should change the icon when the mouse
> pointer is positioned over
> them. I have looked for a suitable Cypress example
> but found none. So I hope
> you can help me. Below is the Mozilla-XUL sample
> code (toolbar.xul,
> toolbarbuttons.css and buttons.css).

  I suggest adding custom XML properties to your
button to specify rollover icons and so on.

  If you don't want to touch the kernel code, you can
always create your own button tag plug-in.

  I think using CSS for rollover icons is somewhat a
stretch as it looks rather complex.

  Luxor currently supports only inline CSS style
properties (although the parser can also handle
stand-alone stylesheets).

  - Gerald

PS:

>      <toolbarbutton
>        id="italic-button"
>        icon="ITALIC"
>        command="DecreaseFontAction"
>        tooltip="Schrift verkleinern" />

  How about?    rollovericon="ITALIC-ACTIVE"
  or something to that effect.



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.