__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<base href="../../../../../">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SFDialogs.DialogControl service</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="es/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="es/bookmarks.js" defer></script><script type="text/javascript" src="es/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="es/text/shared/05/new_help.html"><div></div></a><a class="logo" href="es/text/shared/05/new_help.html"><p dir="auto">Ayuda de LibreOffice 25.2</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Módulo</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contenido</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Buscar en los marcadores del módulo elegido" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<noscript><div id="WarnJS"><h1 dir="auto">Active JavaScript en el navegador para mostrar las páginas de ayuda de LibreOffice.</h1></div></noscript>
<a id="abstract"></a>
   <a id="bm_id41582391760252"></a>
      <meta itemprop="keywords" content="DialogControl service">
   
  <h1 id="bm_id781582391760253" dir="auto">
<a id="ctrls_h1"></a><span class="literal">SFDialogs</span>.<span class="literal">DialogControl</span> service</h1>
  <p id="par_id931583589764919" class="paragraph" dir="auto">The <span class="literal">DialogControl</span> service manages the controls belonging to a dialog defined with the Basic <a target="_top" href="es/text/sbasic/guide/create_dialog.html">Dialog Editor</a>. Each instance of the current service represents a single control within a dialog box.</p>
  <a id="bm_id331612167249331"></a>
     <meta itemprop="keywords" content="API,awt.XControl">
     <meta itemprop="keywords" content="API,awt.XControlModel">
  
  <p id="par_id701598191157426" class="paragraph" dir="auto">The focus is set on getting and setting the values displayed by the controls of the dialog box. Formatting is accessible via the <span class="literal">XControlModel</span> and <span class="literal">XControlView</span> properties.</p>
  <p id="par_id981598191184526" class="paragraph" dir="auto">Note that the unique <span class="literal">DialogControl.Value</span> property content varies according to the control type.</p>
  <p id="par_id991612698027551" class="paragraph" dir="auto">A special attention is given to controls of type tree control. It is easy to populate a tree, either branch by branch, or with a set of branches at once. Populating a tree control can be performed statically or dynamically.</p>

  <div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id891598188164936" dir="auto">The <span class="literal">SFDialogs.DialogControl</span> service is closely related to the <a target="_top" href="es/text/sbasic/shared/03/sf_dialog.html"><span class="literal">SFDialogs.Dialog</span></a> service.</p></div>
</div>
<br>
   <h2 id="hd_id581582885621841" dir="auto">Invocación del servicio</h2>
   <p id="par_id141609955500101" class="paragraph" dir="auto">Antes de utilizar el servicio <span class="literal">DialogControl</span>, es necesario cargar o importar la biblioteca <span class="literal">ScriptForge</span>:</p>
   <div class="embedded">
<a id="importLibs"></a>
    <div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id901528999850603" dir="auto">• Para cargar la biblioteca  <span class="literal">ScriptForge</span> que necesitan las macros de Basic se debe usar la siguiente declaración:<br><span class="literal">GlobalScope.BasicLibraries.loadLibrary("ScriptForge")</span><br><br>• Los scripts de Python necesitan importar el módulo <span class="literal">scriptforge</span>:<br><span class="literal">from scriptforge import CreateScriptService</span></p></div>
</div>
<br>
  </div>

   <p id="par_id361598174756160" class="paragraph" dir="auto">The <span class="literal">DialogControl</span> service is invoked from an existing <span class="literal">Dialog</span> service instance through its <span class="literal">Controls()</span> method. The dialog must be initiated with the <span class="literal">SFDialogs.Dialog</span> service.</p>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim myDialog As Object, myControl As Object
      Set myDialog = CreateScriptService("SFDialogs.Dialog", "GlobalScope", myLibrary, DialogName)
      Set myControl = myDialog.Controls("myTextBox")
      myControl.Value = "Dialog started at " &amp; Now()
      myDialog.Execute()
      ' ... process the controls actual values
      myDialog.Terminate()
   </code></pre></div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     from time import localtime, strftime
     dlg = CreateScriptService('SFDialogs.Dialog', 'GlobalScope', lib_name, dlg_name)
     text = dlg.Controls('myTextBox')
     text.Value = "Dialog started at " + strftime("%a, %d %b %Y %H:%M:%S", localtime())
     dlg.Execute()
     # … procesar los valores reales de los controles
     dlg.Terminate()
   </code></pre></div>
  <h2 id="hd_id141670854511382" dir="auto">Retrieving the DialogControl instance that triggered a control event</h2>
  <p id="par_id951598174966322" class="paragraph" dir="auto">An instance of the <span class="literal">DialogControl</span> service can be retrieved via the <span class="literal">SFDialogs.DialogEvent</span> service, provided that the dialog was initiated with the <span class="literal">Dialog</span> service. In the example below, <span class="literal">oControl</span> contains the <span class="literal">DialogControl</span> instance that triggered the control event.</p>
  <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Sub aControlEventHandler(ByRef poEvent As Object)
          Dim oControl As Object
          Set oControl = CreateScriptService("SFDialogs.DialogEvent", poEvent)
          ' ...
      End Sub
  </code></pre></div>
  <p id="par_id741619625211462" class="paragraph" dir="auto">O al utilizar Python:</p>
  <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     def control_event_handler(event: uno):
         oControl = CreateScriptService('SFDialogs.DialogEvent', event)
         # ...
  </code></pre></div>
  <p id="par_id251598176312571" class="paragraph" dir="auto">Note that in the previous examples, the prefix <span class="literal">"SFDialogs."</span> may be omitted when deemed appropriate.</p>
  <h2 id="hd_id681670854491710" dir="auto">Handling exceptions in event handlers</h2>
  <p id="par_id971670855125683" class="paragraph" dir="auto">When creating an event handler for control events it is good practice to handle errors inside the subroutine itself. For instance, suppose the event handler below is called when button is clicked.</p>
  <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
    Sub OnButtonClicked(ByRef oEvent As Object)
    On Local Error GoTo Catch
        Dim oControl As Object
        oControl = CreateScriptService("DialogEvent", oEvent)
        ' Procesar el evento
        Exit Sub
    Catch:
        MsgBox SF_Exception.Description
        SF_Exception.Clear
    End Sub
  </code></pre></div>
  <div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id691670857377446" dir="auto">Call <span class="literal">SF_Exception.Clear</span> if you do not want the error to propagate after the dialog execution ended.</p></div>
