Ordering Listbox

Garrett Sever
07-01-2001, 07:17 AM
I posted this in the VB Help section yesterday and realized it should probably go here, so I killed those posts.

I was really bored Friday night and decided to recreate an old Smalltalk/V test app I had in VB. It is an ordering listbox that uses your standard Listbox control and paints things ontop of the items.

It doesn't use subclassing so most beginner/intermediates should understand it if they are curious.

Attached is a screenshot. I will post the project source code in a following message if people would like to see it.

-Hand out

"On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club

Garrett Sever
07-02-2001, 07:03 AM
Yeah, leave it to move this post from a well-traveled section to one which noone reads. Good planning on my part :-(

Been viewed 10 times and 5 of them were me. Pathetic. Well, if any of you want the source let me know.

"On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club

BillSoo
07-03-2001, 01:13 AM
Hey *I* read this section! It's just that I have no need for a listbox as you describe.

What might be nice though is a tutorial of how you did it....Like writeup a tutorial, with code and comments, and post it here. I'll edit it and post it to the Tutor's Corner and give you credit.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

Laurent
07-03-2001, 09:53 AM
i also try to seek up this room too but i'm mainly in vb help!!
what is this list box ordering, the text or the #? in what kind of project can we use this type of utility

I'll be among the best soon, very soon!!!

Garrett Sever
07-04-2001, 10:00 AM
Something like this might be useful in a program where the user can select an order of items, rather than having "Up" and "Down" buttons to sort the list... Its just a different way of handling the GUI design.

In a similar manner, you could use this code to draw other things on a listbox, like icons, arrows, or whatever.

I never said it was really useful, just kinda neat ;-)
-Hand out


"On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club

DevPpcUSA
09-25-2001, 02:45 PM
I would like to see the code. I am interested in just learning how things are done.
Thanks
Rich

Show me your O face images/icons/shocked.gif

Garrett Sever
09-26-2001, 12:54 PM
Talk about digging a post out of the grave of yesteryear... I figured people had totally forgotten about this one. Thanks for taking an interest in it.

Let me look around and see if I can't find the example project. I'll post the code in the Code Library once I do find it.

-<font color=purple>The Hand</font color=purple>

<font color=green>All your code are belong to us...</font color=green> images/icons/tongue.gif

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum