<?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 Sound like you have dialogs in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067399#M118760</link>
    <description>&lt;P&gt;Sound like you have dialogs and the Quickwin frame window (usually with menus). The unit number of the frame window is in the constant&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 12.1333px;"&gt;QWIN$FRAMEWINDOW&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 08:55:22 GMT</pubDate>
    <dc:creator>andrew_4619</dc:creator>
    <dc:date>2016-02-12T08:55:22Z</dc:date>
    <item>
      <title>QuickWin - setting dialog focus</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067394#M118755</link>
      <description>&lt;P&gt;I've recompiled an old QuickWin project.&lt;/P&gt;

&lt;P&gt;It uses&amp;nbsp;a dialog to specify some parameters then draws graphics in the&amp;nbsp;full screen, then displays the dialog again with the results.&lt;/P&gt;

&lt;P&gt;I'm finding that the dialog is losing focus and is behind the graphics. If I click on the screen the dialog is displayed.&lt;/P&gt;

&lt;P&gt;How do I set focus to the dialog using Quickwin?&lt;/P&gt;

&lt;P&gt;I have tried:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;iret=SetFocus(GetDlgItem(dlg%hwnd,IDC_JOB3))&lt;/PRE&gt;

&lt;P&gt;But I have a note that it didn't work before and it doesn't work this time.&lt;/P&gt;

&lt;P&gt;Maybe the solution is to rewrite it as a proper Windows application.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:14:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067394#M118755</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-10T15:14:50Z</dc:date>
    </item>
    <item>
      <title>If that is a modal dialog I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067395#M118756</link>
      <description>&lt;P&gt;If that is a modal dialog I think you need to call focusqq for its parent window.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:00:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067395#M118756</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-10T20:00:06Z</dc:date>
    </item>
    <item>
      <title>Thanks, I had seen the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067396#M118757</link>
      <description>&lt;P&gt;Thanks, I had seen the documentation for focusQQ but wasn't sure what parameter I send - the example give a unit number.&lt;/P&gt;

&lt;P&gt;I tried:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;iret=focusQQ(GetDlgItem(dlg%hwnd,IDC_JOB3))&lt;/PRE&gt;

&lt;P&gt;where IDC_JOB3 is the dialog I want to get focus.&lt;/P&gt;

&lt;P&gt;Nothing happens.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:17:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067396#M118757</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-11T08:17:15Z</dc:date>
    </item>
    <item>
      <title>https://software.intel.com/en</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067397#M118758</link>
      <description>&lt;P&gt;&lt;A href="https://software.intel.com/en-us/node/535326" target="_blank"&gt;https://software.intel.com/en-us/node/535326&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;when you open a quickwin child window is has a fortran unit number. this is not a windows handle.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 20:12:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067397#M118758</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-11T20:12:36Z</dc:date>
    </item>
    <item>
      <title>Looking at examples they have</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067398#M118759</link>
      <description>&lt;P&gt;Looking at examples they have:&lt;/P&gt;

&lt;P&gt;OPEN (UNIT= 12, FILE= 'USER', TITLE= 'Product Matrix')&lt;/P&gt;

&lt;P&gt;to open a window - this gives something like a command line box with simple text.&lt;/P&gt;

&lt;P&gt;I have a proper dialog box with labels, text boxes &amp;amp; buttons. The only OPEN statements I have are to OPEN files to for read &amp;amp; write.&lt;/P&gt;

&lt;P&gt;Therefore I'm not sure where I get this Unit number from.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 08:27:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067398#M118759</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-12T08:27:45Z</dc:date>
    </item>
    <item>
      <title>Sound like you have dialogs</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067399#M118760</link>
      <description>&lt;P&gt;Sound like you have dialogs and the Quickwin frame window (usually with menus). The unit number of the frame window is in the constant&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 12.1333px;"&gt;QWIN$FRAMEWINDOW&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 08:55:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067399#M118760</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-12T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Thanks for your help. I tried</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067400#M118761</link>
      <description>&lt;P&gt;Thanks for your help. I tried adding&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;iret=focusQQ(QWIN$FRAMEWINDOW)&lt;/PRE&gt;

&lt;P&gt;but it had no effect.&lt;/P&gt;

&lt;P&gt;I think a screen dump might help to show what is going on.&lt;/P&gt;

&lt;P&gt;I have a dialog box where I enter some info, when I press 'Calculate' an image is then drawn on the frame window. At the end I want the dialog box to reappear showing the results. I have to click on the frame window and the dialog reappears. I have shown a screen dump&amp;nbsp;showing the result after clicking on the frame window.&lt;/P&gt;