</div>
<br>
  <p id="par_id741619625211445" class="paragraph" dir="auto">In Python use native <span class="literal">try/except</span> blocks for exception handling as shown below:</p>
  <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
    def on_button_clicked(event=None):
        try:
            oControl = CreateScriptService("DialogEvent", event)
            # Procesar el evento
        except Exception as e:
            # The object "bas" below is an instance of the Basic service
            bas.MsgBox(str(e))
  </code></pre></div>

  <h2 id="hd_id71598455687512" dir="auto">Tipos de controles</h2>
  <p id="par_id851598455863395" class="paragraph" dir="auto">The <span class="literal">DialogControl</span> service is available for these control types:</p>
  <table border="1" class="" cellpadding="0" cellspacing="0">
   <tr>
       <td rowspan="" colspan="" dir="auto">
           <p id="par_id891687788755743" class="tablecontentintable" dir="auto">• Button<br>• CheckBox<br>•  ComboBox<br>• CurrencyField<br>• DateField<br>• FileControl</p>
       </td>
       <td rowspan="" colspan="" dir="auto">
           <p id="par_id461687788755743" class="tablecontentintable" dir="auto">• FixedLine<br>• FixedText<br>• FormattedField<br>• GroupBox<br>• Hyperlink<br>• ImageControl</p>
       </td>
       <td rowspan="" colspan="" dir="auto">
           <p id="par_id641687788755743" class="tablecontentintable" dir="auto">• ListBox<br>• NumericField<br>• PatternField<br>• ProgressBar<br>• RadioButton<br>• ScrollBar</p>
       </td>
       <td rowspan="" colspan="" dir="auto">
           <p id="par_id271687789435391" class="tablecontentintable" dir="auto">• TableControl<br>• TextField<br>• TimeField<br>• TreeControl<br> <br> </p>
       </td>
    </tr>
  </table>
