<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="../robodoc.css" type="text/css" />
<title>./src/gui/programsmenu.ads</title>
<!-- Source: ./src/gui/programsmenu.ads -->
<!-- Generated with ROBODoc Version 4.99.43 (Feb  8 2020) -->
</head>
<body>
<div id="logo">
<a name="robo_top_of_doc">Hunter v1.6 code documentation</a>
</div> <!-- logo -->
<div id="navigation">
<a class="menuitem" href="../toc_index.html#top">Table of Contents</a>
<a class="menuitem" href="../sources.html#top">Source files</a>
<a class="menuitem" href="../index.html#top">Index</a>
<a class="menuitem" href="../robo_tasks.html#top">Tasks</a>
<a class="menuitem" href="../robo_constants.html#top">Constants</a>
<a class="menuitem" href="../robo_exceptions.html#top">Exceptions</a>
<a class="menuitem" href="../robo_subprograms.html#top">Subprograms</a>
<a class="menuitem" href="../robo_packages.html#top">Packages</a>
<a class="menuitem" href="../robo_commands.html#top">Commands</a>
<a class="menuitem" href="../robo_records.html#top">Records</a>
<a class="menuitem" href="../robo_types.html#top">Types</a>
<a class="menuitem" href="../robo_variables.html#top">Variables</a>
</div> <!-- navigation -->
<div id="content">
<h3>TABLE OF CONTENTS</h3>
<ul>
<li>1. <a href="#robo34">ProgramsMenu/ProgramsMenu</a></li>
<ul>
<li>1.1. <a href="./programsmenu_adb.html#robo70">ProgramsMenu/ProgramsMenu.Programs_Sorting</a></li>
<li>1.2. <a href="./programsmenu_adb.html#robo129">ProgramsMenu/ProgramsMenu.ApplicationsList</a></li>
<li>1.3. <a href="./programsmenu_adb.html#robo130">ProgramsMenu/ProgramsMenu.NamesList</a></li>
<li>1.4. <a href="#robo255">ProgramsMenu/ProgramsMenu.CreateProgramsMenu</a></li>
<li>1.5. <a href="#robo256">ProgramsMenu/ProgramsMenu.GetProgramName</a></li>
<li>1.6. <a href="./programsmenu_adb.html#robo378">ProgramsMenu/ProgramsMenu.Hide_On_Focus_Out_Command</a></li>
<li>1.7. <a href="./programsmenu_adb.html#robo379">ProgramsMenu/ProgramsMenu.Search_Program_Command</a></li>
<li>1.8. <a href="./programsmenu_adb.html#robo380">ProgramsMenu/ProgramsMenu.Set_Application_Command</a></li>
<li>1.9. <a href="#robo381">ProgramsMenu/ProgramsMenu.Toggle_Applications_Menu_Command</a></li>
</ul>
</ul>
<hr />
<a name="ProgramsMenu2fProgramsMenu"></a>
<a name="robo34"></a><h2>ProgramsMenu/ProgramsMenu [ Packages ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../robo_packages.html#robo_top_of_doc">Packages</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Provides code for manipulate associated programs with files.
</pre>
<p class="item_name">SOURCE</p>
<pre class="source"><span class="keyword">package</span> <strong>ProgramsMenu</strong> <span class="keyword">is</span>
</pre>

<hr />
<a name="ProgramsMenu2fProgramsMenu2eCreateProgramsMenu"></a>
<a name="robo255"></a><h2>ProgramsMenu/ProgramsMenu.CreateProgramsMenu [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo34">ProgramsMenu</a> ] [ <a href="../robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Create associated programs menu popover
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">procedure</span> CreateProgramsMenu<span class="sign">;</span>
</pre>

<hr />
<a name="ProgramsMenu2fProgramsMenu2eGetProgramName"></a>
<a name="robo256"></a><h2>ProgramsMenu/ProgramsMenu.GetProgramName [ Subprograms ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo34">ProgramsMenu</a> ] [ <a href="../robo_subprograms.html#robo_top_of_doc">Subprograms</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Search for name of application associated with selected desktop file
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">function</span> GetProgramName<span class="sign">(</span>DesktopFile<span class="sign">:</span> String<span class="sign">)</span> <span class="keyword">return</span> String<span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> DesktopFile - File name of .desktop file to search
</pre>
<p class="item_name">RESULT</p>
<pre> Name of the application associated with the selected desktop file or
 DesktopFile if application was not found
</pre>

<hr />
<a name="ProgramsMenu2fProgramsMenu2eToggle5fApplications5fMenu5fCommand"></a>
<a name="robo381"></a><h2>ProgramsMenu/ProgramsMenu.Toggle_Applications_Menu_Command [ Commands ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo34">ProgramsMenu</a> ] [ <a href="../robo_commands.html#robo_top_of_doc">Commands</a> ]</p>
<p class="item_name">FUNCTION</p>
<pre> Show or hide menu which allow to set a application which can be used
 to execute the selected file or directory
</pre>
<p class="item_name">SOURCE</p>
<pre class="source">   <span class="keyword">function</span> Toggle_Applications_Menu_Command
     <span class="sign">(</span>ClientData<span class="sign">:</span> Integer<span class="sign">;</span> Interp<span class="sign">:</span> Tcl<span class="sign">.</span>Tcl_Interp<span class="sign">;</span> Argc<span class="sign">:</span> Interfaces<span class="sign">.</span>C<span class="sign">.</span>int<span class="sign">;</span>
      Argv<span class="sign">:</span> CArgv<span class="sign">.</span>Chars_Ptr_Ptr<span class="sign">)</span> <span class="keyword">return</span> Interfaces<span class="sign">.</span>C<span class="sign">.</span>int <span class="keyword">with</span>
      Convention <span class="sign">=</span><span class="sign">&gt;</span> C<span class="sign">;</span>
</pre>
<p class="item_name">PARAMETERS</p>
<pre> ClientData - Custom data send to the command. Unused
 Interp     - Tcl interpreter in which command was executed.
 Argc       - Number of arguments passed to the command. Unused
 Argv       - Values of arguments passed to the command. Unused
</pre>
<p class="item_name">RESULT</p>
<pre> This function always return TCL_OK
</pre>
<p class="item_name">COMMANDS</p>
<pre> ToggleApplicationsMenu
</pre>

</div> <!-- content -->
<div id="footer">
<p>Generated from ./src/gui/programsmenu.ads with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.43 on Sun Aug 08 2021 07:39:39
</p>
</div> <!-- footer -->
</body>
</html>

