<?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: UI_INFIELD{3}  method 4 -rows &amp;amp; columns in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185262#M21560</link>
    <description>Thanks Ralph, thats just saved me a few hours!&lt;BR /&gt;
I'll give it a go.</description>
    <pubDate>Mon, 08 Feb 2010 13:27:09 GMT</pubDate>
    <dc:creator>Richard Swann</dc:creator>
    <dc:date>2010-02-08T13:27:09Z</dc:date>
    <item>
      <title>UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185256#M21554</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi,&lt;BR /&gt;
In the Interface script there appears to be a problem with the UI_INFIELD{3} command. I have searched the wiki and forum, but it has never been documented as far as I can tell, so this is a stake in the ground for other lost soles who encounter the same issue.  If anyone knows how this can work or confirm that it doesn't, please reply..&lt;BR /&gt;
&lt;BR /&gt;
I want to create image buttons. It works fine on macs to create an image over a UI_button, but on pcs they disappear when the curser moves over them. So I have tried to use the UI_INFIELD command as an alternative.&lt;BR /&gt;
Using method 4 :  quote from the user manual:
&lt;BLOCKQUOTE&gt;
"&lt;BR /&gt;
UI_INFIELD{3} name, x, y, width, height [, method, picture_name, images_number, rows_number, cell_x, cell_y, image_x, image_y, expression_image1, text1, value_definition1,...&lt;BR /&gt;
&lt;BR /&gt;
method: the type of the thumbnail control &lt;BR /&gt;
1: List view control &lt;BR /&gt;
2: Popup menu control &lt;BR /&gt;
3: Popup icon radio control &lt;BR /&gt;
4: Push icon radio control &lt;BR /&gt;
picture_name: name of the common image file containing a matrix of concatenated images, or empty string &lt;BR /&gt;
images_number: number of images in the matrix &lt;BR /&gt;
rows_number: number of rows of the matrix 
&lt;/BLOCKQUOTE&gt;

In fact this is not correct as the "rows number" has no effect on the push icon display. It always displays 1 image per column.ie 1 row and ignores the image and cell width that I set.&lt;BR /&gt;
I have tried subdividing one image and using multiple images but always with the same result. The same is also true of method 3.&lt;BR /&gt;
&lt;BR /&gt;
I am writing a library part for AC11 but 12 and 13 show the same behavior.&lt;BR /&gt;
&lt;BR /&gt;
My script is:&lt;BR /&gt;
UI_INFIELD{3} "SAP", 0, 27, 110, 210, 4, "allbut.psd", 7,7, 110, 30, 110, 29, &lt;BR /&gt;
	1," ","2" , &lt;BR /&gt;
	2," ","3",&lt;BR /&gt;
	3," ","7",&lt;BR /&gt;
	4," ","8" ,&lt;BR /&gt;
	5," ","6",&lt;BR /&gt;
	6," ","5",&lt;BR /&gt;
	7," ","9"&lt;BR /&gt;
&lt;BR /&gt;
The result is as shown on the attached, should be 7 ROWS not 1 row.&lt;BR /&gt;
&lt;BR /&gt;
Anyone with any experience of this?&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/7001i0FECD1EA8DBCB1C3/image-size/large?v=v2&amp;amp;px=999" border="0" alt="screenshot1.png" title="screenshot1.png" /&gt;</description>
      <pubDate>Mon, 08 Feb 2010 00:57:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185256#M21554</guid>
      <dc:creator>Richard Swann</dc:creator>
      <dc:date>2010-02-08T00:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185257#M21555</link>
      <description>Yes, it seems you are right, that it is not possible to define separate rows.&lt;BR /&gt;
An alternative is this:&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD{3} "Seite2", 111, 1, 50, 25,&lt;BR /&gt;
5, "file.gif", 1,&lt;BR /&gt;
1, 20, 20, 20, 20,&lt;BR /&gt;
0, "Bestueck.", 0&lt;BR /&gt;
&lt;BR /&gt;
and so on. One command for any row.&lt;BR /&gt;
&lt;BR /&gt;
But additionally you have to adjust the parameters by every click on a button.&lt;BR /&gt;
&lt;BR /&gt;
  IF GLOB_MODPAR_NAME = "Seite1" THEN&lt;BR /&gt;
  PARAMETERS Seite1=1,Seite2=0,Seite3=0,Seite4=0&lt;BR /&gt;
		ENDIF&lt;BR /&gt;
  IF GLOB_MODPAR_NAME = "Seite2" THEN&lt;BR /&gt;
  PARAMETERS Seite1=0,Seite2=1,Seite3=0,Seite4=0&lt;BR /&gt;
        ENDIF&lt;BR /&gt;
  IF GLOB_MODPAR_NAME = "Seite3" THEN&lt;BR /&gt;
  PARAMETERS Seite1=0,Seite2=0,Seite3=1,Seite4=0&lt;BR /&gt;
        ENDIF&lt;BR /&gt;
  IF GLOB_MODPAR_NAME = "Seite4" THEN&lt;BR /&gt;
  PARAMETERS Seite1=0,Seite2=0,Seite3=0,Seite4=1&lt;BR /&gt;
        ENDIF&lt;BR /&gt;
&lt;BR /&gt;
And it works with method 5, which was introduced with AC 12.</description>
      <pubDate>Mon, 08 Feb 2010 11:50:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185257#M21555</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2010-02-08T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185258#M21556</link>
      <description>Just checked the other versions of UI_INFIELD and they all behave the same way, each image is a column not a row, so at least they are consistently wrong! &lt;BR /&gt;
I think the 'number rows' feature only works for list views. &lt;BR /&gt;
 If anyone at GS is reading this, it would be great to implement a version of UI_button with an optional field for an image..</description>
      <pubDate>Mon, 08 Feb 2010 12:14:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185258#M21556</guid>
      <dc:creator>Richard Swann</dc:creator>
      <dc:date>2010-02-08T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185259#M21557</link>
      <description>try this&lt;BR /&gt;
&lt;BR /&gt;
UI_PICT_BUTTON type, text, picture_reference, x, y, width, height [, id [, url]]&lt;BR /&gt;
&lt;BR /&gt;
using a .png it works for me in PC and Mac. Its in v12 and v13. Not so sure about v11</description>
      <pubDate>Mon, 08 Feb 2010 12:48:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185259#M21557</guid>
      <dc:creator>Ben Cohen</dc:creator>
      <dc:date>2010-02-08T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185260#M21558</link>
      <description>&lt;BLOCKQUOTE&gt;Richard wrote:&lt;BR /&gt;I want to create image buttons. It works fine on macs to create an image over a UI_button, but on pcs they disappear when the curser moves over them.&lt;/BLOCKQUOTE&gt;
You can get the picture button to work if you use a combination of 			&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ui_pict_button&lt;E&gt;&lt;/E&gt; and &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ui_pict&lt;E&gt;&lt;/E&gt;. Unfortunately the GDL UI commands are quite buggy, but this combo works around it because:&lt;UL&gt;&lt;LI&gt;1. ui_pict_button looks right and works correctly on Windows, but only displays black &amp;amp; white on the Mac&lt;BR /&gt;
2. ui_pict works correctly when overlaid on a button on the Mac, but vanishes (as you noted) on Windows.&lt;/LI&gt;&lt;/UL&gt;Therefore, the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ui_pict_button&lt;E&gt;&lt;/E&gt; provides the button functionality on the Mac (but remaining hidden) and the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ui_pict&lt;E&gt;&lt;/E&gt; provides the picture, while the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ui_pict_button&lt;E&gt;&lt;/E&gt; provide the button and picture functionality on Windows. Messy, but it gets you there.</description>
      <pubDate>Mon, 08 Feb 2010 13:00:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185260#M21558</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-02-08T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185261#M21559</link>
      <description>Thanks for the UI_PICT_BUTTON tip, that looks just the job as an alternative.&lt;BR /&gt;
Thanks GS for fulfilling my wish before I had it!&lt;BR /&gt;
 I have been trying to keep all library parts AC11- compatible so I don't think this would work for that, but it looks easier than the UI_INFIELD.&lt;BR /&gt;
I have got round the problem using a method 1 list view but with the frame size larger than the content it does away with the scroll bar slider, so it looks and acts pretty much like a method 4 version.</description>
      <pubDate>Mon, 08 Feb 2010 13:23:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185261#M21559</guid>
      <dc:creator>Richard Swann</dc:creator>
      <dc:date>2010-02-08T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: UI_INFIELD{3}  method 4 -rows &amp; columns</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185262#M21560</link>
      <description>Thanks Ralph, thats just saved me a few hours!&lt;BR /&gt;
I'll give it a go.</description>
      <pubDate>Mon, 08 Feb 2010 13:27:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-INFIELD-3-method-4-rows-amp-columns/m-p/185262#M21560</guid>
      <dc:creator>Richard Swann</dc:creator>
      <dc:date>2010-02-08T13:27:09Z</dc:date>
    </item>
  </channel>
</rss>

