Ich möchte in einer Dialogbox einen Link einfügen, was auch klappt mit der Methode unten, aber der Statische Text (der ziemlich lang ist) wird nicht automatisch umgebrochen, d.h. das Pop-up Fenster wird riesig (in der Breite). Wie krieg ich es hin, dass das Fenster eine vorgegebene Höhe und Breite hat und der Text automatisch umgebrochen wird??
Hier mein Code:
Code: Alles auswählen
if (this.resolveNode("$").rawValue == "agricultural flights, e.g. helicopter spraying")
function dialog()
{
var dialogDescriptor =
{
description:
{
name: "dailog1",
width: 200,
height: 100,
elements: [
{
type: "view",
elements: [
{
type: "static_text",
name: "Prior to performing any spraying, the operator requires a «spraying authorisation» based on art. 9(1) of the ordinance about the rules of the air for aircraft (VRL-L; SR748.121.11) as well as on art. 4(b) of the ordinance about protection against dangerous substances (ChemRRV; SR814.81). The relevant procedures are explained in the following publication:",
},
{
type: "link_text",
item_id: "LINK",
name: "Ausbringen aus der Luft von Pflanzenschutzmitteln, Biozidprodukten und Düngern",
},
]
},
{
type: "ok",
}
]
},
"LINK" : function(dialog)
{
app.launchURL("https://www.bazl.admin.ch/dam/bazl/en/dokumente/Fachleute/Flugverkehr/Flugoperationen/flugbetriebe1/f_helikopter/Publikation%20Spruehfluege%20Ausbringen%20von%20Pflanzenschutzmitteln%20Biozidprodukten%20und%20Duengern%20aus%20der%20Luft.pdf.download.pdf/UV-1623-D_2016-09-12.pdf", true);
},
};
var dialogObject =
{
execDialog: function() { return app.execDialog(dialogDescriptor); },
};
return dialogObject;
}
var d = dialog();
d.execDialog();