<?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: Interface page navigation in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233257#M9580</link>
    <description>Standard macros is a good thing, but there is always the danger that in a new release of version of the GS change the script (or remove some parameters) so that the element will stop working. Well if this is a basic macro that you give a link CALL "...", but if it happens in other levels? Eg. windows - doors, a large number of macros. Modern elements are so complex and they have a CALL "..."   a few times (possibly in a circle inside).</description>
    <pubDate>Wed, 11 Nov 2015 10:32:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-11T10:32:28Z</dc:date>
    <item>
      <title>Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233254#M9577</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm developing a fairly complex object that will have many pages in the UI.  I'm trying to mimic the ArchiCAD door page selection method (to keep it familiar for users) but can't figure out how to get the drop-down page selection working with the PREV and NEXT buttons.&lt;BR /&gt;
&lt;BR /&gt;
(I've tried to figure out how Graphisoft do it, but have gotten completely lost amongst all their macro calls.)&lt;BR /&gt;
&lt;BR /&gt;
If I set the UI_CURRENT_PAGE via the drop down selection, the UI_PREV and UI_NEXT don't work, and vice versa.  &lt;BR /&gt;
&lt;BR /&gt;
Any hints?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 08:05:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233254#M9577</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2023-05-24T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233255#M9578</link>
      <description>If I understand correctly, here's a simple example with reference to the standard macro = "ui_tabcontrol"&lt;BR /&gt;
You create a parameter = "gs_ui_current_page"&lt;BR /&gt;
tabTitles - You can also create a parameter or make the array directly in the script interface.&lt;BR /&gt;

&lt;PRE&gt;!!!PARAMETERS SCRIPT 
!!! You must create the parameter named=gs_ui_current_page

VALUES "gs_ui_current_page" 1,2,3	

IF GLOB_UI_BUTTON_ID &amp;gt; 2 and GLOB_UI_BUTTON_ID &amp;lt; 2.1 THEN
	PARAMETERS gs_ui_current_page = GLOB_UI_BUTTON_ID - 2
ENDIF

!!! INTERFACE SCRIPT
UI_DIALOG "SL-GDL" ! Your any text

UI_CURRENT_PAGE gs_ui_current_page
UI_PAGE gs_ui_current_page

DIM tabTitles[3]
	tabTitles[1] = " Parameters"
	tabTitles[2] = " Represent"
	tabTitles[3] = " Info"

UI_BUTTON ui_prev, "&amp;lt;&amp;lt;", 295+10,2, 32,21, gs_ui_current_page - 1 !!!! Previous
UI_BUTTON ui_next, "&amp;gt;&amp;gt;", 295+10+33,2, 32,21, gs_ui_current_page + 1 !!! Next page

!!! HEAD
!!! Example without icons
CALL "ui_tabcontrol" parameters	controlType = 1,
		nTabs = 3,
		gs_ui_current_page = gs_ui_current_page,
		tabTitles = tabTitles,
		drawBox = 1

!!! PAGES

  UI_PAGE 1 
  UI_PAGE 2
  UI_PAGE 3
&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2015 04:47:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233255#M9578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-11T04:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233256#M9579</link>
      <description>Her is a sample for handling ui pages: &lt;A href="http://gdl.graphisoft.com/tips-and-tricks/how-to-set-up-tabpage-controlling-in-ui/" target="_blank"&gt;&lt;LINK_TEXT text="http://gdl.graphisoft.com/tips-and-tric ... ing-in-ui/"&gt;http://gdl.graphisoft.com/tips-and-tricks/how-to-set-up-tabpage-controlling-in-ui/&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Wed, 11 Nov 2015 08:51:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233256#M9579</guid>
      <dc:creator>Gergely Feher</dc:creator>
      <dc:date>2015-11-11T08:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233257#M9580</link>
      <description>Standard macros is a good thing, but there is always the danger that in a new release of version of the GS change the script (or remove some parameters) so that the element will stop working. Well if this is a basic macro that you give a link CALL "...", but if it happens in other levels? Eg. windows - doors, a large number of macros. Modern elements are so complex and they have a CALL "..."   a few times (possibly in a circle inside).</description>
      <pubDate>Wed, 11 Nov 2015 10:32:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233257#M9580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-11T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233258#M9581</link>
      <description>Thanks guys - a great help.  Don't understand it yet, but I'll get there.  Ta</description>
      <pubDate>Wed, 11 Nov 2015 20:48:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233258#M9581</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-11-11T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interface page navigation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233259#M9582</link>
      <description>Got it working.  Turns out the key was adding the "gs_ui_current_page - / + 1" in the UI_BUTTON command.</description>
      <pubDate>Sat, 14 Nov 2015 02:04:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Interface-page-navigation/m-p/233259#M9582</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2015-11-14T02:04:57Z</dc:date>
    </item>
  </channel>
</rss>

