<?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 I (personally) do not in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064349#M118137</link>
    <description>&lt;P&gt;I (personally) do not understand why the standards committee did not choose to expand a perfectly good IOR intrinsic to accept an array. "any" as used in ANY grammatically conflicts with "any" in IANY. The former stops examining values in the input array upon the first occurrence, the latter does not.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;(edit, on second thought, it is not technically in grammatical conflict, rather implementationlly in conflict)&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 12:37:00 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2016-03-30T12:37:00Z</dc:date>
    <item>
      <title>non quickwin scrollin application+</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064342#M118130</link>
      <description>&lt;P&gt;When the user clicks the 'Restore Down' button, They get a partial view of my modeless dialog controller, See picture1. I have added the vertical scrollbar and will do the horizontal bar later. Right now I need to know what do I do. The pages are directly drawn to the screen. If I tell it to give me say percentages from 1 to 100 and say it sends me 20, do I have to redrae the screen? Are their any good examples of non-qwin apps using scroll bars?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Brooks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 06:15:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064342#M118130</guid>
      <dc:creator>Brooks_Van_Horn</dc:creator>
      <dc:date>2016-03-29T06:15:39Z</dc:date>
    </item>
    <item>
      <title>Adjusting the drawing area of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064343#M118131</link>
      <description>&lt;P&gt;Adjusting the drawing area of your chart may be relatively easy to do, but changing the display area of the button boxes may be problematic (unless they consume less than full screen when in full screen mode). You could consider having two modeless dialog boxes, one for the buttons (fixed size) and one for the chart area (resizable).&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 13:00:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064343#M118131</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-03-29T13:00:24Z</dc:date>
    </item>
    <item>
      <title>Thanks Jim,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064344#M118132</link>
      <description>&lt;P&gt;Thanks Jim,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Don't really know what I'm going to do if anything. I may just force the user to stay maximized or minimize to the tray. Have you seen an app with the modeless control before?&lt;/P&gt;

&lt;P&gt;Brooks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:03:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064344#M118132</guid>
      <dc:creator>Brooks_Van_Horn</dc:creator>
      <dc:date>2016-03-29T16:03:30Z</dc:date>
    </item>
    <item>
      <title>I've used such an application</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064345#M118133</link>
      <description>&lt;P&gt;I've used such an application before. In my case I'd launched one modeless dialog for a button/slider/spinner box, and one or more additional windows to show charts, graphs, data. I'd used the older Array Visualizer&lt;span class="lia-inline-image-display-wrapper" image-alt="UB-Desktop.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8685iBFF3F8C4742DA50D/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="UB-Desktop.png" alt="UB-Desktop.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 20:45:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064345#M118133</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-03-29T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Here is a code sample showing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064346#M118134</link>
      <description>&lt;P&gt;Here is a code sample showing how to scroll content which is larger than the screen.&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;SUBROUTINE TabFunc (msg, wParam)
    IMPLICIT NONE
    INTEGER(UINT),    INTENT(IN)   :: msg
    INTEGER(fWPARAM), INTENT(IN)   :: wParam
    INTEGER                        :: rval
    
    INTEGER(HANDLE)                :: hwnd
    INTEGER(HANDLE)                :: hdc_Screen
    INTEGER, SAVE                  :: screen_wide, screen_high
    INTEGER, SAVE                  :: clientwide, clienthigh

    !    TYPE T_SCROLLINFO  
    !    SEQUENCE
    !      integer(UINT) Size     ! cbSize knowns  UINT 
    !      integer(UINT) Mask     ! fMask knowns  UINT 
    !      integer(SINT) Min      ! nMin knowns  int 
    !      integer(SINT) Max      ! nMask knowns  int 
    !      integer(UINT) Page     ! nPage knowns  UINT 
    !      integer(SINT) Pos      ! nPos knowns  int 
    !      integer(SINT) TrackPos ! NTrackPos knowns  int 
    !    END TYPE
    TYPE(T_SCROLLINFO)             :: si
    TYPE(T_RECT)                   :: clientRect
           
    !   the scrollbars are attached to the main window instead of the
    !   client area of the tab window so that the scrolling messages
    !   can be seen by MainWndProc()
    hwnd = ghwndmain
    
    !   fullscreen size
    hdc_screen  = GetDC (NULL)
    screen_wide = GetDeviceCaps (hdc_screen, HORZRES)
    screen_high = GetDeviceCaps (hdc_screen, VERTRES)
    rval        = ReleaseDC (NULL, hdc_screen)
    
    !   PVWindow client size, smaller than fullscreen
    rval  = GetClientRect (ghwndPVWindow, clientRect)
    clientWide = clientRect%right  - clientRect%left
    clientHigh = clientRect%bottom - clientRect%top
  
    !   prepare the ScrollInfo data structure
    CALL ZeroMemory (LOC(si), SIZEOF(si))
    si%Size = SIZEOF(si)
    si%Min  = 0
    si%Mask = MOR(SIF_RANGE, SIF_POS, SIF_PAGE)
 
    SELECT CASE (msg)
    
    CASE (WM_CREATE)
        xCurrentScroll = 0 
        yCurrentScroll = 0
        
        si%Max  = screen_wide
        si%Page = clientWide
        si%Pos  = (screen_wide - clientWide)/2
        rval    = SetScrollInfo (hwnd, SB_HORZ, si, TRUE)

        si%Max  = screen_high
        si%Page = clientHigh
        si%Pos  = (screen_high - clientHigh)/2
        rval    = SetScrollInfo (hwnd, SB_VERT, si, TRUE)            

    CASE (WM_HSCROLL, WM_VSCROLL)
        SELECT CASE (LOWORD(wParam))
        CASE (SB_THUMBPOSITION)
            SELECT CASE (msg)
            CASE (WM_HSCROLL)
                xCurrentScroll = HIWORD(wParam)
                si%Pos         = xCurrentScroll
                si%Max         = screen_wide
                si%Page        = clientWide
                rval           = SetScrollInfo (hwnd, SB_HORZ, si, TRUE)
                xCurrentScroll = xCurrentScroll - (screen_wide - clientWide)/2
            CASE (WM_VSCROLL)
                yCurrentScroll = HIWORD(wParam)
                si%Pos         = yCurrentScroll
                si%Min         = 0
                si%Max         = screen_high
                si%Page        = clientHigh
                rval           = SetScrollInfo (hwnd, SB_VERT, si, TRUE)
                yCurrentScroll = yCurrentScroll - (screen_high - clientHigh)/2
            END SELECT
			CALL PVWindowRepaint (-1)  ! repaint the window
        END SELECT

    END SELECT
    
