<?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: Dialog queries in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968733#M23456</link>
    <description>&lt;I&gt;Is there any way I can make the "return" key act like a tab key within a dialog box ? At the moment I trap the "return" key (IDOK) using a dummy callback routine. Could I change the dummy routine to move forward to the next control ? Can I in fact set the focus on a given control ? &lt;/I&gt; &lt;BR /&gt; &lt;BR /&gt;See &lt;A href="http://www.geocities.com/jdujic/fortran/faq/win32FAQ.htm#dlgenternavigate" target="_blank"&gt;here&lt;/A&gt;. You can set focus explicitly using SetFocus(GetDlgItem(Dlg%hWnd, IDC_CONTROL)) or adjust tab stops in dialog editor (Ctrl+D) and send WM_NEXTDLGCTL. &lt;BR /&gt; &lt;BR /&gt;&lt;I&gt;Of lesser concern, is there a way to change the text of an existing list item in a list box ? At the moment I reload the entire list box. &lt;/I&gt; &lt;BR /&gt; &lt;BR /&gt;Yes, that was always possible, though docs could be a bit clearer. Use &lt;BR /&gt;&lt;PRE&gt; 
j = DlgSet(Dlg, IDC_LIST1, "nTh Item", n) 
&lt;/PRE&gt; &lt;BR /&gt;where n is index of the item in the list. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Mon, 08 Oct 2001 18:50:49 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2001-10-08T18:50:49Z</dc:date>
    <item>
      <title>Dialog queries</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968732#M23455</link>
      <description>Hi,  &lt;BR /&gt; &lt;BR /&gt;I am developing a quickwin app using cvf 6.6 . &lt;BR /&gt; &lt;BR /&gt;Is there any way I can make the "return" key act like a tab key within a dialog box ? At the moment I trap the "return" key (IDOK) using a dummy callback routine. Could I change the dummy routine to move forward to the next control ? Can I in fact set the focus on a given control ?  &lt;BR /&gt;  &lt;BR /&gt;Of lesser concern, is there a way to change the text of an existing list item in a list box ? At the moment I reload the entire list box.  &lt;BR /&gt;  &lt;BR /&gt;Bill Buchholz</description>
      <pubDate>Sun, 07 Oct 2001 20:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968732#M23455</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-07T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog queries</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968733#M23456</link>
      <description>&lt;I&gt;Is there any way I can make the "return" key act like a tab key within a dialog box ? At the moment I trap the "return" key (IDOK) using a dummy callback routine. Could I change the dummy routine to move forward to the next control ? Can I in fact set the focus on a given control ? &lt;/I&gt; &lt;BR /&gt; &lt;BR /&gt;See &lt;A href="http://www.geocities.com/jdujic/fortran/faq/win32FAQ.htm#dlgenternavigate" target="_blank"&gt;here&lt;/A&gt;. You can set focus explicitly using SetFocus(GetDlgItem(Dlg%hWnd, IDC_CONTROL)) or adjust tab stops in dialog editor (Ctrl+D) and send WM_NEXTDLGCTL. &lt;BR /&gt; &lt;BR /&gt;&lt;I&gt;Of lesser concern, is there a way to change the text of an existing list item in a list box ? At the moment I reload the entire list box. &lt;/I&gt; &lt;BR /&gt; &lt;BR /&gt;Yes, that was always possible, though docs could be a bit clearer. Use &lt;BR /&gt;&lt;PRE&gt; 
j = DlgSet(Dlg, IDC_LIST1, "nTh Item", n) 
&lt;/PRE&gt; &lt;BR /&gt;where n is index of the item in the list. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Mon, 08 Oct 2001 18:50:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968733#M23456</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-08T18:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog queries</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968734#M23457</link>
      <description>Thanks for your reply. The link certainly made it clear that it can be &lt;BR /&gt;done but I just could not get it to work. I am not sure how to set the parameters. &lt;BR /&gt; &lt;BR /&gt;I had the line: &lt;BR /&gt;STATUS = DLGSENDCTRLMESSAGE (DLG,IDOK,WM_NEXTDLGCTL,0,0) &lt;BR /&gt;which returns false after executing.  &lt;BR /&gt; &lt;BR /&gt;IDOK is the invisible default button mentioned in the link and the  &lt;BR /&gt;callback routine is certainly called when return key is pressed. &lt;BR /&gt; &lt;BR /&gt;The problem is that I don't know the previous and next controls so that &lt;BR /&gt;I can put useful information in the wparam and lparam. And I don't know the usefulness of setting controlid = idok which is simply the ID of the  &lt;BR /&gt;callback routine. &lt;BR /&gt; &lt;BR /&gt;Would really appreciate any help, &lt;BR /&gt; &lt;BR /&gt;Bill</description>
      <pubDate>Mon, 08 Oct 2001 20:24:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968734#M23457</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-08T20:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog queries</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968735#M23458</link>
      <description>WM_NEXTDLGCTL should be sent to the &lt;B&gt;dialog&lt;/B&gt;, i.e. &lt;BR /&gt;&lt;PRE&gt; 
j = SendMessage(Dlg%hWnd, WM_NEXTDLGCTL, 0, 0) !next control 
j = SendMessage(Dlg%hWnd, WM_NEXTDLGCTL, 1, 0) !previous control 
&lt;/PRE&gt; &lt;BR /&gt;If you want finer control, you might play with GetNextDlgTabItem combined with WM_NEXTDLGCTL(but with 1 as lParam), GetDlgItem, GetDlgCtrlID.  &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Mon, 08 Oct 2001 21:18:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968735#M23458</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-10-08T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog queries</title>
      <link>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968736#M23459</link>
      <description>Just to say thanks for the help.  &lt;BR /&gt; &lt;BR /&gt;Now for some retro-fitting of older dialog boxes. &lt;BR /&gt; &lt;BR /&gt;Being a humble quickwin programmer, it seems to be a lot of guesswork  &lt;BR /&gt;before getting these system calls to work. It would be nice to have  &lt;BR /&gt;a few more samples showing how to use these system calls. &lt;BR /&gt; &lt;BR /&gt;Bill &lt;BR /&gt; &lt;BR /&gt;to work.</description>
      <pubDate>Tue, 09 Oct 2001 00:52:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dialog-queries/m-p/968736#M23459</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-10-09T00:52:10Z</dc:date>
    </item>
  </channel>
</rss>

