<?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: Toolbars in Fortran Win Apps in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930128#M14596</link>
    <description>I posted a reply this morning - with an example, it has not appeared yet, I have posted it again. &lt;BR /&gt; &lt;BR /&gt;Steve is there a problem with long messages? &lt;BR /&gt; &lt;BR /&gt;David</description>
    <pubDate>Thu, 07 Dec 2000 02:31:11 GMT</pubDate>
    <dc:creator>davidgraham</dc:creator>
    <dc:date>2000-12-07T02:31:11Z</dc:date>
    <item>
      <title>Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930125#M14593</link>
      <description>Hi,  &lt;BR /&gt; &lt;BR /&gt;I am looking for infor on incorporating a toolbar into Fortran  &lt;BR /&gt;Win Apps.  Even info about about doing it in C with the WinApi  &lt;BR /&gt;is welcome.  All I can find currently is about using MFC to do the  &lt;BR /&gt;Toolbar.  &lt;BR /&gt; &lt;BR /&gt;ML Clark</description>
      <pubDate>Tue, 05 Dec 2000 05:43:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930125#M14593</guid>
      <dc:creator>Deleted_U_Intel</dc:creator>
      <dc:date>2000-12-05T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930126#M14594</link>
      <description>Um, David Graham (DavidGrahamMason) and I (j.dujic) had a rather detailed discussion on that in the old Forum (forum.compaq.com) called, as I recall, "Toolbars" or "Visual Fortran - Toolbars". That was in October or so. So, please try to search there first - if the old forum is still alive - and if you don't succeed, please let me know so I'll try to answer tomorrow (I have a sample, but it is rather large, and it would require some time to reduce it to a more readable form). Unfortunately, I did not keep the old posts (hoped they will be always available at Compaq's site :-( )Perhaps David has one ready? &lt;BR /&gt; &lt;BR /&gt;Furthermore, the toolbars are rather thoroughly described in Win32 SDK help (User Interface Services/Common Controls/Toolbars) with some samples in C. That would be a good place to start searching. &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 06 Dec 2000 02:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930126#M14594</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2000-12-06T02:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930127#M14595</link>
      <description>I don't know what's wrong, but I've tried twice to respond to this thread, but the message doesn't show up.  :- &lt;BR /&gt;Maybe my post was too long.  Is there a message limit? &lt;BR /&gt; &lt;BR /&gt;Anyway, to keep the message short, here's &lt;A href="http://users.jagunet.com/~jtermine/f90/CVF_Toolbars.txt" target="_blank"&gt;two threads from the old forum&lt;/A&gt; (9/2000) that I tried to post here; subjects: &lt;BR /&gt;"How do I get a tool bar in application" &lt;BR /&gt;"Problem with tool bar buttons"   &lt;BR /&gt; &lt;BR /&gt;When I get some free time, I'm thinking of making a pdf of the messages I've archived and posting it.  I'm open to suggestions. &lt;BR /&gt; &lt;BR /&gt;-John</description>
      <pubDate>Wed, 06 Dec 2000 07:42:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930127#M14595</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-06T07:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930128#M14596</link>
      <description>I posted a reply this morning - with an example, it has not appeared yet, I have posted it again. &lt;BR /&gt; &lt;BR /&gt;Steve is there a problem with long messages? &lt;BR /&gt; &lt;BR /&gt;David</description>
      <pubDate>Thu, 07 Dec 2000 02:31:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930128#M14596</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-07T02:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930129#M14597</link>
      <description>Re: Old messages &lt;BR /&gt; &lt;BR /&gt;Here are clippings from two threads from the old message board in Sept 2000. &lt;BR /&gt; - "How do I get a tool bar in application " &lt;BR /&gt; - "Problem with tool bar buttons" &lt;BR /&gt; &lt;BR /&gt;FYI, once I get some free time, I plan on collecting the messages I've clipped from the old forum, dumping them into a pdf file and posting it.  If you have another idea, let me know. &lt;BR /&gt; &lt;BR /&gt;I started collecting messages when news of the impending forum upgrade was announced, just in case portability was less than expected.  I have messages of some interest (to me, I guess) from #1256 to #5839. &lt;BR /&gt; &lt;BR /&gt;Here's the toolbar stuff: &lt;BR /&gt; &lt;BR /&gt;Topic:   Fortran Message #4988   &lt;BR /&gt;Subject:   How do I get a tool bar in application  &lt;BR /&gt;From:   DavidGrahamMason  09/08/00 10:20:05   &lt;BR /&gt;  &lt;BR /&gt;I have just noticed that Insert|Resource allows you to insert a tool bar.  &lt;BR /&gt; &lt;BR /&gt;I can create buttons, with nice images but how do I display the bar in my application?  &lt;BR /&gt; &lt;BR /&gt;I have a Windows application based on the 'Generic' example with a menu but I would like to add a tool bar.  &lt;BR /&gt; &lt;BR /&gt;Thanks,  &lt;BR /&gt; &lt;BR /&gt;David  &lt;BR /&gt;   &lt;BR /&gt;------------------------------------------------------------  &lt;BR /&gt; &lt;BR /&gt;Topic:   Fortran Message #4996   &lt;BR /&gt;Subject:   RE: How do I get a tool bar in application  &lt;BR /&gt;From:   j.dujic  09/09/00 05:59:27   &lt;BR /&gt;  &lt;BR /&gt;Hi David,  &lt;BR /&gt;Here's the sample code (taken from a real application  &lt;BR /&gt;and a bit shortened) illustrating Toolbar creation.  &lt;BR /&gt;In order to have it functional, you have to process  &lt;BR /&gt;WM_COMMAND message and take appropriate action on  &lt;BR /&gt;LOWORD(wParam). The sample code also contains tooltips  &lt;BR /&gt;(TBSTYLE_TOOLTIPS):  &lt;BR /&gt; &lt;BR /&gt;!===============================================  &lt;BR /&gt;SUBROUTINE CreateAdToolbar()  &lt;BR /&gt; &lt;BR /&gt;USE MSFWIN  &lt;BR /&gt;USE REGISTRY !(My local module)  &lt;BR /&gt;USE TOOLBAR !(My local module)  &lt;BR /&gt;IMPLICIT INTEGER(h-n)  &lt;BR /&gt;IMPLICIT LOGICAL(b)  &lt;BR /&gt; &lt;BR /&gt;INCLUDE 'RESOURCE.FD'  &lt;BR /&gt; &lt;BR /&gt;INTEGER,PARAMETER:: jBitmap(4)=(/0,0,1,2/)  &lt;BR /&gt;INTEGER,PARAMETER:: jdCommand(4)= &amp;amp;  &lt;BR /&gt;(/ID_BUTTON_INFOOK,0,ID_BUTTON_ERR,ID_BUTTON_MAKAZE/)  &lt;BR /&gt; &lt;BR /&gt;DO i=1,4  &lt;BR /&gt;FButton(i)%iBitmap=jBitmap(i)  &lt;BR /&gt;FButton(i)%idCommand=jdCommand(i)  &lt;BR /&gt;FButton(i)%fsState=TBSTATE_ENABLED  &lt;BR /&gt;FButton(i)%dwData=0  &lt;BR /&gt;FButton(i)%iString=0  &lt;BR /&gt;END DO  &lt;BR /&gt;FButton(1)%fsStyle=TBSTYLE_BUTTON  &lt;BR /&gt;FButton(2)%fsStyle=TBSTYLE_SEP  &lt;BR /&gt;FButton(3)%fsStyle=TBSTYLE_CHECK  &lt;BR /&gt;FButton(4)%fsStyle=TBSTYLE_CHECK  &lt;BR /&gt;FButton(4)%fsState=TBSTATE_INDETERMINATE  &lt;BR /&gt;hInfoToolbar=CreateToolbarEx(hFrame,WS_CHILD.OR.TBSTYLE_TOOLTIPS.OR. &amp;amp;  &lt;BR /&gt;WS_BORDER,IDR_TOOLBAR_INFO,5,hInst,IDR_TOOLBAR_INFO,LOC(FButton), &amp;amp;  &lt;BR /&gt;4,0,0,16,15,20)  &lt;BR /&gt;iSt=ShowWindow(hInfoToolbar,.FALSE.)  &lt;BR /&gt; &lt;BR /&gt;END SUBROUTINE CreateAdToolbar  &lt;BR /&gt;!===============================================  &lt;BR /&gt;REMARKS:  &lt;BR /&gt;1) The sample code creates a toolbar with three  &lt;BR /&gt;buttons, with separator between 1st and 2nd. Separator  &lt;BR /&gt;is treated like any other button. 3rd and 4th act  &lt;BR /&gt;like "check-buttons", i.e. similar to check boxes  &lt;BR /&gt;2) jBitmap contains zero-based indices of bitmaps  &lt;BR /&gt;in the toolbar you create. So, 1st button has 0-th  &lt;BR /&gt;bitmap, 2nd is separator (bitmap is ignored), 3rd  &lt;BR /&gt;1-st bitmap etc. Note that bitmaps need not appear in  &lt;BR /&gt;the same order as in the bitmap created in rc editor.  &lt;BR /&gt;3) The code is written for CVF5. I think that with CVF6 you should pass just FButton instead of LOC().  &lt;BR /&gt;4) You can even add "standard" bitmaps from a system  &lt;BR /&gt;resource (like Open,
 Save, etc.). I prefer to capture  &lt;BR /&gt;those from an application that has them (PrintScreen  &lt;BR /&gt;key, paste them into Paint, and then cut them into  &lt;BR /&gt;rc editor.)  &lt;BR /&gt;5) Please see "Toolbars" section of SDK help for  &lt;BR /&gt;explanation of constants, messages and functions  &lt;BR /&gt;used for toolbars.  &lt;BR /&gt;Tooltips are a bit complicated issue, so if you  &lt;BR /&gt;want'em, pls post a reply.  &lt;BR /&gt;hth  &lt;BR /&gt;jdujic@uns.ns.ac.yu   &lt;BR /&gt; &lt;BR /&gt;------------------------------------------------------------  &lt;BR /&gt;Topic:   Fortran Message #5007   &lt;BR /&gt;Subject:   RE: How do I get a tool bar in application  &lt;BR /&gt;From:   DavidGrahamMason  09/11/00 05:30:08   &lt;BR /&gt;  &lt;BR /&gt;dujic,  &lt;BR /&gt; &lt;BR /&gt;Thanks for your reply.  &lt;BR /&gt;I have now got the too</description>
      <pubDate>Tue, 12 Dec 2000 06:26:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930129#M14597</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-12T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930130#M14598</link>
      <description>Re: Old messages &lt;BR /&gt; &lt;BR /&gt;Here are clippings from two threads from the old message board in Sept 2000. &lt;BR /&gt; - "How do I get a tool bar in application " &lt;BR /&gt; - "Problem with tool bar buttons" &lt;BR /&gt; &lt;BR /&gt;FYI, once I get some free time, I plan on collecting the messages I've clipped from the old forum, dumping them into a pdf file and posting it.  If you have another idea, let me know. &lt;BR /&gt; &lt;BR /&gt;I started collecting messages when news of the impending forum upgrade was announced, just in case portability was less than expected.  I have messages of some interest (to me, I guess) from #1256 to #5839. &lt;BR /&gt; &lt;BR /&gt;Here's the toolbar stuff: &lt;BR /&gt; &lt;BR /&gt;Topic:   Fortran Message #4988   &lt;BR /&gt;Subject:   How do I get a tool bar in application  &lt;BR /&gt;From:   DavidGrahamMason  09/08/00 10:20:05   &lt;BR /&gt;  &lt;BR /&gt;I have just noticed that Insert|Resource allows you to insert a tool bar.  &lt;BR /&gt; &lt;BR /&gt;I can create buttons, with nice images but how do I display the bar in my application?  &lt;BR /&gt; &lt;BR /&gt;I have a Windows application based on the 'Generic' example with a menu but I would like to add a tool bar.  &lt;BR /&gt; &lt;BR /&gt;Thanks,  &lt;BR /&gt; &lt;BR /&gt;David  &lt;BR /&gt;   &lt;BR /&gt;------------------------------------------------------------  &lt;BR /&gt; &lt;BR /&gt;Topic:   Fortran Message #4996   &lt;BR /&gt;Subject:   RE: How do I get a tool bar in application  &lt;BR /&gt;From:   j.dujic  09/09/00 05:59:27   &lt;BR /&gt;  &lt;BR /&gt;Hi David,  &lt;BR /&gt;Here's the sample code (taken from a real application  &lt;BR /&gt;and a bit shortened) illustrating Toolbar creation.  &lt;BR /&gt;In order to have it functional, you have to process  &lt;BR /&gt;WM_COMMAND message and take appropriate action on  &lt;BR /&gt;LOWORD(wParam). The sample code also contains tooltips  &lt;BR /&gt;(TBSTYLE_TOOLTIPS):  &lt;BR /&gt; &lt;BR /&gt;!===============================================  &lt;BR /&gt;SUBROUTINE CreateAdToolbar()  &lt;BR /&gt; &lt;BR /&gt;USE MSFWIN  &lt;BR /&gt;USE REGISTRY !(My local module)  &lt;BR /&gt;USE TOOLBAR !(My local module)  &lt;BR /&gt;IMPLICIT INTEGER(h-n)  &lt;BR /&gt;IMPLICIT LOGICAL(b)  &lt;BR /&gt; &lt;BR /&gt;INCLUDE 'RESOURCE.FD'  &lt;BR /&gt; &lt;BR /&gt;INTEGER,PARAMETER:: jBitmap(4)=(/0,0,1,2/)  &lt;BR /&gt;INTEGER,PARAMETER:: jdCommand(4)= &amp;amp;  &lt;BR /&gt;(/ID_BUTTON_INFOOK,0,ID_BUTTON_ERR,ID_BUTTON_MAKAZE/)  &lt;BR /&gt; &lt;BR /&gt;DO i=1,4  &lt;BR /&gt;FButton(i)%iBitmap=jBitmap(i)  &lt;BR /&gt;FButton(i)%idCommand=jdCommand(i)  &lt;BR /&gt;FButton(i)%fsState=TBSTATE_ENABLED  &lt;BR /&gt;FButton(i)%dwData=0  &lt;BR /&gt;FButton(i)%iString=0  &lt;BR /&gt;END DO  &lt;BR /&gt;FButton(1)%fsStyle=TBSTYLE_BUTTON  &lt;BR /&gt;FButton(2)%fsStyle=TBSTYLE_SEP  &lt;BR /&gt;FButton(3)%fsStyle=TBSTYLE_CHECK  &lt;BR /&gt;FButton(4)%fsStyle=TBSTYLE_CHECK  &lt;BR /&gt;FButton(4)%fsState=TBSTATE_INDETERMINATE  &lt;BR /&gt;hInfoToolbar=CreateToolbarEx(hFrame,WS_CHILD.OR.TBSTYLE_TOOLTIPS.OR. &amp;amp;  &lt;BR /&gt;WS_BORDER,IDR_TOOLBAR_INFO,5,hInst,IDR_TOOLBAR_INFO,LOC(FButton), &amp;amp;  &lt;BR /&gt;4,0,0,16,15,20)  &lt;BR /&gt;iSt=ShowWindow(hInfoToolbar,.FALSE.)  &lt;BR /&gt; &lt;BR /&gt;END SUBROUTINE CreateAdToolbar  &lt;BR /&gt;!===============================================  &lt;BR /&gt;REMARKS:  &lt;BR /&gt;1) The sample code creates a toolbar with three  &lt;BR /&gt;buttons, with separator between 1st and 2nd. Separator  &lt;BR /&gt;is treated like any other button. 3rd and 4th act  &lt;BR /&gt;like "check-buttons", i.e. similar to check boxes  &lt;BR /&gt;2) jBitmap contains zero-based indices of bitmaps  &lt;BR /&gt;in the toolbar you create. So, 1st button has 0-th  &lt;BR /&gt;bitmap, 2nd is separator (bitmap is ignored), 3rd  &lt;BR /&gt;1-st bitmap etc. Note that bitmaps need not appear in  &lt;BR /&gt;the same order as in the bitmap created in rc editor.  &lt;BR /&gt;3) The code is written for CVF5. I think that with CVF6 you should pass just FButton instead of LOC().  &lt;BR /&gt;4) You can even add "standard" bitmaps from a system  &lt;BR /&gt;resource (like Open,
 Save, etc.). I prefer to capture  &lt;BR /&gt;those from an application that has them (PrintScreen  &lt;BR /&gt;key, paste them into Paint, and then cut them into  &lt;BR /&gt;rc editor.)  &lt;BR /&gt;5) Please see "Toolbars" section of SDK help for  &lt;BR /&gt;explanation of constants, messages and functions  &lt;BR /&gt;used for toolbars.  &lt;BR /&gt;Tooltips are a bit complicated issue, so if you  &lt;BR /&gt;want'em, pls post a reply.  &lt;BR /&gt;hth  &lt;BR /&gt;jdujic@uns.ns.ac.yu   &lt;BR /&gt; &lt;BR /&gt;------------------------------------------------------------  &lt;BR /&gt;Topic:   Fortran Message #5007   &lt;BR /&gt;Subject:   RE: How do I get a tool bar in application  &lt;BR /&gt;From:   DavidGrahamMason  09/11/00 05:30:08   &lt;BR /&gt;  &lt;BR /&gt;dujic,  &lt;BR /&gt; &lt;BR /&gt;Thanks for your reply.  &lt;BR /&gt;I have now got the too</description>
      <pubDate>Tue, 12 Dec 2000 06:26:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930130#M14598</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2000-12-12T06:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930131#M14599</link>
      <description>Here is some code that I developed from dujic's example, it is for CVF v6.5.  &lt;BR /&gt;The routine CreateToolBAr is called at the begining of WinMain before the message loop. &lt;BR /&gt; &lt;BR /&gt;I used the same ID names for the tool bar buttons and the Menu items as I kept getting problems with the different menu items &amp;amp; tool bar buttons getting the same ID number. &lt;BR /&gt; &lt;BR /&gt;The button presses are processed in the same way as the menu items in the case(WM_COMMAND) section. &lt;BR /&gt; &lt;BR /&gt;I have added part of the tool tips this is taken from  the case(WM_NOTIFY) section. &lt;BR /&gt; &lt;BR /&gt;In the help index enter 'toolbar' and it shows lots of information which may help. &lt;BR /&gt; &lt;BR /&gt;Hope this helps you. &lt;BR /&gt; &lt;BR /&gt;David &lt;BR /&gt;   &lt;BR /&gt; &lt;BR /&gt;subroutine CreateToolBar &lt;BR /&gt;!------------------------ &lt;BR /&gt;use COMCTL32 &lt;BR /&gt;use grad_inc	! for hWndMain &lt;BR /&gt; &lt;BR /&gt;include 'resource.fd' &lt;BR /&gt; &lt;BR /&gt;type (T_TBBUTTON)	FButton(50) &lt;BR /&gt; &lt;BR /&gt;integer, parameter:: jBitmap(39)=(/0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21, &amp;amp; &lt;BR /&gt;				22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38/) &lt;BR /&gt;integer, parameter:: jdCommand(39) =												&amp;amp; &lt;BR /&gt;		  (/IDM_VIEW_REFRESH,IDM_ZOOM_IN,  IDM_ZOOM_OUT,   IDM_ZOOM_WINDOW,	&amp;amp; &lt;BR /&gt;		IDM_ZOOM_ALL,    IDM_VIEW_PAN, IDM_WINDOW_LAST,IDM_WINDOW_NEXT,		&amp;amp; &lt;BR /&gt;		ID_SEPARATOR1,   IDM_UNDO,     IDM_REDO,       ID_SEPARATOR1,		&amp;amp; &lt;BR /&gt;		IDM_FC,          IDM_CHAFC,    ID_SEPARATOR1,  IDM_INPUT,		&amp;amp; &lt;BR /&gt;		IDM_EDIT,        IDM_COPY,     IDM_MOVE,       IDM_DELETE,		&amp;amp; &lt;BR /&gt;		IDM_RESTOR,      ID_SEPARATOR1,IDM_JOIN,       IDM_SPLIT,		&amp;amp; &lt;BR /&gt;		IDM_DIVLIN,      IDM_OFFSET,   IDM_PROJ,       IDM_INTCC,		&amp;amp; &lt;BR /&gt;		IDM_INTCL,       IDM_INTLL,    ID_SEPARATOR1,  IDM_CHAHT,		&amp;amp; &lt;BR /&gt;		IDM_LEVTEX,      IDM_DELCO,    ID_SEPARATOR1,  IDM_SETPLT,		&amp;amp; &lt;BR /&gt;		ID_SEPARATOR1,   IDM_DIST,     IDM_REPORT_FEATURES/) &lt;BR /&gt; &lt;BR /&gt;integer*2	i2 &lt;BR /&gt;logical*4	lret &lt;BR /&gt; &lt;BR /&gt;DO i2 = 1,39 &lt;BR /&gt;	if (i2 /= 9 .and. i2 /= 12 .and. i2 /= 15 .and. i2 /= 22 .and. i2 /= 31 &amp;amp; &lt;BR /&gt;		.and. i2 /= 35 .and. i2/=37) then &lt;BR /&gt; &lt;BR /&gt;		fButton(i2)%ibitmap = jBitmap(i2) &lt;BR /&gt;		fButton(i2)%idcommand = jdCommand(i2) &lt;BR /&gt;		fButton(i2)%fsstate = TBSTATE_ENABLED &lt;BR /&gt;		fButton(i2)%fsstyle = TBSTYLE_BUTTON &lt;BR /&gt;		fButton(i2)%dwData = 0 &lt;BR /&gt;		fButton(i2)%iString = 0 &lt;BR /&gt;	else &lt;BR /&gt;		fButton(i2)%fsstate = TBSTATE_ENABLED &lt;BR /&gt;		fButton(i2)%fsstyle = TBSTYLE_SEP &lt;BR /&gt;		fButton(i2)%dwData = 0 &lt;BR /&gt;		fButton(i2)%iString = 0 &lt;BR /&gt;	end if &lt;BR /&gt; &lt;BR /&gt;END DO &lt;BR /&gt; &lt;BR /&gt;hWndToolBar = CreateToolBarEx(hWndMain, WS_CHILD.OR.TBSTYLE_TOOLTIPS.OR. &amp;amp; &lt;BR /&gt;		WS_BORDER,IDR_TOOLBAR,5,hInst,IDR_TOOLBAR, FButton,&amp;amp; &lt;BR /&gt;		39,0,0,16,15,20) &lt;BR /&gt;lret = ShowWindow(hWndToolbar, SW_SHOW) &lt;BR /&gt;end subroutine CreateToolBar &lt;BR /&gt; &lt;BR /&gt;!-------------------------------------------------------------------- &lt;BR /&gt; &lt;BR /&gt;type (T_TOOLTIPTEXT) :: TTT;POINTER(lpTTT,TTT) &lt;BR /&gt;type (T_NMHDR) :: Header;POINTER(lpHeader,Header) &lt;BR /&gt; &lt;BR /&gt;case (WM_NOTIFY) &lt;BR /&gt;	lpHeader=lparam &lt;BR /&gt;	if (Header%Code==TTN_NEEDTEXT) then &lt;BR /&gt;		lpTTT=lParam &lt;BR /&gt;		SELECT CASE (Header%idFrom) &lt;BR /&gt;			CASE (IDM_VIEW_REFRESH) &lt;BR /&gt;				tip='Refresh View (plot all)'C &lt;BR /&gt;			CASE (IDM_ZOOM_IN) &lt;BR /&gt;				tip='Zoom In x2'C &lt;BR /&gt;			CASE (IDM_ZOOM_OUT) &lt;BR /&gt;				tip='Zoom Out x2'C &lt;BR /&gt;			CASE (IDM_ZOOM_WINDOW) &lt;BR /&gt;				tip='Window Area'C &lt;BR /&gt;!etc.. &lt;BR /&gt; &lt;BR /&gt;			CASE (IDM_PROJ) &lt;BR /&gt;				tip='Project point'C &lt;BR /&gt;			CASE (IDM_REPORT_FEATURES) &lt;BR /&gt;				tip='Report feature'C &lt;BR /&gt;			CASE (IDM_DIST) &lt;BR /&gt;				tip='Bearing &amp;amp; Distance'C &lt;BR /&gt;		END SELECT &lt;BR /&gt;		TTT%lpszText=loc(tip)		 &lt;BR /&gt;	end if</description>
      <pubDate>Tue, 12 Dec 2000 06:26:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930131#M14599</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-12T06:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbars in Fortran Win Apps</title>
      <link>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930132#M14600</link>
      <description>Here is some code that I developed from dujic's example, it is for CVF v6.5.  &lt;BR /&gt;The routine CreateToolBAr is called at the begining of WinMain before the message loop. &lt;BR /&gt; &lt;BR /&gt;I used the same ID names for the tool bar buttons and the Menu items as I kept getting problems &lt;BR /&gt;with the different menu items &amp;amp; tool bar buttons getting the same ID number. &lt;BR /&gt; &lt;BR /&gt;The button presses are processed in the same way as the menu items in the case(WM_COMMAND) section. &lt;BR /&gt; &lt;BR /&gt;I have added part of the tool tips this is taken from  the case(WM_NOTIFY) section. &lt;BR /&gt; &lt;BR /&gt;In the help index enter 'toolbar' and it shows lots of information which may help. &lt;BR /&gt; &lt;BR /&gt;Hope this helps you. &lt;BR /&gt; &lt;BR /&gt;David &lt;BR /&gt;   &lt;BR /&gt; &lt;BR /&gt;subroutine CreateToolBar &lt;BR /&gt;!------------------------ &lt;BR /&gt;use COMCTL32 &lt;BR /&gt;use grad_inc	! for hWndMain &lt;BR /&gt; &lt;BR /&gt;include 'resource.fd' &lt;BR /&gt; &lt;BR /&gt;type (T_TBBUTTON)	FButton(50) &lt;BR /&gt; &lt;BR /&gt;integer, parameter:: jBitmap(39)=(/0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21, &amp;amp; &lt;BR /&gt;				22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38/) &lt;BR /&gt;integer, parameter:: jdCommand(39) =												&amp;amp; &lt;BR /&gt;		  (/IDM_VIEW_REFRESH,IDM_ZOOM_IN,  IDM_ZOOM_OUT,   IDM_ZOOM_WINDOW,	&amp;amp; &lt;BR /&gt;		IDM_ZOOM_ALL,    IDM_VIEW_PAN, IDM_WINDOW_LAST,IDM_WINDOW_NEXT,		&amp;amp; &lt;BR /&gt;		ID_SEPARATOR1,   IDM_UNDO,     IDM_REDO,       ID_SEPARATOR1,		&amp;amp; &lt;BR /&gt;		IDM_FC,          IDM_CHAFC,    ID_SEPARATOR1,  IDM_INPUT,		&amp;amp; &lt;BR /&gt;		IDM_EDIT,        IDM_COPY,     IDM_MOVE,       IDM_DELETE,		&amp;amp; &lt;BR /&gt;		IDM_RESTOR,      ID_SEPARATOR1,IDM_JOIN,       IDM_SPLIT,		&amp;amp; &lt;BR /&gt;		IDM_DIVLIN,      IDM_OFFSET,   IDM_PROJ,       IDM_INTCC,		&amp;amp; &lt;BR /&gt;		IDM_INTCL,       IDM_INTLL,    ID_SEPARATOR1,  IDM_CHAHT,		&amp;amp; &lt;BR /&gt;		IDM_LEVTEX,      IDM_DELCO,    ID_SEPARATOR1,  IDM_SETPLT,		&amp;amp; &lt;BR /&gt;		ID_SEPARATOR1,   IDM_DIST,     IDM_REPORT_FEATURES/) &lt;BR /&gt; &lt;BR /&gt;integer*2	i2 &lt;BR /&gt;logical*4	lret &lt;BR /&gt; &lt;BR /&gt;DO i2 = 1,39 &lt;BR /&gt;	if (i2 /= 9 .and. i2 /= 12 .and. i2 /= 15 .and. i2 /= 22 .and. i2 /= 31 &amp;amp; &lt;BR /&gt;		.and. i2 /= 35 .and. i2/=37) then &lt;BR /&gt; &lt;BR /&gt;		fButton(i2)%ibitmap = jBitmap(i2) &lt;BR /&gt;		fButton(i2)%idcommand = jdCommand(i2) &lt;BR /&gt;		fButton(i2)%fsstate = TBSTATE_ENABLED &lt;BR /&gt;		fButton(i2)%fsstyle = TBSTYLE_BUTTON &lt;BR /&gt;		fButton(i2)%dwData = 0 &lt;BR /&gt;		fButton(i2)%iString = 0 &lt;BR /&gt;	else &lt;BR /&gt;		fButton(i2)%fsstate = TBSTATE_ENABLED &lt;BR /&gt;		fButton(i2)%fsstyle = TBSTYLE_SEP &lt;BR /&gt;		fButton(i2)%dwData = 0 &lt;BR /&gt;		fButton(i2)%iString = 0 &lt;BR /&gt;	end if &lt;BR /&gt; &lt;BR /&gt;END DO &lt;BR /&gt; &lt;BR /&gt;hWndToolBar = CreateToolBarEx(hWndMain, WS_CHILD.OR.TBSTYLE_TOOLTIPS.OR. &amp;amp; &lt;BR /&gt;		WS_BORDER,IDR_TOOLBAR,5,hInst,IDR_TOOLBAR, FButton,&amp;amp; &lt;BR /&gt;		39,0,0,16,15,20) &lt;BR /&gt;lret = ShowWindow(hWndToolbar, SW_SHOW) &lt;BR /&gt;end subroutine CreateToolBar &lt;BR /&gt; &lt;BR /&gt;!-------------------------------------------------------------------- &lt;BR /&gt; &lt;BR /&gt;type (T_TOOLTIPTEXT) :: TTT;POINTER(lpTTT,TTT) &lt;BR /&gt;type (T_NMHDR) :: Header;POINTER(lpHeader,Header) &lt;BR /&gt; &lt;BR /&gt;case (WM_NOTIFY) &lt;BR /&gt;	lpHeader=lparam &lt;BR /&gt;	if (Header%Code==TTN_NEEDTEXT) then &lt;BR /&gt;		lpTTT=lParam &lt;BR /&gt;		SELECT CASE (Header%idFrom) &lt;BR /&gt;			CASE (IDM_VIEW_REFRESH) &lt;BR /&gt;				tip='Refresh View (plot all)'C &lt;BR /&gt;			CASE (IDM_ZOOM_IN) &lt;BR /&gt;				tip='Zoom In x2'C &lt;BR /&gt;			CASE (IDM_ZOOM_OUT) &lt;BR /&gt;				tip='Zoom Out x2'C &lt;BR /&gt;			CASE (IDM_ZOOM_WINDOW) &lt;BR /&gt;				tip='Window Area'C &lt;BR /&gt;etc. &lt;BR /&gt; &lt;BR /&gt;			CASE (IDM_PROJ) &lt;BR /&gt;				tip='Project point'C &lt;BR /&gt;			CASE (IDM_REPORT_FEATURES) &lt;BR /&gt;				tip='Report feature'C &lt;BR /&gt;			CASE (IDM_DIST) &lt;BR /&gt;				tip='Bearing &amp;amp; Distance'C &lt;BR /&gt;		END SELECT &lt;BR /&gt;		TTT%lpszText=loc(tip)		 &lt;BR /&gt;	end if</description>
      <pubDate>Tue, 12 Dec 2000 06:26:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Toolbars-in-Fortran-Win-Apps/m-p/930132#M14600</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2000-12-12T06:26:44Z</dc:date>
    </item>
  </channel>
</rss>