<br>

   <h2 id="hd_id651583668365757" dir="auto">Propiedades</h2>
   <a id="properties_toc"></a>
     <table border="1" class="" cellpadding="0" cellspacing="0">
      <tr>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id871583668386455" class="tableheadintable" dir="auto">Nombre</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id491583668386455" class="tableheadintable" dir="auto">De solo lectura</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id271583668474014" class="tableheadintable" dir="auto">Tipo</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id291598538799794" class="tableheadintable" dir="auto">Se aplica a</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id401583668386455" class="tableheadintable" dir="auto">Descripción</p>
         </th>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151594768386455" class="tablecontentintable" dir="auto">Border</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id372693668519172" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id271583679486455" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id231589538847029" class="tablecontentintable" dir="auto">Button, …</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id771583778386455" class="tablecontentintable" dir="auto">The <span class="literal">Border</span> property refers to the surrounding of the control: "3D", "FLAT" or "NONE".</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151583668386455" class="tablecontentintable" dir="auto">Cancel</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id371583668519172" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id271583668386455" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id231598538847029" class="tablecontentintable" dir="auto">Button</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id771583668386455" class="tablecontentintable" dir="auto">Especifica si un botón de orden tiene o no el comportamiento de un botón Cancelar.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id951583839708571" class="tablecontentintable" dir="auto">Caption</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id541583839708548" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id751583839708362" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id351598538934413" class="tablecontentintable" dir="auto">Button, CheckBox, FixedLine, FixedText, GroupBox, Hyperlink, RadioButton</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id731583839708412" class="tablecontentintable" dir="auto">Especifica el texto asociado con el control.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id511584027709311" class="tablecontentintable" dir="auto">ControlType</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id761584027709516" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id491584027709825" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id261598539120502" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971584027709752" class="tablecontentintable" dir="auto">Uno de los tipos enumerados más arriba.</p>
         </td>
      </tr>
            <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id141612705482724" class="tablecontentintable" dir="auto">CurrentNode</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id67161270548283" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id341612705482566" class="tablecontentintable" dir="auto">Objeto<br>de UNO</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id51612705482172" class="tablecontentintable" dir="auto">TreeControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id1001612705482919" class="tablecontentintable" dir="auto">The currently upmost node selected in the tree control. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeNode.html">XmutableTreeNode</a> in Application Programming Interface (API) documentation for detailed information.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id491583839767611" class="tablecontentintable" dir="auto">Default</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id31583839767743" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741583839767926" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id71598539168348" class="tablecontentintable" dir="auto">Button</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id111583839767195" class="tablecontentintable" dir="auto">Especifica si un botón de orden es el botón predeterminado (Aceptar).</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id83158383992056" class="tablecontentintable" dir="auto">Enabled</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id771583839920487" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971583839920282" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id891598539196786" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id451583839920858" class="tablecontentintable" dir="auto">Especifica si el control es accesible mediante el cursor.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id751588333908795" class="tablecontentintable" dir="auto">Format</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id571588333908716" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id781588333908500" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id491598539231618" class="tablecontentintable" dir="auto">DateField, TimeField, FormattedField</p>
            <p id="par_id491598529331618" class="tablecontentintable" dir="auto">(de solo lectura)</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id721588333908708" class="tablecontentintable" dir="auto">Especifica el formato utilizado para mostrar fechas y horas. Debe ser una de estas cadenas:</p>
            <p id="par_id891598456980194" class="paragraphintable" dir="auto">For dates: "Standard (short)", "Standard (short YY)", "Standard (short YYYY)", "Standard (long)", "DD/MM/YY", "MM/DD/YY", "YY/MM/DD", "DD/MM/YYYY", "MM/DD/YYYY" , "YYYY/MM/DD", "YY-MM-DD", "YYYY-MM-DD".</p>
            <p id="par_id221598456991070" class="paragraphintable" dir="auto">For times: "24h short", "24h long", "12h short", "12h long".</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id251583774433989" class="tablecontentintable" dir="auto">ListCount</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id501583774433513" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id411583774433779" class="tablecontentintable" dir="auto">Long</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id531598539561342" class="tablecontentintable" dir="auto">ComboBox, ListBox, TableControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151598177605296" class="paragraphintable" dir="auto">Specifies the number of rows in a ListBox, a ComboBox or a TableControl.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id731588334016220" class="tablecontentintable" dir="auto">ListIndex</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id271588334016191" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id991588334016273" class="tablecontentintable" dir="auto">Long</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id451598539598242" class="tablecontentintable" dir="auto">ComboBox, ListBox, TableControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id251588334016874" class="tablecontentintable" dir="auto">Specifies which item is selected in a ListBox, a ComboBox or a TableControl.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id451598457655392" class="tablecontentintable" dir="auto">Locked</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id961598457655506" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id571598457655365" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id111598539631340" class="tablecontentintable" dir="auto">ComboBox, CurrencyField, DateField, FileControl, FormattedField, ListBox, NumericField, PatternField, TextField, TimeField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id2159845765568" class="tablecontentintable" dir="auto">Especifica si el control es de solo lectura.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id21159845795140" class="tablecontentintable" dir="auto">MultiSelect</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id621598457951781" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311598457951281" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id361598539747680" class="tablecontentintable" dir="auto">ListBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id821598457951782" class="tablecontentintable" dir="auto">Especifica si los usuarios pueden realizar varias selecciones en un cuadro de lista.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id421598458170141" class="tablecontentintable" dir="auto">Name</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id351598458170114" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id391598458170757" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151598539764402" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id621598458170392" class="tablecontentintable" dir="auto">El nombre del control.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id281598458357593" class="tablecontentintable" dir="auto">Page</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id80159845835726" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id191598458357402" class="tablecontentintable" dir="auto">Integer</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id841598539781888" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id791598458357756" class="tablecontentintable" dir="auto">A dialog may have several pages that can be traversed by the user step by step. The Page property of the Dialog object defines which page of the dialog is active.</p>
            <p id="par_id441598458459145" class="paragraphintable" dir="auto">The Page property of a control defines the page of the dialog on which the control is visible.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id2915984585802" class="tablecontentintable" dir="auto">Parent</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id161598458580581" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id921598458580608" class="tablecontentintable" dir="auto">Servicio<br><span class="literal">Dialog</span></p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id181598539807426" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id801598458580456" class="tablecontentintable" dir="auto">The parent <span class="literal">SFDialogs.Dialog</span> class object instance.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id181598458773220" class="tablecontentintable" dir="auto">Picture</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971598458773352" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id471598458773993" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id831598539848472" class="tablecontentintable" dir="auto">Button, ImageControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id451598458773588" class="tablecontentintable" dir="auto">Specifies the file name containing a bitmap or other type of graphic to be displayed on the specified control. The filename must comply with the <span class="literal">FileNaming</span> attribute of the <span class="literal">ScriptForge.FileSystem</span> service.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id791612700624395" class="tablecontentintable" dir="auto">RootNode</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id831612700624650" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id711612700624483" class="tablecontentintable" dir="auto">Objeto<br>de UNO</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id581612700624717" class="tablecontentintable" dir="auto">TreeControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id11612700624514" class="tablecontentintable" dir="auto">An object representing the lowest root node (usually there is only one such root node). Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeNode.html">XmutableTreeNode</a> in Application Programming Interface (API) documentation for detailed information.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id681598516577774" class="tablecontentintable" dir="auto">RowSource</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id401598516577225" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id59159851657754" class="tablecontentintable" dir="auto">Array of strings</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id131598539880024" class="tablecontentintable" dir="auto">ComboBox, ListBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311598516577712" class="tablecontentintable" dir="auto">Especifica los datos contenidos en un cuadro combinado o cuadro de lista.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id491598516746653" class="tablecontentintable" dir="auto">TabIndex</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id781598516674550" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741598561764696" class="tablecontentintable" dir="auto">Numeric</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id761598359912452" class="tablecontentintable" dir="auto">All</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id11159815676440" class="tablecontentintable" dir="auto">The <span class="literal">TabIndex</span> property specifies a control's place in the tab order in the dialog.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id491598516764653" class="tablecontentintable" dir="auto">Text</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id781598516764550" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741598516764696" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id761598539912452" class="tablecontentintable" dir="auto">ComboBox, FileControl, FormattedField, PatternField, TextField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id11159851676440" class="tablecontentintable" dir="auto">Da acceso al texto que muestra el control.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311598517275908" class="tablecontentintable" dir="auto">TipText</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id411598517275112" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971598517275920" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id171598539985022" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id651598517275384" class="tablecontentintable" dir="auto">Especifica el texto que aparecerá como descripción emergente al posar el puntero del ratón sobre el control.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id951598517418614" class="tablecontentintable" dir="auto">TripleState</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id821598517418463" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id231598517418608" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id81598540007035" class="tablecontentintable" dir="auto">CheckBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id141598517418822" class="tablecontentintable" dir="auto">Especifica si el control de casilla aparecerá atenuado (en gris) o no.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id31598517671451" class="tablecontentintable" dir="auto">URL</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id701598517671337" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id2159851767131" class="tablecontentintable" dir="auto">String</p>
         </td>
        <td rowspan="" colspan="" dir="auto">
            <p id="par_id481687785271551" class="paragraphintable" dir="auto">Hyperlink</p>
        </td>
        <td rowspan="" colspan="" dir="auto">
            <p id="par_id1001598540024252" class="tablecontentintable" dir="auto">The URL to open when the control is clicked.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id31598517671415" class="tablecontentintable" dir="auto">Value</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id701598517671373" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id2159851767113" class="tablecontentintable" dir="auto">Variant</p>
         </td>
        <td rowspan="" colspan="" dir="auto"></td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id1001598540024225" class="tablecontentintable" dir="auto">Refer to <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#hd_ValueProperty">Value property</a></p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id571598517730264" class="tablecontentintable" dir="auto">Visible</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id661598517730941" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id981598517730694" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id761598540042290" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id881598517730836" class="tablecontentintable" dir="auto">Especifica si el control está oculto o es visible.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741598177924441" class="tablecontentintable" dir="auto">XControlModel</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id451598177924437" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id94159817792441" class="tablecontentintable" dir="auto">Objeto<br>de UNO</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311598540066789" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id191598177924897" class="tablecontentintable" dir="auto">The UNO object representing the control model. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XControlModel.html">XControlModel</a> and <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1UnoControlDialogModel.html)">UnoControlDialogModel</a> in Application Programming Interface (API) documentation for detailed information.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id801598178083859" class="tablecontentintable" dir="auto">XControlView</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id811598178083501" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id981598178083938" class="tablecontentintable" dir="auto">Objeto<br>de UNO</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id551598540079329" class="tablecontentintable" dir="auto">Todo</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id731598178083442" class="tablecontentintable" dir="auto">The UNO object representing the control view. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XControl.html">XControl</a> and <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1UnoControlDialog.html)">UnoControlDialog</a> in Application Programming Interface (API) documentation for detailed information.</p>
         </td>
      </tr>
            <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id55161269944658" class="tablecontentintable" dir="auto">XTreeDataModel</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741612699446459" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311612699446893" class="tablecontentintable" dir="auto">Objeto<br>de UNO</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id25161269944611" class="tablecontentintable" dir="auto">TreeControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id691612699446892" class="tablecontentintable" dir="auto">The UNO object representing the tree control data model. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeDataModel.html">XMutableTreeDataModel</a> in Application Programming Interface (API) documentation for detailed information.</p>
         </td>
      </tr>
     </table>