END SUBROUTINE TabFunc


SUBROUTINE ScrollAdjust (ix, iy)
    IMPLICIT NONE
    INTEGER, INTENT(INOUT)      :: ix, iy
        ix = ix - xCurrentScroll
        iy = iy - yCurrentScroll
   END SUBROUTINE ScrollAdjust
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 03:35:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064346#M118134</guid>
      <dc:creator>Paul_Curtis</dc:creator>
      <dc:date>2016-03-30T03:35:17Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064347#M118135</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;

&lt;P&gt;You don't have to IOR in WS_HSCROLL and WS_VSCROLL in the wc in WinMain?&lt;/P&gt;

&lt;P&gt;Brooks&lt;/P&gt;

&lt;P&gt;PS, is MOR your function to do multiple IOR's.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 09:52:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064347#M118135</guid>
      <dc:creator>Brooks_Van_Horn</dc:creator>
      <dc:date>2016-03-30T09:52:31Z</dc:date>
    </item>
    <item>
      <title>MOR is Paul's own function.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064348#M118136</link>
      <description>&lt;P&gt;MOR is Paul's own function. for multiple &amp;nbsp;IORs I think. You can use IANY, for example:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;wc%style = IANY( [ CS_VREDRAW , CS_HREDRAW, CS_OWNDC] )&lt;/PRE&gt;

&lt;P&gt;IANY can take an array form so you can have as many elements as is required. I find this syntax neat. I think IANY was added in F2008&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 11:00:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064348#M118136</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2016-03-30T11:00:56Z</dc:date>
    </item>
    <item>
      <title>I (personally) do not</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064349#M118137</link>
      <description>&lt;P&gt;I (personally) do not understand why the standards committee did not choose to expand a perfectly good IOR intrinsic to accept an array. "any" as used in ANY grammatically conflicts with "any" in IANY. The former stops examining values in the input array upon the first occurrence, the latter does not.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;(edit, on second thought, it is not technically in grammatical conflict, rather implementationlly in conflict)&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 12:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064349#M118137</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-03-30T12:37:00Z</dc:date>
    </item>
    <item>
      <title>You can use IALL for that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064350#M118138</link>
      <description>&lt;P&gt;You can use IALL for that purpose. I know that extension of IOR and IAND were considered but rejected.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:18:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/non-quickwin-scrollin-application/m-p/1064350#M118138</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-03-30T13:18:55Z</dc:date>
    </item>
  </channel>
</rss>

