<?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 Change controls from visible to invisible at runtime in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822099#M48199</link>
    <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I want to change the visible flag from some controls of my QuickWin application from visible to invisible at runtime. The reason is, that our program should ship to a customer and we want that he is not able to change certain values or settings.&lt;BR /&gt;&lt;BR /&gt;When editing the resource file with Visual Studio I can set any control the visible flag to false and so that control wont be visible when I run the program.&lt;BR /&gt;&lt;BR /&gt;I could use the disabled flag at runtime of course, but then the controls are still visible and the customers wants to know, why he is not able to change them.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Markus&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Jan 2011 13:00:23 GMT</pubDate>
    <dc:creator>onkelhotte</dc:creator>
    <dc:date>2011-01-18T13:00:23Z</dc:date>
    <item>
      <title>Change controls from visible to invisible at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822099#M48199</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I want to change the visible flag from some controls of my QuickWin application from visible to invisible at runtime. The reason is, that our program should ship to a customer and we want that he is not able to change certain values or settings.&lt;BR /&gt;&lt;BR /&gt;When editing the resource file with Visual Studio I can set any control the visible flag to false and so that control wont be visible when I run the program.&lt;BR /&gt;&lt;BR /&gt;I could use the disabled flag at runtime of course, but then the controls are still visible and the customers wants to know, why he is not able to change them.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Markus&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2011 13:00:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822099#M48199</guid>
      <dc:creator>onkelhotte</dc:creator>
      <dc:date>2011-01-18T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Change controls from visible to invisible at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822100#M48200</link>
      <description>Use ShowWindow API:&lt;BR /&gt;&lt;PRE&gt;[fortran]use ifwin

logical:: visible
integer:: show 
...
show = merge(SW_SHOW, SW_HIDE, visible)
ret = ShowWindow(GetDlgItem(Dlg%hWnd, IDCONTROL), show)[/fortran]&lt;/PRE&gt; Notes:&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;This will work &lt;B&gt;only&lt;/B&gt; while the dialog is alive, i.e. after DlgModal. If you want it at initialization, you have to call it from a dialog-initialization callback (DlgSetSub(DLG_INIT))&lt;/LI&gt;&lt;LI&gt;IDCONTROL is the ID of the control you want to show/hide.&lt;/LI&gt;&lt;LI&gt;I love the scalar MERGE intrinsic, which serves as a one-liner IF/ELSE statement. Adopt at will ;-)&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 18 Jan 2011 15:37:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822100#M48200</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2011-01-18T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Change controls from visible to invisible at runtime</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822101#M48201</link>
      <description>Damn, GetDlgItem was the function I was searching for...&lt;BR /&gt;&lt;BR /&gt;I was thinking about using the ShowWindow function but I didnt found a way to get the hWnd of a control. This happens when you dont program that much in QuickWin any more :-)&lt;BR /&gt;&lt;BR /&gt;The merge intrinsic is cool, reminds me of the old Fortran code of my boss, when he used ifstatements in one line.&lt;BR /&gt;&lt;BR /&gt;Markus</description>
      <pubDate>Tue, 18 Jan 2011 16:08:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-controls-from-visible-to-invisible-at-runtime/m-p/822101#M48201</guid>
      <dc:creator>onkelhotte</dc:creator>
      <dc:date>2011-01-18T16:08:55Z</dc:date>
    </item>
  </channel>
</rss>