<br>
  

   <h2 id="hd_ValueProperty" dir="auto">La <a id="ValueProperty"></a>propiedad Value</h2>
   <table border="1" class="" cellpadding="0" cellspacing="0">
      <tr>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id10159854325492" class="tableheadintable" dir="auto">Tipo de control</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id741598543254158" class="tableheadintable" dir="auto">Tipo</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id961598543254444" class="tableheadintable" dir="auto">Descripción</p>
         </th>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id461598543254494" class="tablecontentintable" dir="auto">Button</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id271598543254590" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741598543254108" class="tablecontentintable" dir="auto">For toggle buttons only</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id131598543254931" class="tablecontentintable" dir="auto">CheckBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id741598543254376" class="tablecontentintable" dir="auto">Booleano o entero</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id521598543254630" class="tablecontentintable" dir="auto">0, falso: no marcada<br>1, verdadero: marcada<br>2: en gris: no se sabe</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id891598543254563" class="tablecontentintable" dir="auto">ComboBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id781598543254887" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id331598543254947" class="tablecontentintable" dir="auto">El valor seleccionado. La propiedad <span class="literal">ListIndex</span> es una opción alternativa.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id58159854325446" class="tablecontentintable" dir="auto">CurrencyField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id5159854325443" class="tablecontentintable" dir="auto">Numérico</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id241598543254415" class="tablecontentintable" dir="auto">DateField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id401598543254743" class="tablecontentintable" dir="auto">Date</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id851598543254508" class="tablecontentintable" dir="auto">FileControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id731598543254544" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971598543254757" class="tablecontentintable" dir="auto">A file name formatted in accordance with the <span class="literal">FileNaming</span> property of the <span class="literal">ScriptForge.FileSystem</span> service</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id921598543254323" class="tablecontentintable" dir="auto">FormattedField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id221598543254760" class="tablecontentintable" dir="auto">Cadena o Numérico</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151598543254318" class="tablecontentintable" dir="auto">ListBox</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id42159854325422" class="tablecontentintable" dir="auto">Cadena o matriz de cadenas</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id601598543254780" class="tablecontentintable" dir="auto">The selected row(s) as a scalar or as an array depending on the <span class="literal">MultiSelect</span> attribute</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id771598543254973" class="tablecontentintable" dir="auto">NumericField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id461598543254909" class="tablecontentintable" dir="auto">Numérico</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id38159854325480" class="tablecontentintable" dir="auto">PatternField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id81598543254625" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id951598543254998" class="tablecontentintable" dir="auto">ProgressBar</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id631598543254771" class="tablecontentintable" dir="auto">Numérico</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id91598543254766" class="tablecontentintable" dir="auto">Must be within the predefined bounds</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id791598543254779" class="tablecontentintable" dir="auto">RadioButton</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id561598543254115" class="tablecontentintable" dir="auto">Boolean</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id851598543254624" class="tablecontentintable" dir="auto">Each button has its own name. They are linked together if their TAB positions are contiguous. If a radiobutton is set to <span class="literal">True</span>, the other related buttons are automatically set to <span class="literal">False</span></p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id141598543254361" class="tablecontentintable" dir="auto">ScrollBar</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id531598543254869" class="tablecontentintable" dir="auto">Numérico</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id21598543254994" class="tablecontentintable" dir="auto">Must be within the predefined bounds</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id811598543254007" class="tablecontentintable" dir="auto">TableControl</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id751598543254805" class="tablecontentintable" dir="auto">Array</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id441598543254951" class="tablecontentintable" dir="auto">One-dimensional array with the data of the currently selected row.</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id811598543254140" class="tablecontentintable" dir="auto">TextField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id751598543254299" class="tablecontentintable" dir="auto">String</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id441598543254738" class="tablecontentintable" dir="auto">El texto que aparece en el campo</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id89159854325478" class="tablecontentintable" dir="auto">TimeField</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id341598543254600" class="tablecontentintable" dir="auto">Date</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
         </td>
      </tr>
   </table>
<br>
   <div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id61687963745108" dir="auto">There is no <span class="literal">Value</span> property for <span class="literal">GroupBox</span>, <span class="literal">Hyperlink</span>, <span class="literal">ImageControl</span> and <span class="literal">TreeControl</span> dialog controls.</p></div>
</div>
<br>

   <h2 id="hd_id421612628828054" dir="auto">Propiedades del evento</h2>
   <div class="embedded">
<a id="OnEventsDefinition"></a>
   <p id="par_id41612629140856" class="paragraph" dir="auto"><span class="literal">On…</span> properties return a URI string with the reference to the script triggered by the event. <span class="literal">On…</span> properties can be set programmatically.<br>Read its specification in the <a target="_blank" href="https://wiki.documentfoundation.org/Documentation/DevGuide/Scripting_Framework#Scripting_Framework_URI_Specification">scripting framework URI specification</a>.</p>
   </div>
   <table border="1" class="" cellpadding="0" cellspacing="0">
      <tr>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id961612628879819" class="tableheadintable" dir="auto">Nombre</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id401612628879819" class="tableheadintable" dir="auto">De solo lectura</p>
         </th>
         <th rowspan="" colspan="" class="tableheadcell" dir="auto">
            <p id="par_id281612628879819" class="tableheadintable" dir="auto">Descripción tal como figura en el EDI de BASIC</p>
         </th>
      </tr>
            <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id801612707166342" class="tablecontentintable" dir="auto">OnActionPerformed</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id91612707166532" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id291612707166258" class="tablecontentintable" dir="auto">Ejecutar acción</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id261612707166662" class="tablecontentintable" dir="auto">OnAdjustmentValueChanged</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id79161270716675" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id831612707166731" class="tablecontentintable" dir="auto">Al ajustar</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id431612629836735" class="tablecontentintable" dir="auto">OnFocusGained</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id111612629836630" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id1001612629836902" class="tablecontentintable" dir="auto">Al recibir el foco</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id701612629836389" class="tablecontentintable" dir="auto">OnFocusLost</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id291612629836294" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id62161262983683" class="tablecontentintable" dir="auto">Al perder el foco</p>
         </td>
      </tr>
            <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id10161270735471" class="tablecontentintable" dir="auto">OnItemStateChanged</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id51612707354544" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id211612707354899" class="tablecontentintable" dir="auto">Estado modificado</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id241612629836863" class="tablecontentintable" dir="auto">OnKeyPressed</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id81612629836634" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id881612629836744" class="tablecontentintable" dir="auto">Tecla pulsada</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id201612629836996" class="tablecontentintable" dir="auto">OnKeyReleased</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id591612629836830" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id161612629836775" class="tablecontentintable" dir="auto">Tecla liberada</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id111612629836950" class="tablecontentintable" dir="auto">OnMouseDragged</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id891612629836630" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id461612629836679" class="tablecontentintable" dir="auto">Mouse moved while key presses</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id711612629836495" class="tablecontentintable" dir="auto">OnMouseEntered</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id131612629836291" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id151612629836151" class="tablecontentintable" dir="auto">Ratón dentro</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id971612629836286" class="tablecontentintable" dir="auto">OnMouseExited</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id211612629836725" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id361612629836624" class="tablecontentintable" dir="auto">Ratón fuera</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id721612629836537" class="tablecontentintable" dir="auto">OnMouseMoved</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id311612629836481" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id721612629836752" class="tablecontentintable" dir="auto">Ratón movido</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id55161262983695" class="tablecontentintable" dir="auto">OnMousePressed</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id981612629836116" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id381612629836635" class="tablecontentintable" dir="auto">Botón del ratón pulsado</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id621612629836155" class="tablecontentintable" dir="auto">OnMouseReleased</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id711612629836704" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id35161262983642" class="tablecontentintable" dir="auto">Botón del ratón soltado</p>
         </td>
      </tr>
            <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id671612707606983" class="tablecontentintable" dir="auto">OnNodeExpanded</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id851612707606863" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id351612707606197" class="tablecontentintable" dir="auto">(Not in Basic IDE) when the expansion button is pressed on a node in a tree control</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id331612707606104" class="tablecontentintable" dir="auto">OnNodeSelected</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id121612707606251" class="tablecontentintable" dir="auto">No</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id881612707606121" class="tablecontentintable" dir="auto">(Not in Basic IDE) when a node in a tree control is selected</p>
         </td>
      </tr>
      <tr>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id84161270760678" class="tablecontentintable" dir="auto">OnTextChanged</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id811612707606330" class="tablecontentintable" dir="auto">Sí</p>
         </td>
         <td rowspan="" colspan="" dir="auto">
            <p id="par_id621612707606219" class="tablecontentintable" dir="auto">Texto modificado</p>
         </td>
      </tr>
   </table>
