<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vdiscussion &#187; VP</title>
	<atom:link href="http://vdiscussion.com/tag/vp/feed/" rel="self" type="application/rss+xml" />
	<link>http://vdiscussion.com</link>
	<description>Vinoth Kumar&#039;s Discussion</description>
	<lastBuildDate>Wed, 09 Dec 2009 15:34:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Scroll Bars &#8211; Visual Programming</title>
		<link>http://vdiscussion.com/scroll-bars-visual-programming/</link>
		<comments>http://vdiscussion.com/scroll-bars-visual-programming/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 17:15:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Theory Subjects]]></category>
		<category><![CDATA[Visual Programming]]></category>
		<category><![CDATA[Scroll Bars]]></category>
		<category><![CDATA[VP]]></category>

		<guid isPermaLink="false">http://vdiscussion.com/?p=11</guid>
		<description><![CDATA[Scroll Bars, Visual Programming]]></description>
			<content:encoded><![CDATA[<p>Scroll bars are one of the best features of a graphical user interface. They are easy to use and provide excellent visual feedback. You can use scroll bars whenever you need to display anything—text, graphics, a spreadsheet, database records, pictures, Web pages—that requires more space than is available in the window&#8217;s client area.</p>
<p>Scroll bars are positioned either vertically (for up and down movement) or horizontally (for left and right movement). You can click with the mouse the arrows at each end of a scroll bar or the area between the arrows. A &#8220;scroll box&#8221; (or &#8220;thumb&#8221;) travels the length of the scroll bar to indicate the approximate location of the material shown on the display in relation to the entire document. You can also drag the thumb with the mouse to move to a particular location.</p>
<p><img class="alignnone size-medium wp-image-12" title="Scroll Bars - Visual Programming" src="http://vdiscussion.com/wp-content/uploads/2009/10/Scroll-Bars-Visual-Programming-300x201.jpg" alt="Scroll Bars - Visual Programming" width="300" height="201" /></p>
<p>Programmers sometimes have problems with scrolling terminology because their perspective is different from the user&#8217;s. A user who scrolls down wants to bring a lower part of the document into view; however, the program actually moves the document up in relation to the display window. The Window documentation and the header file identifiers are based on the user&#8217;s perspective: scroll up means moving toward the beginning of the document; scroll down means moving toward the end.</p>
<p>It is easy to include a horizontal or vertical scroll bar in your application window. All you need do is include the window style (WS) identifier WS_VSCROLL (vertical scroll) or WS_HSCROLL (horizontal scroll) or both in the third argument to CreateWindow. The scroll bars specified in the CreateWindow function are always placed against the right side or bottom of the window and extend the full length or width of the client area. The client area does not include the space occupied by the scroll bar. The width of the vertical scroll bar and the height of the horizontal scroll bar are constant for a particular video driver and display resolution. If you need these values, you can obtain them (as you may have observed) from the GetSystemMetrics calls.</p>
<p>Windows takes care of processing all mouse messages to the scroll bars. However, scroll bars do not have an automatic keyboard interface. If you want the cursor keys to duplicate some of the functionality of the scroll bars, you must explicitly provide logic for that (as we&#8217;ll do when we make another version of the SYSMETS program in the next chapter).</p>
]]></content:encoded>
			<wfw:commentRss>http://vdiscussion.com/scroll-bars-visual-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
