146 lines
6.2 KiB
HTML
146 lines
6.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<head>
|
||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||
<title>Focusing Elements</title>
|
||
<link href="style.css" rel="stylesheet" type="text/css">
|
||
<link href="prettify.css" type="text/css" rel="stylesheet">
|
||
<script type="text/javascript" src="prettify.js"></script><script type="text/javascript" src="lang-vb.js"></script><link href="../resources/main.css" media="screen" rel="stylesheet" type="text/css">
|
||
</head>
|
||
<body onload="prettyPrint()"><div class="placing">
|
||
<br><table class="navigation"><tr>
|
||
<td class="navigation-previous"><a href="chapter-empty-text.html"><strong>
|
||
« Empty Text</strong></a></td>
|
||
<td class="navigation-index"><a href="../../../better-thumbnail-browser/documentation.html"><strong>Index</strong></a></td>
|
||
<td class="navigation-next"><a href="chapter-groups.html"><strong>Groups »
|
||
</strong></a></td>
|
||
</tr></table>
|
||
<br><h1>Focusing Elements</h1>
|
||
<div class="banner">
|
||
<a href="../../../better-thumbnail-browser.html"><img src="../resources/better-thumbnail-browser-overview.gif" alt="Better Thumbnail Browser" class="ss"></a>
|
||
<div class="inside">
|
||
<div class="text">Better Thumbnail Browser for .NET (C#, VB) - Image thumbnail viewing and loading control</div>
|
||
<span class="dbtn-c dbtn-hilight"><span class="dbtn-w"><a href="../../../betterthumbnailbrowser.exe" class="dbtn">Download</a></span></span>
|
||
<span class="dbtn-c"><span class="dbtn-w"><a href="../../../better-thumbnail-browser.html" class="dbtn">More Info</a></span></span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h2>Focusing Items and Groups</h2>
|
||
|
||
|
||
<p>Elements of Better ListView controls can be focused independently on
|
||
control focus state. Items, sub-items and groups can be focused using
|
||
mouse or keyboard.</p>
|
||
|
||
<p>When item or group is clicked, it gets focus within the Better
|
||
ListView Control. The focused item is usually displayed slightly darker
|
||
than other items (Aero theme) when selected.</p>
|
||
|
||
<p>The focused item can be recognized by <strong><em>focus
|
||
rectangle</em></strong>, which is apparent when item is focused, but not
|
||
selected:</p>
|
||
|
||
<p class="images"><img src="focus-item.png"><img src="focus-group.png"></p>
|
||
|
||
<p>When graphic theme is turned off, focus rectangle is displayed after
|
||
item or group is focused by keyboard for the first time. To hide focus
|
||
rectangle again, call <span class="code">ResetFocusRectangleDisplay</span>
|
||
method.</p>
|
||
|
||
|
||
<h2>Focusing Sub-Items</h2>
|
||
|
||
|
||
<p>Sub-items can be focused in <strong><em>Details</em></strong> view with
|
||
columns.</p>
|
||
|
||
<p>Sub-items cannot be focused by mouse, but when an item is focused,
|
||
using <span class="code">Left</span> and <span class="code">Right</span> arrow keys allows you to
|
||
move focus rectangle to subsequent sub-items:</p>
|
||
|
||
<p class="images"><img src="sub-items.png"></p>
|
||
|
||
<p>Having a sub-item focused allows you to invoke label editing of
|
||
sub-items using keyboard (see <strong><em><a href="chapter-label-edit.html">Label Editing</a></em></strong> for more
|
||
information).</p>
|
||
|
||
<p>Sub item focusing behavior can be customized using
|
||
<span class="code">SubItemFocusBehavior</span> property. It can have one of the three
|
||
values:</p>
|
||
|
||
<ul style="list-style:none">
|
||
<li>
|
||
<span class="code">None</span><ul style="list-style:none"><li>
|
||
<p>Sub items cannot be focused.</p>
|
||
</li></ul>
|
||
</li>
|
||
<li>
|
||
<span class="code">All</span><ul style="list-style:none"><li>
|
||
<p>Sub items can always be focused.</p>
|
||
</li></ul>
|
||
</li>
|
||
<li>
|
||
<span class="code">Auto</span><ul style="list-style:none"><li>
|
||
<p>Sub-items can be focused in all items except <strong><em><a href="chapter-items.html#combined-items">Combined
|
||
Items</a></em></strong>.</p>
|
||
</li></ul>
|
||
</li>
|
||
</ul>
|
||
<br><hr>
|
||
<p class="note">When sub-item focusing is not possible in a given moment, Better
|
||
ListView utilizes the left or right arrow key to perform horizontal
|
||
scrolling.</p>
|
||
<hr>
|
||
<br><h2>Detecting Focused Element</h2>
|
||
|
||
|
||
<p>Better ListView provides several properties to check which element
|
||
is currently focused:</p>
|
||
|
||
<ul>
|
||
<li>
|
||
<p><span class="code">FocusedGroup</span></p>
|
||
</li>
|
||
<li>
|
||
<p><span class="code">FocusedItem</span></p>
|
||
</li>
|
||
<li>
|
||
<p><span class="code">FocusedSubItem</span></p>
|
||
</li>
|
||
</ul>
|
||
<br><hr>
|
||
<p class="note">When a sub-item is focused (<span class="code">FocusedSubItem</span> property
|
||
is not <span class="code">null</span>), the item is focused as well.</p>
|
||
<hr>
|
||
<br><p>To detect when focused element has been change, use the
|
||
<span class="code">FocusedItemChanged</span> event. Event data contains information
|
||
about both previous and recent focused element.</p>
|
||
|
||
<br><div class="banner">
|
||
<a href="../../../better-thumbnail-browser.html"><img src="../resources/better-thumbnail-browser-overview.gif" alt="Better Thumbnail Browser" class="ss"></a>
|
||
<div class="inside">
|
||
<div class="text">Better Thumbnail Browser for .NET (C#, VB) - Image thumbnail viewing and loading control</div>
|
||
<span class="dbtn-c dbtn-hilight"><span class="dbtn-w"><a href="../../../betterthumbnailbrowser.exe" class="dbtn">Download</a></span></span>
|
||
<span class="dbtn-c"><span class="dbtn-w"><a href="../../../better-thumbnail-browser.html" class="dbtn">More Info</a></span></span>
|
||
</div>
|
||
</div>
|
||
<table class="navigation"><tr>
|
||
<td class="navigation-previous"><a href="chapter-empty-text.html"><strong>
|
||
« Empty Text</strong></a></td>
|
||
<td class="navigation-index"><a href="../../../better-thumbnail-browser/documentation.html"><strong>Index</strong></a></td>
|
||
<td class="navigation-next"><a href="chapter-groups.html"><strong>Groups »
|
||
</strong></a></td>
|
||
</tr></table>
|
||
<br><table class="footer"><tr>
|
||
<td class="footer-title">Better Thumbnail Browser Documentation
|
||
</td>
|
||
<td class="footer-copyright">
|
||
Copyright © 2010-2012 <a href="../../../index.html" target="_blank">ComponentOwl.com</a>
|
||
</td>
|
||
</tr></table>
|
||
</div></body>
|
||
</html>
|