&lt;P&gt;I think I need to be setting focus to the dialog box not the frame window.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 10:05:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067400#M118761</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-12T10:05:38Z</dc:date>
    </item>
    <item>
      <title>You can set the window Z</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067401#M118762</link>
      <description>&lt;P&gt;You can set the window Z order with an API call&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; istat=SetWindowPos(ihandle,ivert,ixpos,iypos,0,0,uflags)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !endif&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !(ivert) hWndInsertAfter &amp;nbsp;Either the handle of the window to position this window behind, or exactly one&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ! of the following flags stating where in the Z-order to put the window:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !HWND_BOTTOM &amp;nbsp; &amp;nbsp; = 1 &amp;nbsp;! Put the window at the bottom of the Z-order.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !HWND_NOTOPMOST &amp;nbsp;=-2 &amp;nbsp;! Put the window below all topmost windows and above all non-topmost windows.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !HWND_TOP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0 &amp;nbsp;! Put the window at the top of the Z-order.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !HWND_TOPMOST &amp;nbsp; &amp;nbsp;= -1 ! Make the window topmost (above all other windows) permanently&lt;/P&gt;

&lt;P&gt;read&lt;/P&gt;

&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545(v=vs.85).aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545(v=vs.85).aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 10:48:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067401#M118762</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-12T10:48:53Z</dc:date>
    </item>
    <item>
      <title>I have not used quickwin for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067402#M118763</link>
      <description>&lt;P&gt;I have not used quickwin for a long time but that seems strange. Modal dialogs created with IFLOGM I recall were always higher z order than the parent window. Do you create this dialog with DLGMODAL or DLGMODELESS &amp;nbsp;by the way?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 10:53:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067402#M118763</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-12T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Thanks, I tried that code but</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067403#M118764</link>
      <description>&lt;P&gt;Thanks, I tried that code but nothing happened (maybe I didn't do it right)&lt;/P&gt;

&lt;P&gt;I'm calling the dialog using DlgModal.&lt;/P&gt;

&lt;P&gt;I think I will try to convert the program from QuickWin to an proper Windows Application.&amp;nbsp;That will make it more consistent with other programs in the suite.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:14:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067403#M118764</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-12T11:14:08Z</dc:date>
    </item>
    <item>
      <title>This should be an easy</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067404#M118765</link>
      <description>&lt;P&gt;This should be an easy problem to fix.&lt;/P&gt;

&lt;P&gt;What is the program flow I guess:&lt;/P&gt;

&lt;P&gt;1) program create frame window&lt;/P&gt;

&lt;P&gt;2) Create dialog via initialsettings and goes model?&lt;/P&gt;

&lt;P&gt;3) In dialog callback routine to some user input e.g. button press) you draw to the frame window (?? using api or quickwin?)&lt;/P&gt;

&lt;P&gt;4) At 3) frame window comes to top and on completion of callback drawing stays there.&lt;/P&gt;

&lt;P&gt;Some bits of code might help, where are you trying to set focus/ z order. Just saying it didn't work doesn't give much option for anyone to help / comment.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:24:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067404#M118765</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-12T11:24:57Z</dc:date>
    </item>
    <item>
      <title>When I started looking at</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067405#M118766</link>
      <description>&lt;P&gt;When I started looking at this the other day&amp;nbsp;it was&amp;nbsp;displaying the frame window in front of the dialog window so I couldn't start entering the info on the dialog.&lt;/P&gt;

&lt;P&gt;I therefore moved the 'Create frame window' to after creating the Dialog.&lt;/P&gt;

&lt;P&gt;After the change, I could at least enter the data but then was not able to see the results at the end.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;From your suggested order, changing it back to what it was has worked.&lt;/P&gt;

&lt;P&gt;When I say it works, is when the dialog is in front of the frame, saying it&amp;nbsp;doesn't work means that the dialog is displayed behind&amp;nbsp;the frame window.&lt;/P&gt;

&lt;P&gt;I have taken a previous backup of the code and compiled it and it 'works' first time without any changes, i.e. the dialog is displayed in front of the frame as required.&lt;/P&gt;

&lt;P&gt;I don't know what went wrong but it is now OK.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:57:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067405#M118766</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2016-02-12T11:57:08Z</dc:date>
    </item>
    <item>
      <title>you can always minimise the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067406#M118767</link>
      <description>&lt;P&gt;you can always minimise the dialog if you have the minimise maximise etc options switched on.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:41:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/QuickWin-setting-dialog-focus/m-p/1067406#M118767</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-02-12T14:41:12Z</dc:date>
    </item>
  </channel>
</rss>

