Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Shapes into List Box

I am using a List Box to control what shows up on a graph I have created and
it works. I use the List Box as the legend for the graph and have tried to
place the appropriate colored shapes next to each line item. These do not
seem to want to line up very easily. It seems to me that a better solution
would be to put the colored shape with the text in the List Box. Is this
possible? If so, some guidance would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Shapes into List Box

List boxes only hold Text, so no I am affraid you are left to your own
devices on this one...
--
HTH...

Jim Thomlinson


"ZipCurs" wrote:

I am using a List Box to control what shows up on a graph I have created and
it works. I use the List Box as the legend for the graph and have tried to
place the appropriate colored shapes next to each line item. These do not
seem to want to line up very easily. It seems to me that a better solution
would be to put the colored shape with the text in the List Box. Is this
possible? If so, some guidance would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Shapes into List Box


Rather than drag-and-dropping an MSForms Listbox off the 'Tools' menu, click
the 'More Controls...' button and fetch two controls: a Microsoft ListView
6.0 control and an ImageList. You'll need C:\WINNT\system32\comctl32.ocx

The imageList can store small bitmaps and icons; the Listview control can
reference an ImageList and display icons alongside each entry. This needs
some VBA coding, to associate the correct ison with the correct line, but
it's a standard ActiveX interface.

Nile
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Shapes into List Box

Thanks for the suggestion, will try when time permits. Does the ListView
behave like a ListBox, allowing multiple items to be selected? Can items be
put into the ImageList from within the worksheet? All I am trying to do is
create an interactive graph legend.

"Nile_Hef" wrote:


Rather than drag-and-dropping an MSForms Listbox off the 'Tools' menu, click
the 'More Controls...' button and fetch two controls: a Microsoft ListView
6.0 control and an ImageList. You'll need C:\WINNT\system32\comctl32.ocx

The imageList can store small bitmaps and icons; the Listview control can
reference an ImageList and display icons alongside each entry. This needs
some VBA coding, to associate the correct ison with the correct line, but
it's a standard ActiveX interface.

Nile

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Shapes into List Box

Does the ListView behave like a ListBox, allowing multiple items to be
selected?

Yes. An MS-Forms listbox is a cut-down Listview


Can items be put into the ImageList from within the worksheet?


I'm not so sure; I've always loaded up the ImageList with the graphics I
want at design time. However, it may be possible to load the binary data from
a COM control's .Image or .Picture property at runtime.

Let me guess: you want a set of 16x16 icons representing all the possible
line formats you will use in the chart...
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
Naming Auto Shapes and Creating new Shapes AL2000 Excel Discussion (Misc queries) 3 September 10th 07 04:12 AM
When drawing shapes in excel the shapes keep disappearing Tape Excel Discussion (Misc queries) 1 October 6th 06 04:23 PM
Drop down list with shapes Neil Excel Discussion (Misc queries) 2 March 17th 05 05:36 PM
How can i get more 3D shapes for Auto shapes in excel? Ajey Excel Discussion (Misc queries) 0 March 3rd 05 09:53 AM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"