<?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: Slider and Edit box in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932363#M15128</link>
    <description>It should be doable, but I have no sample for using native Win32 APIs.  I believe it is just a matter of when the value of one or the other control changes (which you determine by handling a message), you set the value of the other control to the new value.  That's the way the TEMP example works (although the messages are automatically turned in "callbacks").&lt;BR /&gt;&lt;BR /&gt;Leo</description>
    <pubDate>Thu, 21 Dec 2000 08:10:46 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2000-12-21T08:10:46Z</dc:date>
    <item>
      <title>Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932360#M15125</link>
      <description>I have a slider and edit box side by side. &lt;BR /&gt;I want them to be related - like a buddy with a spin control. &lt;BR /&gt;As the user moves the slider I would like the value in the edit box to change and if a value is enterted in the edit box the slider is updated. &lt;BR /&gt; &lt;BR /&gt;Can I do this? &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Mon, 18 Dec 2000 19:28:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932360#M15125</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-18T19:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932361#M15126</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Yes, you should be able to do that.  The new ...DialogTemp sample does this with 2 edit boxes and a scroll bar.  Using a slider instead of a scroll bar makes only a small difference in the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Leo</description>
      <pubDate>Wed, 20 Dec 2000 03:46:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932361#M15126</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-20T03:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932362#M15127</link>
      <description>Thanks, but if forgot to say, I want to do it in a Win API project, the example is a simple dialog project. &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Thu, 21 Dec 2000 00:18:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932362#M15127</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-21T00:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932363#M15128</link>
      <description>It should be doable, but I have no sample for using native Win32 APIs.  I believe it is just a matter of when the value of one or the other control changes (which you determine by handling a message), you set the value of the other control to the new value.  That's the way the TEMP example works (although the messages are automatically turned in "callbacks").&lt;BR /&gt;&lt;BR /&gt;Leo</description>
      <pubDate>Thu, 21 Dec 2000 08:10:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932363#M15128</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-21T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932364#M15129</link>
      <description>What message should I use to to say a change has been made to the slider/trackbar or edit box? &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Fri, 22 Dec 2000 00:13:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932364#M15129</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-22T00:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932365#M15130</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Take a look at the dialog procedure (DlgCommonProc) in DFLOGM.F90 for an example of how the typically interesting messages are handled.  Controls typically send a "notification" message to their parent (e.g the dialog box) when something interesting happens.  The most interesting messages are WM_COMMAND, WM_NOTIFY, and the 2 WM_?SCROLL messages.  DlgCommonProc calls DlgWmCommand and DlgWmScroll to handle these.  For example, in DlgWmCommand, the edit control notifications that are looked for are EN_CHANGE, EN_UPDATE, EN_SETFOCUS and EN_KILLFOCUS.  A slider (called a "track Bar" in the Win32 docs) sends WM_?SCROLL messages.&lt;BR /&gt;&lt;BR /&gt;To update a control's value, you send it a message.  Use the TBM_SETPOS message for the slider, and the WM_SETTEXT message for the edit control.&lt;BR /&gt;&lt;BR /&gt;I hope this helps,&lt;BR /&gt;Leo</description>
      <pubDate>Fri, 22 Dec 2000 01:04:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932365#M15130</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-22T01:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932366#M15131</link>
      <description>&lt;PRE&gt;  
So far, I have 1 out of 2!  
   
I have got the edit box to update when the slider/trackbar moves:  
  
integer*4 iret,hTB.hwnd  
logical*4 lret  
  
case (WM_HSCROLL)  
iret=SendMessage(hTB,TBM_GETPOS,0,0)    ! hTB handle of track bar  
! this gets the value iret from the trackbar  
lret=SetDlgItemInt(hwnd,IDC_EDIT,iret,.false.)  
! this displays the value iret in the Edit box   
  
I haven't been able to get the trackbar to move when a value is entered in the edit box - any ideas what I am doing wrong?  
  
integer*4 iMess,hwnd,iret  
logical*4 lOK  
  
CASE (IDC_EDIT)  
if (iMess==EN_CHANGE) then  
  iret=GetDlgItemInt(hwnd,GetDlgItem(hwnd,IDC_EDIT),loc(lOK),.false.)  
! this should get the value from the edit box in iret.  
! but iret is always 0, and lOK is always false - why is this ??   
  iret=SendMessage(hTBR,TBM_SETPOS,.true.,iret)  
! this should set the trackbar to the value iretl  
end if  
  
Thanks,  
  
David  
&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Dec 2000 23:06:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932366#M15131</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-22T23:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932367#M15132</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Shouldn't&lt;BR /&gt;&lt;BR /&gt;  iret=GetDlgItemInt(hwnd,GetDlgItem(hwnd,IDC_EDIT),loc(lOK),.false.)   &lt;BR /&gt;&lt;BR /&gt;be:&lt;BR /&gt;&lt;BR /&gt;  iret=GetDlgItemInt(hwnd,IDC_EDIT,loc(lOK),.false.)   &lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;Leo</description>
      <pubDate>Sat, 23 Dec 2000 00:59:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932367#M15132</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-23T00:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Slider and Edit box</title>
      <link>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932368#M15133</link>
      <description>Leo, Thanks, that was a silly mistake. &lt;BR /&gt;Merry Christmas to you &amp;amp; Steve. &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Sat, 23 Dec 2000 01:35:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Slider-and-Edit-box/m-p/932368#M15133</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-23T01:35:44Z</dc:date>
    </item>
  </channel>
</rss>

