?
Solved

Creating a 512 item Legend Window

Posted on 2007-11-28
3
Medium Priority
?
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
Mark_FreeSoftware earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

801 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