[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RISC. underline t:link text  XML
Forum Index -> Development
Author Message
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn

Setting in t:link the font attribute to underline:true is not effective with RISC. Please compare the screen shots attached.

As a workaround to maintain visual signification of link, I have added a link icon.

Is it possible to support underlining t:link text in RISC?

Kind regards, Daniel
 Filename swing.PNG [Disk] Download
 Description underline:true is effective with Swing
 Filesize 2 Kbytes
 Downloaded:  3 time(s)

 Filename risc.PNG [Disk] Download
 Description underline:true is not effective with RISC
 Filesize 2 Kbytes
 Downloaded:  2 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5538
Offline

... in RISC this is done through the style, so you can set up some own style and extend/add a corresponding link-style:

The default definition is...
Code:
     <class n="risclink" extends="riscbutton">
         <var n="@buttonMargin@" v="0 0 0 0"/>
         <var n="@buttonBoxShadow@" v="none"/>
         <var n="@buttonBackground@" v="transparent"/>
         <risc n="border" v="0 0 0 0"/>
         <risc n="inset" v="2 0 2 0"/>
         <style n="border" v="0px solid #c0c0c0"/>
         <class n=":hover > .riscelement">
             <style n="text-decoration" v="underline"/>
         </class>
     </class>
 


...so the hovering is the one to trigger the underlining.

Because we are such nice guys, we introduced a style variant"alwaysunderline" for the link ;-). Will be available with next update.

Regards, Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn,

Thank you very much for solving this issue.

Yes, definitely you are very nice guys

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5538
Offline

Haha! ;-) - Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team