Solved

Creating a 512 item Legend Window

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

911 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

24 Experts available now in Live!

Get 1:1 Help Now