<?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: Multiple Column List Box in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818823#M46601</link>
    <description>Frankly, I just downloaded it, skimmed over documentation, concluded it might be interesting and "returned it to the shelf". So, I can offer only general guidelines.&lt;BR /&gt;&lt;BR /&gt;In resource editor, insert a "custom control". In its properties, type class name ("BABYGRID"). I don't see any specific styles so the default 0x50010000 (=WS_VISIBLE|WS_CHILD|WS_TABSTOP) should be OK.&lt;BR /&gt;&lt;BR /&gt;Somewhere at your app startup, call RegisterGridClass. &lt;BR /&gt;&lt;BR /&gt;To add rows, columns &amp;amp; items, well, read the documentation. Usually, it will be in form (SendMessage(GetDlgItem(hDlg, IDC_GRID), BGM_XXX, x, y)). The dialog will be most easily handled with Win32 code (DialogBox+DialogProc). It's not so complicated as it may look at the first glance, although it is a bit less elegant than DFLOGM. See e.g. DF98SAMPLESADVANCEDWIN32OWNCOMBOB sample. Probably a BabyGrid could be tweaked into a DFLOGM-handled dialog as well, but you'll end up with the same or bigger amount of code -- you'll have to use SendMessage for all grid handling anyway, and handle BGN_ messages separately.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
    <pubDate>Wed, 19 Mar 2003 19:29:42 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2003-03-19T19:29:42Z</dc:date>
    <item>
      <title>Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818816#M46594</link>
      <description>Does anyone have experience with setting up a multiple column list box within a dialog box.  I would like to be able to scroll all the rows of the list box with a single scroll bar.&lt;BR /&gt;&lt;BR /&gt;Also, has anyone tried to incorporate an Excel spread sheet into a dialog box?  This would be a superior alternative to a multi-column list box since the cells could then contain formulas, etc.</description>
      <pubDate>Tue, 11 Mar 2003 00:06:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818816#M46594</guid>
      <dc:creator>tomballard</dc:creator>
      <dc:date>2003-03-11T00:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818817#M46595</link>
      <description>Tom, I replied to a similar question recently here (re multi-column), but I'm in a hurry now to  -- search for LB_SETTABSTOPS.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Tue, 11 Mar 2003 00:45:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818817#M46595</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-11T00:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818818#M46596</link>
      <description>Recently I wrote it by means of width of the column this way:&lt;BR /&gt;Select Case (id)&lt;BR /&gt; Case (IDC_SPIN_COLUMN)&lt;BR /&gt;  lret = DlgGet (dlg,IDC_SPIN_COLUMN,Number_of_Column)&lt;BR /&gt;  Write (Snumber_of_Column,'(I4)') Number_of_Column&lt;BR /&gt;  lret = DlgSet (dlg,IDC_EDIT_COLUMN,TRIM(ADJUSTL(Snumber_of_Column)))&lt;BR /&gt; Case (IDC_EDIT_COLUMN)&lt;BR /&gt;  lret = DlgGet (dlg,IDC_EDIT_COLUMN,Snumber_of_Column)&lt;BR /&gt;  Read (Snumber_of_Column,*,Iostat = Iret) Number_of_Column&lt;BR /&gt;  if (Iret.eq.0) then&lt;BR /&gt;    Number_of_Column = MIN0(Number_of_Column,11)&lt;BR /&gt;    Write (Snumber_of_Column,'(I4)') Number_of_Column&lt;BR /&gt;    lret = DlgSet (dlg,IDC_EDIT_COLUMN,TRIM(ADJUSTL(Snumber_of_Column)))&lt;BR /&gt;    lret = DlgSet (dlg,IDC_SPIN_COLUMN,Number_of_Column,DLG_POSITION)&lt;BR /&gt;  end if&lt;BR /&gt;end select&lt;BR /&gt;	&lt;BR /&gt;! Set the Width of Column within ListBox&lt;BR /&gt;Width_of_Column = INT4(300 / Number_of_Column)&lt;BR /&gt;lret = DlgSendCtrlMessage (Dlg,IDC_LIST_LIST, &amp;amp;&lt;BR /&gt;     LB_SETCOLUMNWIDTH,Width_of_Column,0)</description>
      <pubDate>Tue, 11 Mar 2003 14:23:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818818#M46596</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-03-11T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818819#M46597</link>
      <description>Let me clarify -- "Multi-column" list boxes (LBS_MULTICOLUMN+LB_SETCOLUMNWIDTH) are not what most people expect. A multi-column list-box just wraps when the bottom is reached, i.e. it looks like File Open dialog in default ("List" mode) and it cannot even have vertical scrollbar. On the other hand, people usually want something like Explorer in "Details" view -- several spreadsheet-like columns with different items in each columns. That can be most closely emulated with LBS_USETABSTOPS+LB_SETTABSTOPS list boxes; not perfect but close.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Tue, 11 Mar 2003 17:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818819#M46597</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-11T17:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818820#M46598</link>
      <description>Thanks for the help jugoslavdujic.  Have you any experience with actually using an Excel spread sheet in a dialog box?  We do a lot of FE work here and the spread sheet has become a necessary tool for many classes types of modeling.  For instance, it would be nice to have the capability of generating coordinates as a calculated values of the previous rows, etc.</description>
      <pubDate>Tue, 11 Mar 2003 22:48:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818820#M46598</guid>
      <dc:creator>tomballard</dc:creator>
      <dc:date>2003-03-11T22:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818821#M46599</link>
      <description>No, I don't. You could probably insert it as an ActiveX control, but that's beyond my knowledge. Also, there are bunch of grid controls on the net (see e.g. &lt;A href="http://www.codeguru.com/controls/BABYGRID.html"&gt;BabyGrid&lt;/A&gt; which is free and has simple API interface) but most don't have spreadsheet functionality -- they just provide grid... and some are quite expen$ive. &lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 12 Mar 2003 00:06:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818821#M46599</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-12T00:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818822#M46600</link>
      <description>BabyGrid looks very interesting.  Can anyone provide a sample of how to use it from Fortran?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gabriel</description>
      <pubDate>Wed, 19 Mar 2003 04:25:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818822#M46600</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2003-03-19T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818823#M46601</link>
      <description>Frankly, I just downloaded it, skimmed over documentation, concluded it might be interesting and "returned it to the shelf". So, I can offer only general guidelines.&lt;BR /&gt;&lt;BR /&gt;In resource editor, insert a "custom control". In its properties, type class name ("BABYGRID"). I don't see any specific styles so the default 0x50010000 (=WS_VISIBLE|WS_CHILD|WS_TABSTOP) should be OK.&lt;BR /&gt;&lt;BR /&gt;Somewhere at your app startup, call RegisterGridClass. &lt;BR /&gt;&lt;BR /&gt;To add rows, columns &amp;amp; items, well, read the documentation. Usually, it will be in form (SendMessage(GetDlgItem(hDlg, IDC_GRID), BGM_XXX, x, y)). The dialog will be most easily handled with Win32 code (DialogBox+DialogProc). It's not so complicated as it may look at the first glance, although it is a bit less elegant than DFLOGM. See e.g. DF98SAMPLESADVANCEDWIN32OWNCOMBOB sample. Probably a BabyGrid could be tweaked into a DFLOGM-handled dialog as well, but you'll end up with the same or bigger amount of code -- you'll have to use SendMessage for all grid handling anyway, and handle BGN_ messages separately.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 19 Mar 2003 19:29:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818823#M46601</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-19T19:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818824#M46602</link>
      <description>I downloaded the project file for BabyGrid and opened it up in Developer Studio.  The resource editor gives me an error: windows.h not found...  I realize that windows.h is the standard windows header file and I also realize that it is now comprised of several other header files.  Can someone direct me to a copy of windows.h so I can at least open the resource editor for the BabyGrid project.</description>
      <pubDate>Fri, 21 Mar 2003 02:58:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818824#M46602</guid>
      <dc:creator>tomballard</dc:creator>
      <dc:date>2003-03-21T02:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818825#M46603</link>
      <description>Should be in Program FilesMicrosoft Visual StudioVC98INCLUDE  CVF does supply this, but may not add the VC98INCLUDE folder to the Tools..Options..Directories..Include Files list.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 21 Mar 2003 04:00:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818825#M46603</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-03-21T04:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818826#M46604</link>
      <description>You'll need BabyGrid.h translated to Fortran anyway. I've spent few minutes to do it for you &amp;amp; test it (just to display it). Attached (I didn't include the .lib so that I don't violate any license agreement).&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 21 Mar 2003 16:09:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818826#M46604</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-21T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818827#M46605</link>
      <description>P.S. I forgot "use BabyGridTy" within module BabyGrid in BabyGridM.f90. Not essential, but more convenient to use.</description>
      <pubDate>Fri, 21 Mar 2003 16:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818827#M46605</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-21T16:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818828#M46606</link>
      <description>... you seem to have attached the wrong file.</description>
      <pubDate>Fri, 21 Mar 2003 18:19:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818828#M46606</guid>
      <dc:creator>david_jones</dc:creator>
      <dc:date>2003-03-21T18:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818829#M46607</link>
      <description>Really? I see... that's very good, because the one I &lt;B&gt;meant&lt;/B&gt; to attach was full of s**t :-). Well, here's finally a &lt;B&gt;working&lt;/B&gt; version based on last BabyGrid (it's mixed-language so you'll need VC++ to compile it, but you can insert the .lib if you have it).&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Fri, 21 Mar 2003 19:09:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818829#M46607</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-03-21T19:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Column List Box</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818830#M46608</link>
      <description>Thank jugoslavdujic.  Everything seems to be working now.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 22:39:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Multiple-Column-List-Box/m-p/818830#M46608</guid>
      <dc:creator>tomballard</dc:creator>
      <dc:date>2003-03-21T22:39:58Z</dc:date>
    </item>
  </channel>
</rss>

