<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to determine the pixel-width of a widgets text in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-determine-the-pixel-width-of-a-widgets-text/m-p/15467#M7180</link>
    <description>&lt;BLOCKQUOTE&gt;John wrote:&lt;BR /&gt;Hi &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;  &lt;BR /&gt;
I see a way to get the maximum length of the widgets font. (API_FontType.widMax)  
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
oh, i think these has nothing to do with the fonts of GUI-Widgets. &lt;BR /&gt;
I just tried a little bit and choosed 5.4 as standard width of a letter. &lt;BR /&gt;
Hmm. &lt;BR /&gt;
 &lt;BR /&gt;
Example: &lt;BR /&gt;
Creation of two labels: &lt;BR /&gt;
Text of Label1 = "iiiiiiiiii" (10 letters) &lt;BR /&gt;
Text of Label2 = "wwwwwwwwww" (10 letters) &lt;BR /&gt;
 &lt;BR /&gt;
the labels will look like that: &lt;BR /&gt;
&amp;lt;_iiiiiiiiii__________&amp;gt;&lt;BR /&gt;
&amp;lt;_wwwwwwwwww_&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
but i'am searching for a way to let them look like that: &lt;BR /&gt;
&amp;lt;_iiiiiiiiii_&amp;gt;&lt;BR /&gt;
&amp;lt;_wwwwwwwwww_&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
any hints?</description>
    <pubDate>Tue, 27 Jun 2006 15:00:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-27T15:00:30Z</dc:date>
    <item>
      <title>how to determine the pixel-width of a widgets text</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-determine-the-pixel-width-of-a-widgets-text/m-p/15466#M7179</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;&lt;BR /&gt;My addon is dynamically creating widgets. &lt;BR /&gt;Example: &lt;BR /&gt;Buttons are created and the width of the buttons should fit the width of text of the buttons. &lt;BR /&gt;The buttons text is not known before so i need to get the pixel width of the text at run time. &lt;BR /&gt;&lt;BR /&gt;I see a way to get the maximum length of the widgets font. (API_FontType.widMax) &lt;BR /&gt;("w" is longer than "i"...) &lt;BR /&gt;I could multiply that with the number of characters, but perhaps someone has a hint how to determine the exact length of a widget-text? &lt;BR /&gt;&lt;BR /&gt;greetings, &lt;BR /&gt;John&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 09:08:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-determine-the-pixel-width-of-a-widgets-text/m-p/15466#M7179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to determine the pixel-width of a widgets text</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-determine-the-pixel-width-of-a-widgets-text/m-p/15467#M7180</link>
      <description>&lt;BLOCKQUOTE&gt;John wrote:&lt;BR /&gt;Hi &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;  &lt;BR /&gt;
I see a way to get the maximum length of the widgets font. (API_FontType.widMax)  
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
oh, i think these has nothing to do with the fonts of GUI-Widgets. &lt;BR /&gt;
I just tried a little bit and choosed 5.4 as standard width of a letter. &lt;BR /&gt;
Hmm. &lt;BR /&gt;
 &lt;BR /&gt;
Example: &lt;BR /&gt;
Creation of two labels: &lt;BR /&gt;
Text of Label1 = "iiiiiiiiii" (10 letters) &lt;BR /&gt;
Text of Label2 = "wwwwwwwwww" (10 letters) &lt;BR /&gt;
 &lt;BR /&gt;
the labels will look like that: &lt;BR /&gt;
&amp;lt;_iiiiiiiiii__________&amp;gt;&lt;BR /&gt;
&amp;lt;_wwwwwwwwww_&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
but i'am searching for a way to let them look like that: &lt;BR /&gt;
&amp;lt;_iiiiiiiiii_&amp;gt;&lt;BR /&gt;
&amp;lt;_wwwwwwwwww_&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
any hints?</description>
      <pubDate>Tue, 27 Jun 2006 15:00:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-determine-the-pixel-width-of-a-widgets-text/m-p/15467#M7180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-27T15:00:30Z</dc:date>
    </item>
  </channel>
</rss>

