Files
php-doc-ru/reference/newt/functions/newt-button.xml
Alexey Pyltsyn f7cd264dce Review various files
git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@344442 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-04 12:59:43 +00:00

118 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<refentry xml:id="function.newt-button" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>newt_button</refname>
<refpurpose>Создать новую кнопку</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>newt_button</methodname>
<methodparam><type>int</type><parameter>left</parameter></methodparam>
<methodparam><type>int</type><parameter>top</parameter></methodparam>
<methodparam><type>string</type><parameter>text</parameter></methodparam>
</methodsynopsis>
<para>
Создает новую кнопку.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>left</parameter></term>
<listitem>
<para>
Координата кнопки относительно оси X.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>top</parameter></term>
<listitem>
<para>
Координата кнопки относительно оси Y.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>text</parameter></term>
<listitem>
<para>
Текст, который должен отображаться внутри кнопки.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает ссылку на ресурс созданной кнопки или &false; в случае ошибки.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример выполнения <function>newt_button</function></title>
<programlisting role="php">
<![CDATA[
<?php
$form = newt_form();
$ok_button = newt_button(5, 12, "Run Tool");
newt_form_add_component($form, $ok_button);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>newt_button_bar</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->