openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amenel VOGLOZIN <>
Subject Re: [EXT][UI] Static text hyperlink in a dialog
Date Mon, 17 Nov 2014 18:26:05 GMT
Thanks Bernard,

I've got it working! :-D

For whoever comes across this after a search, it is worth noting that the hand pointer and
the target link appearing in the tooltip are both provided by UnoControlFixedHyperlinkModel.
However, the desired color has to be defined. And at this moment right-aligned text (whether
UnoControlFixedTextModel or UnoControlFixedHyperlinkModel) is clipped of 1 pixel (on Windows

Best regards,

 De : Bernard Marcelly <>
À : 
Envoyé le : Lundi 17 novembre 2014 17h37
Objet : Re: [EXT][UI] Static text hyperlink in a dialog


Since version 3.3 there is a control called FixedHyperlink.
However it is not available in the palette of controls in the IDE. So you have 
to insert it by program.
Suppose your dialog is in variable dlg.

Dim dlg As Object
Dim fhm As Object

dlg = CreateUnoDialog(.....)

fhm = dlg.Model.createInstance("")
With fhm
   .Name = "Hyperlink1"
   .PositionX = 10
   .PositionY = 10
   .Width = 50
   .Height = 15
   .Label = "Apache OpenOffice"
   .URL = ""
End With
dlg.Model.insertByName(fhm.Name, fhm)


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message