<?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: Is it possible to disable button in GUI in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593624#M88956</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I would add a node to the buttons attribute tree and use its value as a condition in the OnPress code. Other parts of the GUI/model can then change the node's value and thus activate the buttons functionality.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518041iC8F49334616FF1E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="buttonexample.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518045i6295A4523BE7B0AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="buttonexample.gif" alt="buttonexample.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/70404-deactivate-button-fm.fsm" target="_blank"&gt;deactivate-button-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 03 Jul 2023 08:27:54 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2023-07-03T08:27:54Z</dc:date>
    <item>
      <title>Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593623#M88955</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I would like to ask if it is possible to disable button in GUI by code? I would like to have one button disabled by default and then activate it based on some action?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you a lot,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Martin&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 07:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593623#M88955</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2023-07-03T07:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593624#M88956</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I would add a node to the buttons attribute tree and use its value as a condition in the OnPress code. Other parts of the GUI/model can then change the node's value and thus activate the buttons functionality.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518041iC8F49334616FF1E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture1.png" alt="capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="buttonexample.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518045i6295A4523BE7B0AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="buttonexample.gif" alt="buttonexample.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/70404-deactivate-button-fm.fsm" target="_blank"&gt;deactivate-button-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 08:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593624#M88956</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-03T08:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593625#M88957</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; is it possible to transfer a button object to an inactive gui?&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 09:50:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593625#M88957</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-07-03T09:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593626#M88958</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Interesting question. I don't know to be honest.&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:15:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593626#M88958</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-03T10:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593627#M88959</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You should use:&lt;/P&gt;&lt;PRE&gt;treenode button= ........ &amp;nbsp;//your button path
windowgray(windowfromnode(button),0); &amp;nbsp;// use 0 or 1 - reflecting the graystate.&lt;/PRE&gt;&lt;P&gt;This way the button is inactive &lt;EM&gt;and&lt;/EM&gt; visibly disabled .  This way it's clear to users that they should not try pressing the button and will not be left wondering if it worked or why it did not.&lt;/P&gt;&lt;P&gt;You could alternatively hide/show the button completely with:&lt;/P&gt;&lt;PRE&gt;windowshow(windowfromnode(button),0); &amp;nbsp;// 0 or 1 to reflect the hidden state&lt;/PRE&gt;&lt;P&gt;but that could leave a user puzzled as to why they don't find a button they were sure they'd seen on that gui.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593627#M88959</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-07-03T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to disable button in GUI</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593628#M88960</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yes, thank you a lot. This is what I was looking for.
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 11:15:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/is-it-possible-to-disable-button-in-gui/m-p/13593628#M88960</guid>
      <dc:creator>martin_k5</dc:creator>
      <dc:date>2023-07-03T11:15:06Z</dc:date>
    </item>
  </channel>
</rss>

