473,769 Members | 3,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView and Thumbnail Sizes

Hi (this is a rephrase of my question from yesterday!),
How can I set the size of the thumbnails of a listview in thumbnail mode?
I'm owner drawing images from my own cache (i.e. they aren't stored in
LargeImageList) but the only way I can see to tell the listview how large I
want each thumb to be is by setting the ImageSize property of
LargeImageList. Unfortunately, the maximum size for an image in this case
is 256 x 256 pixels, but I want to go up as high as 1024 x 1024. I thought
tilemode might be useful, but it doesn't work in VirtualMode. Then I
thought about subclassing ImageList to override size, but this class is
sealed, so I can't. I seem to be thwarted at every turn.....

Any ideas? As an alternative, are there any 3rd party controls around that
allow arbitrary thumbnail sizes, but still provide all the nice features of
the .NET list view, like virtual mode, thumbnail view, column view etc. ?

Thanks
Mar 29 '07 #1
1 2125
Just in case anyone is interested, this is apparently a hard limitation of
the Windows.Forms ListView, but not of the vanilla Win32 list view (I
assumed the former was just wrapping the latter).

So, I will be using the ActiveX/COM Common Control version instead.

Mar 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5614
by: Mike | last post by:
Sites using thumbnail preview for world wide web file navigation and searching. Below are list of sites that are either researching or providing thumbnail preview images for online web documents. Thumbnail previews are useful for web site navigation particularly in search engines and directories such as Google, Altavista and Yahoo. The preview images provide a portion of the content of the electronic file to aid in navigation.
2
1597
by: Roger | last post by:
I need to calculate the thumbnail sizes PILL will produce from an image. In most cases I can divide and round by adding .5, but PIL seems to round differently on odd sized images. For example, I want to reduce an 800x816 image to have a maximum size of 697. (697/816) * 800 = 683.33, so my rounding results in 683. But PIL produces an image of 684x697. Is there an easy rule that will always work -- like adding .67 instead of .5?
3
11401
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows thumbnails. View the following snapshot to compare the Windows thumbnails (top) to my ListView thumbnails (bottom): http://home.san.rr.com/vagabondia/images/tmp/sample.gif It looks like the Windows thumbnails retain their proportion by, perhaps,
13
3771
by: Maheshkumar.R | last post by:
hi groups, I have placed an listview control, i want to iterate thru the control and find the clicked event items. listView2.Items.Add(fname.ToString(), i); how i can perform the iteration to find the item clicked...? and its item. thankz-- Mähésh Kumär. R
0
2241
by: Chris Putnam | last post by:
I am working on an application that includes a feature where a directory is spidered and thumbnails are displayed. I have it pretty much down, but when the bitmaps are loaded from file, memory is hogged like crazy. I know this is where the memory problems occur because I've gone through that whole comment/check the ram thing. Here's the source of where the problem occurs: Public Shared Sub FillImageList(ByVal dir As String, ByVal...
1
587
by: Paul | last post by:
Hi, I'm struggling to create an app that contains a window showing thumbnails of all. jpg files within a specified directory. I've been a couple of examples of how to iterate through a directory and extract thumbnails from each jpg file but nothing about what should happen to the extracted thumbnail. Ideally I would like each thumbnail to be displayed (with filename underneath each thumbnail) in a listview control (large icon view).
12
7486
by: J L | last post by:
When I fill a listview, I resize the columns to fit the data. I need to know if the data will fit vertically or if there will be a vertical scroll bar. I need to know this so I can allow for it on the overall size of the listview. My question therefore is, how can I tell if the items I have added will fit in the listview at its given height? A secondary one, just for interest sake...is there a way to determine the exact heght needed...
0
826
by: Duracel | last post by:
Is there any way to allow item sizes of 256 x 256 pixels for a ListView in thumbnail mode? At the moment I'm using the LargeImageList and SmallImageList purely to tell the listview what size I want each item panel to be, but because I'm owner drawing (and not actually rendering items in either of these image lists, rather fetching them from my own cache), I can draw items with much larger sizes. Indeed what I want to do is go up to...
1
1791
by: Mark | last post by:
I am trying to show many Images in a Listview controls with size(100,100). But some of the images sizes are big, like width=238 and height 50. These images does not appear proper in the listview control. What do I need to do to see the Images same as I am looking using windows explorer thumbnail. Please help me as I am stuck on this for almost two days now. Thanks for any help you can provide.
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10198
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9848
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8860
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.