📄 group__sys__text.htm
字号:
<p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l03023">3023</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="minigui.h::IDS_MGST_START"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_START 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the start system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02837">2837</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga27" doxytag="minigui.h::IDS_MGST_SWITCHLAYER"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_SWITCHLAYER 23 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the switch layer system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02969">2969</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga34" doxytag="minigui.h::IDS_MGST_UP"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_UP 30 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the up system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l03011">3011</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga48" doxytag="minigui.h::IDS_MGST_W"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_W 44 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the write system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l03095">3095</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="minigui.h::IDS_MGST_WINDOW"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_WINDOW 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the window system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02831">2831</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga49" doxytag="minigui.h::IDS_MGST_WR"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_WR 45 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the read and write system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l03101">3101</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga18" doxytag="minigui.h::IDS_MGST_YES"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define IDS_MGST_YES 14 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the yes system text. <p><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02915">2915</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="minigui.h::GetSysText"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const char * GetSysText </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>id</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Translates system text to localized text. <p>When MiniGUI display some system messages, it will call <em>GetSysText</em> function to translate system text from English to other language. Global variable <em>SysText</em> contains all text used by MiniGUI in English.<p><em>GetSysText</em> function returns localized text from <em>local_SysText</em>. MiniGUI have already defined localized sytem text for en_US, zh_CN.GB2312 and zh_TW.Big5 locales. MiniGUI initializes <em>local_SysText</em> to point one of above localized system text when startup. You can also let <em>local_SysText</em> point to your customized string array.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>id</em> </td><td>The system text id. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The localized text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__text.htm#ga0">SysText</a>, <a class="el" href="group__sys__text.htm#ga1">local_SysText</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="minigui.h::GetSysTextInUTF8"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const char **GUIAPI GetSysTextInUTF8 </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>language</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the localized system text array in UTF-8 for a specified language. <p>This function returns the localized system text array in UTF-8 encode for the specified language. You can use the returned localized system text array to set <em>local_SysText</em> if your system logical fonts are using UNICODE/UTF-8 charset.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>language</em> </td><td>The language name. So far, you can specify the language as 'zh_CN' (for simlified Chinese) or 'zh_TW' (for tranditional Chinese).</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pointer to the localized system text array.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__text.htm#ga0">SysText</a>, <a class="el" href="group__sys__text.htm#ga1">local_SysText</a> </dd></dl> </td> </tr></table><hr><h2>Variable Documentation</h2><a class="anchor" name="ga1" doxytag="minigui.h::local_SysText"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const char ** <a class="el" href="group__sys__text.htm#ga1">local_SysText</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The pointer to the current localized system text array. <p>Changing <em>local_SysText</em> will lead to <em>GetSysText</em> returns a different localized system text. Please set it after calling <em>SetDesktopRect</em>, and send desktop a MSG_REINITSESSION message (call <em>ReinitDesktop</em> function) after assigned a different value to this variable.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__text.htm#ga2">GetSysText</a>, <a class="el" href="group__sys__text.htm#ga0">SysText</a>, <a class="el" href="group__init__fns.htm#ga4">ReinitDesktopEx</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="minigui.h::SysText"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const char * <a class="el" href="group__sys__text.htm#ga0">SysText</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Contains all text used by MiniGUI in English. <p>System text defined as follows in MiniGUI:<p><div class="fragment"><pre class="fragment"> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__sys__text.htm#ga0">SysText</a> [] = { <span class="stringliteral">"Windows..."</span>, <span class="stringliteral">"Start..."</span>, <span class="stringliteral">"Refresh Background"</span>, <span class="stringliteral">"Close All Windows"</span>, <span class="stringliteral">"End Session"</span>, <span class="stringliteral">"Operations..."</span>, <span class="stringliteral">"Minimize"</span>, <span class="stringliteral">"Maximize"</span>, <span class="stringliteral">"Restore"</span>, <span class="stringliteral">"Close"</span>, <span class="stringliteral">"OK"</span>, <span class="stringliteral">"Next"</span>, <span class="stringliteral">"Cancel"</span>, <span class="stringliteral">"Previous"</span>, <span class="stringliteral">"Yes"</span>, <span class="stringliteral">"No"</span>, <span class="stringliteral">"Abort"</span>, <span class="stringliteral">"Retry"</span>, <span class="stringliteral">"Ignore"</span>, <span class="stringliteral">"About MiniGUI..."</span>, <span class="stringliteral">"Open File"</span>, <span class="stringliteral">"Save File"</span>, <span class="stringliteral">"Color Selection"</span>, <span class="stringliteral">"Switch Layer"</span>, <span class="stringliteral">"Delete Layer"</span>, <span class="stringliteral">"Error"</span>, <span class="stringliteral">"LOGO"</span>, <span class="stringliteral">"Current Path"</span>, <span class="stringliteral">"File"</span>,<span class="preprocessor"> #if (!defined (__NOUNIX__) || defined (WIN32)) && defined (_EXT_CTRL_LISTVIEW)</span><span class="preprocessor"></span> <span class="stringliteral">"Location"</span>, <span class="stringliteral">"Up"</span>, <span class="stringliteral">"Name"</span>, <span class="stringliteral">"Size"</span>, <span class="stringliteral">"Access Mode"</span>, <span class="stringliteral">"Last Modify Time"</span>, <span class="stringliteral">"Open"</span>, <span class="stringliteral">"File Name"</span>, <span class="stringliteral">"File Type"</span>, <span class="stringliteral">"Show Hide File"</span>, <span class="stringliteral">"Sorry! not find %s "</span>, <span class="stringliteral">"Can't Read %s !"</span>, <span class="stringliteral">"Can't Write %s !"</span>, <span class="stringliteral">"Information"</span>, <span class="stringliteral">"R"</span>, <span class="stringliteral">"W"</span>, <span class="stringliteral">"WR"</span>, <span class="stringliteral">"Save"</span>, <span class="stringliteral">"File %s exists, Replace or not?"</span>,<span class="preprocessor"> #endif</span><span class="preprocessor"></span> <a class="code" href="group__simple__types.htm#ga3">NULL</a> };</pre></div><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__text.htm#ga2">GetSysText</a>, <a class="el" href="group__sys__text.htm#ga1">local_SysText</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -