Solved

Creating a 512 item Legend Window

Posted on 2007-11-28
3
209 Views
Last Modified: 2010-04-30
Hi Experts,

I am currently trying to create a Legend Window for an application I'm writing.  This legend will show how a graphics layer, appearing in a map window, featuring many coloured dots is coloured .  In some instances one layer may have in excess of 500 unique values with colour and value attributes I can easily access and use to define the legend window.

I have looked at using listboxes, listviews, comboboxes, datagrids, treeviews etc to create this legend window but cannot determine which would be best suited.

The overall appearance I require is basically a 3 column layout: 1st column being Legend Name (corresponding to how a layer is coloured), 2nd column being item colour (this should appear as a small square or circle of the appropriate colour) 3rd column being the item value.

Whatever control is used should have click properties so that after clicking on an item the user has the option to modify the colour via a commondialog or similar control.  It would also be nice if the coloured icon could be changeable in this way too, ie square, round, star shaped, etc.

Example:

col1                           col2                              col3

Fruit                          Yellow                           Banana
                                 Green                           Apple
                                 Orange                         Orange

Density                     Red                               >10
                                 Yellow                           10<5
                                 Green                            0>

renderer.name        renderer.color(0)            renderer.value(0)
                               renderer.color(1)            renderer.value(1)
                               renderer.color(2)            renderer.value(2)

I'd be very grateful for suggestions on what is the best way to achieve this.

Thanks in advance,

Jason
0
Comment
Question by:JasonFirth
3 Comments
 
LVL 13

Accepted Solution

by:
Mark_FreeSoftware earned 500 total points
ID: 20387963

a flexgrid could work well,
heres an example how to make it editable:
http://www.codeguru.com/vb/controls/vb_othctrl/article.php/c1509/
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21000168
Forced accept.

Computer101
EE Admin
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now