Solved

Creating a 512 item Legend Window

Posted on 2007-11-28
3
207 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

708 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

16 Experts available now in Live!

Get 1:1 Help Now