openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schmidt <joe...@j-m-schmidt.de>
Subject Re: Disable underline - UnoControlFixedHyperlinkModel
Date Fri, 24 Apr 2015 06:25:47 GMT
Hello,

> From: Bernard Marcelly [mailto:marcelly@club-internet.fr] 
> Sent: Thursday, April 23, 2015 3:24 PM
> To: api@openoffice.apache.org
> Subject: Re: Disable underline - UnoControlFixedHyperlinkModel
> 
> Hi Jörg,
> That's the usual problem of a structure inside a structure : 
> you must use a 
> temporary variable.
> 
> Dim fd As Object
> 
> With fhm
>    ' ....
>    fd = .FontDescriptor
>    fd.Underline = com.sun.star.awt.FontUnderline.NONE
>    .FontDescriptor = fd
> End With
> 
> Remark : there is a side effect, the text color is now black. 
> If you want to 
> color the text, add this instruction:
> 
>    .TextColor = RGB(0,0,250)

works fine, thank you


Greetings,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscribe@openoffice.apache.org
For additional commands, e-mail: api-help@openoffice.apache.org


Mime
View raw message