<br>
   <div class="embedded">
<a id="OnEventsWarning"></a>
      <div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id401687779361420" dir="auto">Assigning events via the Basic IDE and assigning events via macros are mutually exclusive.</p></div>
</div>
<br>
    </div>

  <h2 id="hd_id421583670049913" dir="auto">Métodos</h2>
  <a id="methods_toc"></a>
   <table border="1" class="" cellpadding="0" cellspacing="0">
    <tr>
       <th rowspan="" colspan="3" class="tableheadcell" dir="auto">
          <p id="par_id891611613601554" class="tableheadintable" dir="auto">Lista de métodos en el servicio DialogControl</p>
       </th>
    </tr>
    <tr>
       <td rowspan="" colspan="" dir="auto">
         <p id="par_id751612709117248" class="tablecontentintable" dir="auto">
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#AddSubNode">AddSubNode</a><br>
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#AddSubTree">AddSubTree</a><br>
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#CreateRoot">CreateRoot</a><br>
         </p>
       </td>
       <td rowspan="" colspan="" dir="auto">
         <p id="par_id63161270911712" class="tablecontentintable" dir="auto">
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#FindNode">FindNode</a><br>
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#Resize">Resize</a><br>
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#SetFocus">SetFocus</a><br>
         </p>
       </td>
       <td rowspan="" colspan="" dir="auto">
         <p id="par_id651612709117457" class="tablecontentintable" dir="auto">
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#SetTableData">SetTableData</a><br>
           <a target="_top" href="es/text/sbasic/shared/03/sf_dialogcontrol.html#WriteLine">WriteLine</a><br><br>
         </p>
       </td>
    </tr>
   </table>
<br>
  

<a id="AddSubNode"></a>
  
   <a id="bm_id1516127118236"></a>
      <meta itemprop="keywords" content="DialogControl service,AddSubNode">
   
   <h2 id="hd_id791612711823914" dir="auto">AddSubNode</h2>
   <p id="par_id831612711823126" class="paragraph" dir="auto">Create and return a new node of the tree control as a UNO object subordinate to a parent node. <a id="XMutableTreeNode"></a>Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeNode.html">XMutableTreeNode</a> in Application Programming Interface (API) documentation for detailed information.</p>
   <a id="OnNodeExpanded"></a>
      <p id="par_id741612711823706" class="paragraph" dir="auto">This method may be called before displaying the dialog box to build the initial tree. It may also be called from a dialog or control event - using the <span class="literal">OnNodeExpanded</span> event - to complete the tree dynamically.</p>
   
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id781620224364283" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.AddSubNode(parentnode: uno, displayvalue: str, opt datavalue: any): uno</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id761612711823834" class="paragraph" dir="auto"><span class="emph">parentnode</span>: A node UNO object, of type <span class="literal">com.sun.star.awt.tree.XMutableTreeNode</span>.</p>
   <p id="par_id791612711823819" class="paragraph" dir="auto"><span class="emph">displayvalue</span>: The text appearing in the tree control box.</p>
   <a id="datavalue"></a>
   <p id="par_id911612711823382" class="paragraph" dir="auto"><span class="emph">datavalue</span>: Any value associated with the new node. <span class="literal">datavalue</span> may be a string, a number or a date. Omit the argument when not applicable.</p>
   
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <p id="par_id901620317110685" class="paragraph" dir="auto">LibreOffice Basic and Python examples pick up current document's <span class="literal">myDialog</span> dialog from <span class="literal">Standard</span> library.</p>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim oDlg As Object, myTree As Object, myNode As Object, theRoot As Object
      Set oDlg = CreateScriptService("Dialog",,, "myDialog")
      Set myTree = oDlg.Controls("myTreeControl")
      Set theRoot = myTree.CreateRoot("Tree top")
      Set myNode = myTree.AddSubNode(theRoot, "A branch ...")
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     dlg = CreateScriptService('SFDialogs.Dialog', None, None, 'myDialog')
     tree = dlg.Controls('myTreeControl')
     root = tree.CreateRoot('Tree top')
     node = tree.AddSubNode(root, 'A branch ...')
   </code></pre></div>


<a id="AddSubTree"></a>
  
   <a id="bm_id481612713087784"></a>
      <meta itemprop="keywords" content="DialogControl service,AddSubTree">
   
   <h2 id="hd_id81161271308746" dir="auto">AddSubTree</h2>
   <p id="par_id221612713087885" class="paragraph" dir="auto">Return <span class="literal">True</span> when a subtree, subordinate to a parent node, could be inserted successfully in a tree control. If the parent node had already child nodes before calling this method, the child nodes are erased.</p>
   <div class="embedded">
