🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual
3 messages
3 total messages Started by sjoerd Tue, 10 Jun 2003 14:47
what kind of box is this?
#241
Author: sjoerd
Date: Tue, 10 Jun 2003 14:47
10 lines
1572 bytes
Hi,

I want to create a listbox containing images with descriptions. I've seen
them for example in Excel where you have the possibility to change the
background color of a call. When clcicking this option a box is displayed
with a column of colored rectangles with the colorname written behind it.

How do they do this?

Sjoerd
Re: what kind of box is this?
#242
Author: Don
Date: Tue, 10 Jun 2003 15:16
23 lines
1948 bytes
On Tue, 10 Jun 2003 16:47:02 +0200, "sjoerd" <iwi@iwi.myweb.nl> wrote:

>Hi,
>
>I want to create a listbox containing images with descriptions. I've seen
>them for example in Excel where you have the possibility to change the
>background color of a call. When clcicking this option a box is displayed
>with a column of colored rectangles with the colorname written behind it.
>
>How do they do this?
>
>Sjoerd
>
ListBox? NO... Labels! YES...
Set up a Label Control array (one for each color you want) and set each BackColor to the colors needed and the Caption to the Name (if needed).
In the Click Event use the BackColor for your settings...

Food for thought


Have a good day...

Don
Re: what kind of box is this?
#243
Author: Arijit
Date: Tue, 10 Jun 2003 18:42
16 lines
1784 bytes
"sjoerd" <iwi@iwi.myweb.nl> wrote in message news:<bc4r1g$bh6$1@news4.tilbu1.nb.home.nl>...
> Hi,
> 
> I want to create a listbox containing images with descriptions. I've seen
> them for example in Excel where you have the possibility to change the
> background color of a call. When clcicking this option a box is displayed
> with a column of colored rectangles with the colorname written behind it.
> 
> How do they do this?
> 
> Sjoerd

You will have to use a owner-drawn listbox, which is very difficult to 
create from vb. You will therefore have to use a third-party control.
You might even get a free one on the internet. However, if you are willing
to use a combo box, you can use the ImageCombo control.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads