<?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: Set focus on simple dialog project in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804625#M39571</link>
    <description>Thanks, I have used the SetFocus function.&lt;BR /&gt;If the ID is a button then the button is highlighted - but the ID is an edit box - I expect the cursor to be placed at the first character of the edit box ready for typing but nothing appears to happen. Is there something more I have to do?&lt;BR /&gt;&lt;BR /&gt;David</description>
    <pubDate>Tue, 10 Jun 2003 14:37:12 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2003-06-10T14:37:12Z</dc:date>
    <item>
      <title>Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804623#M39569</link>
      <description>I want to set the focus of an edit box on a simple dialog project.&lt;BR /&gt;I can't see anything to do with this in the SetDlg function.&lt;BR /&gt;How do you do it?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David</description>
      <pubDate>Mon, 09 Jun 2003 17:39:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804623#M39569</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-06-09T17:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804624#M39570</link>
      <description>There's no DlgSet equivalent, but you can use SetFocus(GetDlgItem(Dlg%hWnd), idControl), or, better, WM_NEXTDLGCTL. &lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Mon, 09 Jun 2003 21:46:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804624#M39570</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-06-09T21:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804625#M39571</link>
      <description>Thanks, I have used the SetFocus function.&lt;BR /&gt;If the ID is a button then the button is highlighted - but the ID is an edit box - I expect the cursor to be placed at the first character of the edit box ready for typing but nothing appears to happen. Is there something more I have to do?&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Tue, 10 Jun 2003 14:37:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804625#M39571</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-06-10T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804626#M39572</link>
      <description>&lt;I&gt;From where&lt;/I&gt; are you calling SetFocus? This will work only when called from a callback routine (if the dialog is modal) or after DlgModeless (if it's modeless). &lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Tue, 10 Jun 2003 15:03:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804626#M39572</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-06-10T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804627#M39573</link>
      <description>It is being called from  a callback routine from a modal dialog box - I think I have the termonology right.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;
SUBROUTINE IsoCheck(dlg,id,callbacktype )
!-----------------------------------------
!Dialog box callback for Iso Check
use dfwin
use dflogm
use Vol99Globals

include 'resource.fd'
		
type (dialog)	dlg
		
integer*4 id,callbacktype,iret
logical*4 lret

if (callbacktype == dlg_clicked) then
	lret = DlgGet(dlg, id, iso)
	lret = DlgSet(dlg,IDC_JOB3,iso,dlg_enable)
	if (iso) then
		iret=SetFocus(GetDlgItem(dlg%hwnd,IDC_JOB3))
	end if
endif
END SUBROUTINE IsoCheck
&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jun 2003 19:16:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804627#M39573</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-06-10T19:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804628#M39574</link>
      <description>Hmph... don't have time to try this at the moment, but that IMO should have worked. &lt;BR /&gt;&lt;BR /&gt;Still, try Send/PostMessage(Dlg%hWnd, WM_NEXTDLGCTL, 1, GetDlgItem(Dlg%hWnd, IDC_JOB3)) instead. If I recall correctly, that will also select the text within the control, if any.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Tue, 10 Jun 2003 20:17:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804628#M39574</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-06-10T20:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set focus on simple dialog project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804629#M39575</link>
      <description>That didn't work either.&lt;BR /&gt;&lt;BR /&gt;Looking back over all the work I have done, SetFocus has never worked for a Edit Box in a simple dialog application, but is OK on a API application.&lt;BR /&gt;&lt;BR /&gt;There must be something missing in my initialisation.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Wed, 11 Jun 2003 14:32:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Set-focus-on-simple-dialog-project/m-p/804629#M39575</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-06-11T14:32:39Z</dc:date>
    </item>
  </channel>
</rss>