<a id="OnNodeExpanded"></a>
      <p id="par_id741612711823706" class="paragraph" dir="auto">This method may be called before displaying the dialog box to build the initial tree. It may also be called from a dialog or control event - using the <span class="literal">OnNodeExpanded</span> event - to complete the tree dynamically.</p>
   </div>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id731620308640671" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.AddSubTree(parentnode: uno, flattree: any, opt withdatavalue: bool): bool</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id781612713087722" class="paragraph" dir="auto"><span class="emph">parentnode</span>: A node UNO object, of type <span class="literal">com.sun.star.awt.tree.XMutableTreeNode</span>.</p>
   <p id="par_id36161271308759" class="paragraph" dir="auto"><span class="emph">flattree</span>: a two dimension array sorted on the columns containing the display values. Such an array can be issued by the <span class="literal">GetRows</span> method applied on the <span class="literal">SFDatabases.Database</span> service. When an array item containing the text to be displayed is <span class="literal">Empty</span> or <span class="literal">Null</span>, no new subnode is created and the remainder of the row is skipped.</p>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Flat tree    &gt;&gt;&gt;&gt;    Resulting subtree
      A1	B1	C1             |__   A1	
      A1	B1	C2                   |__   B1
      A1	B2	C3                         |__  C1
      A2	B3	C4                         |__  C2
      A2	B3	C5                   |__   B2
      A3	B4	C6                         |__  C3
                             |__   A2
                                   |__   B3
                                         |__  C4
                                         |__  C5
                             |__   A3
                                   |__   B4
                                         |__  C6
   </code></pre></div>
   <p id="par_id51612713087915" class="paragraph" dir="auto"><span class="emph">withdatavalue</span>: When <span class="literal">False</span> default value is used, every column of <span class="literal">flattree</span> contains the text to be displayed in the tree control. When <span class="literal">True</span>, the texts to be displayed (<span class="literal">displayvalue</span>) are in columns 0, 2, 4, ... while the data values (<span class="literal">datavalue</span>) are in columns 1, 3, 5, ...</p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim myTree As Object, theRoot As Object, oDb As Object, vData As Variant
      Set myTree = myDialog.Controls("myTreeControl")
      Set theRoot = myTree.CreateRoot("By product category")
      Set oDb = CreateScriptService("SFDatabases.Database", "/home/.../mydatabase.odb")
      vData = oDb.GetRows("SELECT [Category].[Name], [Category].[ID], [Product].[Name], [Product].[ID] " _
          &amp; "FROM [Category], [Product] WHERE [Product].[CategoryID] = [Category].[ID] " _
          &amp; "ORDER BY [Category].[Name], [Product].[Name]")
      myTree.AddSubTree(theRoot, vData, WithDataValue := True)
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     SQL_STMT = "SELECT [Category].[Name], [Category].[ID], [Product].[Name], [Product].[ID] \
         FROM [Category], [Product] WHERE [Product].[CategoryID] = [Category].[ID] \
         ORDER BY [Category].[Name], [Product].[Name]"
     tree = dlg.Controls('myTreeControl')
     root = tree.CreateRoot('By Product category')
     db = CreateScriptService('SFDatabases.Database', '/home/.../mydatabase.odb')
     sub_tree = db.GetRows(SQL_STMT)
     tree.AddSubTree(root, sub_tree, withdatavalue=True)
   </code></pre></div>


<a id="CreateRoot"></a>
  
   <a id="bm_id791612780723864"></a>
      <meta itemprop="keywords" content="DialogControl service,CreateRoot">
   
   <h2 id="hd_id291612780723671" dir="auto">CreateRoot</h2>
     <p id="par_id151612780723320" class="paragraph" dir="auto">Returns a new root node of the tree control, as a node UNO object of type <span class="literal">com.sun.star.awt.tree.XMutableTreeNode</span>. The new tree root is inserted below pre-existing root nodes. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeNode.html">XMutableTreeNode</a> in Application Programming Interface (API) documentation for detailed information.</p>
   <p id="par_id821612780723965" class="paragraph" dir="auto">This method may be called before displaying the dialog box to build the initial tree. It may also be called from a dialog or control event to complete the tree dynamically.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id991620309297239" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.CreateRoot(displayvalue: str, opt datavalue: any): uno</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id791612117823819" class="paragraph" dir="auto"><span class="emph">displayvalue</span>: The text appearing in the tree control box.</p>
   <div class="embedded">
<a id="datavalue"></a>
   <p id="par_id911612711823382" class="paragraph" dir="auto"><span class="emph">datavalue</span>: Any value associated with the new node. <span class="literal">datavalue</span> may be a string, a number or a date. Omit the argument when not applicable.</p>
   </div>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim myTree As Object, myNode As Object
      Set myTree = myDialog.Controls("myTreeControl")
      Set myNode = myTree.CreateRoot("Tree starts here ...")
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     tree = dlg.Controls('myTreeControl')
     node = tree.CreateRoot('Tree starts here ...')
   </code></pre></div>


<a id="FindNode"></a>
  
   <a id="bm_id741612781589926"></a>
      <meta itemprop="keywords" content="DialogControl service,FindNode">
   
   <h2 id="hd_id801612781589891" dir="auto">FindNode</h2>
   <p id="par_id171612781589503" class="paragraph" dir="auto">Traverses the tree and finds recursively, starting from the root, a node meeting some criteria. Either - 1 match is enough - having its display value matching <span class="literal">displayvalue</span> pattern or having its data value equal to <span class="literal">datavalue</span>. The comparisons may be or not case-sensitive. The first matching occurrence is returned as a node UNO object of type <span class="literal">com.sun.star.awt.tree.XMutableTreeNode</span>. Refer to <a target="_blank" href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1tree_1_1XMutableTreeNode.html">XMutableTreeNode</a> in Application Programming Interface (API) documentation for detailed information.</p>
   <p id="par_id741612782475457" class="paragraph" dir="auto">When not found, the method returns <span class="literal">Nothing</span>, to be tested with the <span class="literal">IsNull()</span> builtin function.</p>
   <p id="par_id41612781589363" class="paragraph" dir="auto">This method may be called before displaying the dialog box to build the initial tree. It may also be called from a dialog or control event.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id61620309668544" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.FindNode(displayvalue: str = '', opt datavalue: any, casesensitive = False): uno</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id541613670199211" class="paragraph" dir="auto">One argument out of <span class="literal">displayvalue</span> or <span class="literal">datavalue</span> must be specified. If both present, one match is sufficient to select the node.</p>
   <p id="par_id591612781589560" class="paragraph" dir="auto"><span class="emph">displayvalue</span>: The pattern to be matched. Refer to <a target="_top" href="es/text/sbasic/shared/03/sf_string.html#IsLike"><span class="literal">SF_String.IsLike()</span></a> method for the list of possible wildcards. When equal to the zero-length string (default), this display value is not searched for.</p>
   <div class="embedded">
<a id="datavalue"></a>
   <p id="par_id911612711823382" class="paragraph" dir="auto"><span class="emph">datavalue</span>: Any value associated with the new node. <span class="literal">datavalue</span> may be a string, a number or a date. Omit the argument when not applicable.</p>
   </div>
   <p id="par_id141582384726168" class="paragraph" dir="auto"><span class="emph">casesensitive</span>: Default value is <span class="literal">False</span></p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim myTree As Object, myNode As Object
      Set myTree = myDialog.Controls("myTreeControl")
      Set myNode = myTree.FindNode("*Sophie*", CaseSensitive := True)
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     tree = dlg.Controls('myTreeControl')
     node = FindNode('*Sophie*', casesensitive=True)
     if node is None:
         # ...
   </code></pre></div>


