<?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 cursor position in editbox after callback in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845592#M63561</link>
    <description>&lt;DIV&gt;Hallo,&lt;/DIV&gt;
&lt;DIV&gt;I'm bothered with the same problem, when entering numbers in the edit box, the order is reversed. It happened after a call to DlgSet( DLG_COLOR ). Now I found out that this problem will not occur, when in XFLOGM.f90 -Version of Mr. Dujic, which I use - the statements &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;! Note that the dialog needs to be updated&lt;BR /&gt;!!!*** dlg % dirty = .true.&lt;BR /&gt;!!!*** dlg % list(i) % dirty = .true.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;are commented, whatever that means. Maybe this will be a help to you, unless you have solved your problem otherwise.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;WP&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Nov 2003 18:49:01 GMT</pubDate>
    <dc:creator>presser</dc:creator>
    <dc:date>2003-11-28T18:49:01Z</dc:date>
    <item>
      <title>cursor position in editbox after callback</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845592#M63561</link>
      <description>&lt;DIV&gt;Hallo,&lt;/DIV&gt;
&lt;DIV&gt;I'm bothered with the same problem, when entering numbers in the edit box, the order is reversed. It happened after a call to DlgSet( DLG_COLOR ). Now I found out that this problem will not occur, when in XFLOGM.f90 -Version of Mr. Dujic, which I use - the statements &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;! Note that the dialog needs to be updated&lt;BR /&gt;!!!*** dlg % dirty = .true.&lt;BR /&gt;!!!*** dlg % list(i) % dirty = .true.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;are commented, whatever that means. Maybe this will be a help to you, unless you have solved your problem otherwise.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;WP&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Nov 2003 18:49:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845592#M63561</guid>
      <dc:creator>presser</dc:creator>
      <dc:date>2003-11-28T18:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: cursor position in editbox after callback</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845593#M63562</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;If the edit box callback routine handles the edit box message by reading the contents (using DLGGET)and then updating it again, using DLGSET, then I have found this annoying thing to happen, what you type spreads out to the left from the cursor position. My work-around is to create an invisible button and make it the default button (only one control can be the default in a dialog box), so that when ENTER is pressed after ending your editing of the edit box contents, the default button's code is sent to its call-back routine (which can be the same as the edit box's call back) and it can be handled and the edit box contents can then be read and updated as you like. The edit box contents are then only updated when you press ENTER (so long asa you remove any DLGSET to the edit box when handling the edit box message in its call back routine). Hope this helps.&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Nov 2003 19:28:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845593#M63562</guid>
      <dc:creator>isn-removed200637</dc:creator>
      <dc:date>2003-11-28T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: cursor position in editbox after callback</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845594#M63563</link>
      <description>&lt;P&gt;Am I missing the original post in this thread? I can only guess what the original problem was.&lt;/P&gt;
&lt;P&gt;I think (without digging into code and without seeing the original post) that the problem is that SetWindowText/WM_SETTEXT for edit control places the cursor at the end of selection. If you do that in the middle of user's typing, that could certainly be annoying.&lt;/P&gt;
&lt;P&gt;I think the workaround could be to place something like following into DLG_UPDATE/DLG_CHANGE callback:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;i = DlgSendCtrlMessage(Dlg, IDC_EDIT1, EM_GETSEL, LOC(iStart), LOC(iEnd))&lt;BR /&gt;!Digest contents of edit box&lt;BR /&gt;i = DlgSet(Dlg, IDC_EDIT1, whatever)&lt;BR /&gt;i = DlgSendCtrlMessage(Dlg, IDC_EDIT1, EM_SETSEL, iStart, iEnd)&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;In this way, the caret should stay in the same position as it was before the user's typing.&lt;/P&gt;
&lt;P&gt;Jugoslav&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 29 Nov 2003 00:16:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845594#M63563</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-11-29T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: cursor position in editbox after callback</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845595#M63564</link>
      <description>&lt;DIV&gt;The first part of the thread is &lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=5&amp;amp;message.id=1725" target="_blank"&gt;here&lt;/A&gt;.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;There is a forum bug where if you are not logged in and click Reply, after logging in you're taken to a pseudo-new-message form.&lt;/DIV&gt;&lt;P&gt;Message Edited by MADsblionel on &lt;SPAN class="date_text"&gt;11-29-2003&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:09 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2003 08:09:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/cursor-position-in-editbox-after-callback/m-p/845595#M63564</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-11-30T08:09:25Z</dc:date>
    </item>
  </channel>
</rss>

