<?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: InputBox in QuickWin? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982159#M26322</link>
    <description>It's easy to create your own with a simple dialog box and an edit control.  It's only two lines of Fortran source - DlgModal and DlgGet.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 01 Feb 2002 03:50:24 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2002-02-01T03:50:24Z</dc:date>
    <item>
      <title>InputBox in QuickWin?</title>
      <link>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982158#M26321</link>
      <description>Does anybody know if there is something like Visual Basic's &lt;FONT size="+0" color="#ff0000"&gt;InputBox function&lt;/FONT&gt; to be called in QuickWin? (A little dialog with OK- and Cancel-buttons and an Edit box). Perhaps something like MESSAGEBOXQQ? &lt;BR /&gt; &lt;BR /&gt;Sabalan.</description>
      <pubDate>Fri, 01 Feb 2002 03:24:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982158#M26321</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2002-02-01T03:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: InputBox in QuickWin?</title>
      <link>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982159#M26322</link>
      <description>It's easy to create your own with a simple dialog box and an edit control.  It's only two lines of Fortran source - DlgModal and DlgGet.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 01 Feb 2002 03:50:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982159#M26322</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-02-01T03:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: InputBox in QuickWin?</title>
      <link>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982160#M26323</link>
      <description>Steve, Thanks for the tip. Maybe I should explain the problem more detailed: I have a dialog in QuickWin with several buttons and Edit boxes. What I wished was to open a new simple dialog when I click one of the buttons in the first dialog, to make it possible for the user to enter a value. I can do this in VB with just one line: &lt;BR /&gt; &lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;PRE&gt;MyVariable=Val( InputBox(prompt[, title][, default][, xpos][, ypos][, helpfile, context]))&lt;/PRE&gt;&lt;/FONT&gt; &lt;BR /&gt; &lt;BR /&gt;This opens a little, predesigned dialog, without losing the first dialog (or "form"), with an Edit box and 2 buttons: OK and Cancel. I don't even need to check if the OK or Cancel button was clicked or Enter was pushed. MyVariable is going to get a value from Edit box, or 0 if Cancel is clicked. &lt;BR /&gt; &lt;BR /&gt;But I have been thinking, writing, coding, testing, reading N. Lawrence's book, tearing my hair, and have not been able to do this in 2 Fortran lines! What I have to do is as follows: &lt;BR /&gt; &lt;BR /&gt;I have to design a new dialog in Resource Editor with 2 Edit boxes: 1 without border and "Read only" to show the prompt (above), and the other as an ordinary Edit box. This dialog can be called IDD_DIALOG2. Then: &lt;BR /&gt; &lt;BR /&gt;Several variable declarations and a COMMON, and: &lt;BR /&gt; &lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;PRE&gt;       Status = DlgInit (IDD_DIALOG2, InputData) ! the first dialog disappears &lt;BR /&gt;       Status = DlgSet (InputData, IDC_EDIT1, Trim(Prompt)) ! Show preset Prompt &lt;BR /&gt;       Write (Default,'(F8.4)') MyDefaultValue &lt;BR /&gt;       Status = DlgSet( InputData, IDC_EDIT2, Trim(AdjustL(Default))) &lt;BR /&gt;       Status = DlgSetSub( InputData, IDC_EDIT2, UpdateValue ) &lt;BR /&gt;       Resp = DlgModal (InputData) &lt;BR /&gt;       If (Resp == 1) Then &lt;BR /&gt;         MyVariable = CallBackVar ! CallBackVar should be shared through a COMMON &lt;BR /&gt;       End If &lt;BR /&gt;       Call DlgUninit (InputData) &lt;BR /&gt;       Goto ? ! to DlgInit the first dialog&lt;/PRE&gt;&lt;/FONT&gt; &lt;BR /&gt; &lt;BR /&gt;I Have to create a callback subroutine UpdateValue too, with SELECT CASE, and COMMON, and variable declarations, to update the CallBackVar. And forget about controlling the position of the dialog and help facilities (as I could do with VB InputBox). &lt;BR /&gt; &lt;BR /&gt;I think that I should create an own function to do this, because I have to use such a thing very often. But I appreciate very much if you could show an easier way for that (although not just in 2 Fortran lines!). As I wrote in my question, something like MESSAGEBOXQQ would be ideal. &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt; &lt;BR /&gt;Sabalan.</description>
      <pubDate>Sat, 02 Feb 2002 02:25:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/InputBox-in-QuickWin/m-p/982160#M26323</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2002-02-02T02:25:36Z</dc:date>
    </item>
  </channel>
</rss>