<a id="Resize"></a>
  
   <a id="bm_id721583393076548"></a>
      <meta itemprop="keywords" content="DialogControl service,Resize">
   
   <h2 id="hd_id681583933067692" dir="auto">Resize</h2>
   <p id="par_id871583933076484" class="paragraph" dir="auto">Move the top-left corner of a dialog control to new coordinates and/or modify its dimensions. Return <span class="literal">True</span> if resizing was successful.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id11620310322534" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.Resize(opt Left: int, opt Top: int, opt Width: int, opt Height: int): bool</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id351687783159237" class="paragraph" dir="auto">All distances are expressed in <a target="_top" href="es/text/sbasic/shared/00000002.html#AppFontUnits">Map AppFont units</a> and are measured from the top-left corner of the parent dialog. Without arguments the method resizes the control to its "preferred size", a size adjusted depending on its actual content. Missing arguments are left unchanged.</p>
   <p id="par_id911687783094143" class="paragraph" dir="auto"><span class="emph">Left</span>: The horizontal distance from the top-left corner</p>
   <p id="par_id251687783287236" class="paragraph" dir="auto"><span class="emph">Top</span>: The vertical distance from the top-left corner</p>
   <p id="par_id291687783328508" class="paragraph" dir="auto"><span class="emph">Width</span>: the horizontal width of the rectangle containing the control</p>
   <p id="par_id901687783339292" class="paragraph" dir="auto"><span class="emph">Height</span>: the vertical height of the rectangle containing the control</p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim oControl As Object
      Set oDlg = CreateScriptService("SFDialogs.Dialog",,, "myDialog")
      Set oControl = oDlg.Controls("thisControl")
      oControl.Resize(100, 200, Height:=6000) ' Width is unchanged
    </code></pre></div>
    <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
    <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
      dlg = CreateScriptService('Dialog', None, None, 'myDialog')
      ctrl = dlg.Controls('thisControl')
      ctrl.Resize(300, 200, 1500)  # Height is unchanged
    </code></pre></div>


<a id="SetFocus"></a>
  
   <a id="bm_id721583933076548"></a>
      <meta itemprop="keywords" content="DialogControl service,SetFocus">
   
   <h2 id="hd_id681583933076692" dir="auto">SetFocus</h2>
   <p id="par_id871583933076448" class="paragraph" dir="auto">Set the focus on the control. Return <span class="literal">True</span> if focusing was successful.</p>
   <p id="par_id151598178880227" class="paragraph" dir="auto">Este método a menudo se llama desde un cuadro de diálogo o un evento de control.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id11620310325234" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.SetFocus(): bool</span>
   </p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim oControl As Object
      Set oDlg = CreateScriptService("SFDialogs.Dialog",,, "myDialog")
      Set oControl = oDlg.Controls("thisControl")
      oControl.SetFocus()
    </code></pre></div>
    <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
    <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
      dlg = CreateScriptService('Dialog', None, None, 'myDialog')
      ctrl = dlg.Controls('thisControl')
      ctrl.SetFocus()
    </code></pre></div>


<a id="SetTableData"></a>
  
   <a id="bm_id761598619892024"></a>
      <meta itemprop="keywords" content="DialogControl service,SetTableData">
   
   <h2 id="hd_id961598619890364" dir="auto">SetTableData</h2>
   <p id="par_id541638553960464" class="paragraph" dir="auto">Fills a <span class="literal">TableControl</span> with the given data. All preexisting data is cleared before inserting the new data passed as argument.</p>
   <p id="par_id551638554058131" class="paragraph" dir="auto">When the <span class="literal">TableControl</span> is added to the dialog, it is possible to use the Basic IDE to define whether column and row headers will be shown in the table. If the <span class="literal">TableControl</span> has column and/or row headers, the first column and/or row in the provided data array are used as labels for the table headers.</p>
   <p id="par_id411638569396108" class="paragraph" dir="auto">This method returns <span class="literal">True</span> when successful.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id841620310380255" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.SetTableData(dataarray: any[0..*, 0..*], widths: int[0..*], alignments: str, RowHeaderWidth = 10): bool</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id1001584541257133" class="paragraph" dir="auto"><span class="emph">dataarray</span>: Data to be entered into the table represented as an Array of Arrays in Basic or a tuple of tuples in Python. The data must include column and row headers if they are to be displayed by the <span class="literal">TableControl</span>.</p>
   <p id="par_id1001584541257025" class="paragraph" dir="auto"><span class="emph">widths</span>: Array containing the relative widths of each column. In other words, <span class="literal">widths = (1, 2)</span> means that the second column is twice as wide as the first one. If the number of values in the array is smaller than the number of columns in the table, then the last value in the array is used to define the width of the remaining columns.</p>
   <p id="par_id1001584541257007" class="paragraph" dir="auto"><span class="emph">alignments</span>: Defines the alignment in each column as a string in which each character can be "L" (Left), "C" (Center), "R" (Right) or " " (whitespace, default, meaning left for strings and right for numeric values). If the length of the string is shorter than the number of columns in the table, then the last character in the string is used to define the alignment of the remaining columns.</p>
   <p id="par_id551688397846388" class="paragraph" dir="auto"><span class="emph">RowHeaderWidth</span>: width of the row header column expressed in <a target="_top" href="es/text/sbasic/shared/00000002.html#AppFontUnits">Map AppFont units</a>. Default = 10. The argument is ignored when the <span class="literal">TableControl</span> has no row header.</p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <p id="par_id381638569172413" class="paragraph" dir="auto">The following example assumes that the dialog <span class="literal">myDialog</span> has a <span class="literal">TableControl</span> named <span class="literal">Grid1</span> with "Show row header" and "Show column header" properties set to "Yes".</p>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
     Dim myDialog As Object, oTable As Object, tableData As Variant
     myDialog = CreateScriptService("Dialog", "GlobalScope", "Standard", "myDialog")
     oTable = myDialog.Controls("Grid1")
     tableData = Array("Column A", "Column B", "Column C")
     tableData = SF_Array.AppendRow(tableData, Array("Row 1", 1, 2))
     tableData = SF_Array.AppendRow(tableData, Array("Row 2", 3, 4))
     tableData = SF_Array.AppendRow(tableData, Array("Row 3", 5, 6))
     vAlignments = "LCC"
     vWidths = Array(2, 1, 1)
     oTable.SetTableData(tableData, vWidths, vAlignments)
     myDialog.Execute()
   </code></pre></div>
   <p id="par_id171638650502346" class="paragraph" dir="auto">The <span class="literal">Value</span> property returns the selected row in the table. If no row is selected, an empty Array object is returned. The following code snippet shows how to test if any row is selected in the table.</p>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
     rowValues = oTable.Value
     If UBound(rowValues) &lt; 0 Then
         MsgBox "No se seleccionó ninguna fila."
     Else
         MsgBox "La fila " &amp; oTable.ListIndex &amp; " está seleccionada."
     End If
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     dlg = CreateScriptService("Dialog", "GlobalScope", "Standard", "myDialog")
     table_control = dlg.Controls("Grid1")
     table_data = (("Column A", "Column B", "Column C"),
                   ("Row 1", 1, 2),
                   ("Row 2", 3, 4),
                   ("Row 3", 5, 6))
     alignments = "LCC"
     widths = (100, 50, 50)
     table_control.SetTableData(table_data, widths, alignments)
     dlg.Execute()
   </code></pre></div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     bas = CreateScriptService("Basic")
     row_values = table_control.Value
     if len(row_values) == 0:
         bas.MsgBox("No row selected.")
     else:
         bas.MsgBox(f"Row {table_control.ListIndex} is selected.")
   </code></pre></div>


<a id="WriteLine"></a>
  
   <a id="bm_id761598619892798"></a>
      <meta itemprop="keywords" content="DialogControl service,WriteLine">
   
   <h2 id="hd_id961598619892816" dir="auto">WriteLine</h2>
   <p id="par_id671598619892378" class="paragraph" dir="auto">Add a new line at the end of a multiline text field. A newline character will be inserted when appropriate. The method returns <span class="literal">True</span> when successful.</p>
   <p id="par_id941598619892915" class="paragraph" dir="auto">An error is raised if the actual control is not of the type <span class="literal">TextField</span> or is not multiline.</p>
   <div class="embedded">
<a id="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Sintaxis:</h3>
</div>
   <p id="par_id841620310387185" class="paragraph" dir="auto">
     <span class="input" data-tooltip="Pulse en el texto para copiarlo en el portapapeles">svc.WriteLine(opt line: str): bool</span>
   </p>
   <div class="embedded">
<a id="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parámetros:</h3>
</div>
   <p id="par_id1001584541257789" class="paragraph" dir="auto"><span class="emph">Line</span>: The string to insert. Default is an empty line.</p>
   <div class="embedded">
<a id="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Ejemplo:</h3>
</div>
   <div class="embedded">
<a id="In_Basic"></a>
<h5 id="hd_id191620312698501" dir="auto">En BASIC</h5>
</div>
   <div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-visual-basic line-numbers">
      Dim oDlg As Object, oControl As Object
      Set oDlg = CreateScriptService("SFDialogs.Dialog",,, "myDialog")
      Set oControl = oDlg.Controls("thisControl")
      oControl.WriteLine("a new line")
   </code></pre></div>
   <div class="embedded">
<a id="In_Python"></a>
<h5 id="hd_id831620312769993" dir="auto">En Python</h5>
</div>
   <div class="pycode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Pulse en el texto para copiarlo en el portapapeles"><pre dir="auto"><code class="language-python line-numbers">
     dlg = CreateScriptService('SFDialogs.Dialog', None, None, 'myDialog')
     ctrl = dlg.Controls('thisControl')
     ctr.WriteLine("a new line")
   </code></pre></div>


  <div class="embedded">
<a id="SF_InternalUse"></a>
      <div class="warning">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/warning.svg" alt="warning" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id851506659675843" dir="auto">Todas las rutinas o identificadores BASIC de <span class="literal">ScriptForge</span> precedidas por guion bajo «_» están reservadas para uso interno. No deben utilizarse en macros BASIC o secuencias Python.</p></div>
</div>
<br>
    </div>
  <a id="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a id="related"></a><span class="emph">Temas relacionados</span></p>
<div class="relatedbody" itemprop="mentions">
    <div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="es/text/sbasic/shared/03/sf_dialog.html"><span class="literal">SFDialogs</span>.<span class="literal">Dialog</span> service</a></p></div>
    <div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="es/text/sbasic/shared/03/sf_string.html"><span class="literal">ScriptForge</span>.<span class="literal">String</span> service</a></p></div>
    <div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="es/text/sbasic/shared/03/sf_ui.html">Servicio <span class="literal">ScriptForge</span>.<span class="literal">UI</span></a></p></div>
  </div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><h2 style="text-align: center;"><a href="https://books.libreoffice.org" target="_blank">Libros de LibreOffice</a></h2>
<div class="noteicon" dir="auto" style="display:flex;justify-content:center;flex-wrap:wrap;row-gap:15px;">
<img src="media/navigation/libo-writer.svg" alt="Writer Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-calc.svg" alt="Calc Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-impress.svg" alt="Impress Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-draw.svg" alt="Draw Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-base.svg" alt="Base Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-math.svg" alt="Math Icon" style="width:60px;height:60px;"><img src="media/navigation/libo-symbol-black.svg" alt="Getting Started Icon" style="width:60px;height:60px;">
</div>
<div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sbasic/shared/03/sf_dialogcontrol.xhp" target="_blank">/text/sbasic/shared/03/sf_dialogcontrol.xhp</a></p>
<p dir="auto">Title is: SFDialogs.DialogControl service</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>

Filemanager

Name Type Size Permission Actions
avail_release.html File 8.05 KB 0644
lib_ScriptForge.html File 54.61 KB 0644
lib_depot.html File 5.35 KB 0644
lib_euro.html File 7.64 KB 0644
lib_formwizard.html File 5.38 KB 0644
lib_gimmicks.html File 7.76 KB 0644
lib_importwiz.html File 7.59 KB 0644
lib_schedule.html File 5.47 KB 0644
lib_script.html File 5.91 KB 0644
lib_template.html File 5.37 KB 0644
lib_tools.html File 74.88 KB 0644
lib_wikieditor.html File 5.62 KB 0644
sf_array.html File 84.5 KB 0644
sf_base.html File 45.49 KB 0644
sf_basic.html File 78.88 KB 0644
sf_calc.html File 209.75 KB 0644
sf_chart.html File 35.85 KB 0644
sf_database.html File 66.35 KB 0644
sf_dataset.html File 59.17 KB 0644
sf_datasheet.html File 42.59 KB 0644
sf_dialog.html File 164.91 KB 0644
sf_dialogcontrol.html File 92.57 KB 0644
sf_dictionary.html File 42.93 KB 0644
sf_document.html File 87.26 KB 0644
sf_exception.html File 47.22 KB 0644
sf_filesystem.html File 106.92 KB 0644
sf_form.html File 68.52 KB 0644
sf_formcontrol.html File 71.36 KB 0644
sf_formdocument.html File 24.99 KB 0644
sf_intro.html File 28.11 KB 0644
sf_l10n.html File 41.17 KB 0644
sf_menu.html File 36.53 KB 0644
sf_methods.html File 15.38 KB 0644
sf_platform.html File 32.07 KB 0644
sf_popupmenu.html File 32.73 KB 0644
sf_region.html File 48.56 KB 0644
sf_services.html File 13.42 KB 0644
sf_session.html File 58.96 KB 0644
sf_string.html File 125.2 KB 0644
sf_textstream.html File 28.87 KB 0644
sf_timer.html File 23.87 KB 0644
sf_toc.html File 136.53 KB 0644
sf_toolbar.html File 20.46 KB 0644
sf_toolbarbutton.html File 25.53 KB 0644
sf_ui.html File 63.35 KB 0644
sf_unittest.html File 62.35 KB 0644
sf_writer.html File 24.55 KB 0644
Filemanager