Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   What do you call...(not a joke) (https://thetfp.com/tfp/tilted-technology/47931-what-do-you-call-not-joke.html)

mpedrummer2 03-05-2004 12:00 AM

What do you call...(not a joke)
 
What's the correct term for the input boxes you get in programs that have buttons beside them that allow you to re-order the contents of the box?

I'm trying to google for it to learn how to do it, but I'm having no luck since I don't know what the hell it's called.

MPEDrummer

mgcloud 03-05-2004 12:07 AM

Are you referring to a ListBox?

Not quite sure I understand what you mean (image comes from google img search on listbox)

mpedrummer2 03-05-2004 12:42 AM

Kinda. Imagine that, with buttons on the side to let you move individual items in the list up and down.

mpedrummer2 03-05-2004 01:19 AM

Maybe explaining what I'm trying to do would help...

I'm making a "rules" system, that will be applied to results from a database as it's displayed, color coding them, etc.

The rules themselves are stored in a database. The only issue I'm having now is an easy-to-use interface for reordering the rules. I was thinking of having a listbox that could rearrange them, then an UPDATE command to...update...the order.

Beh...anyway, I'm tired, and it's late.

MPEDrummer

Silvy 03-05-2004 02:06 AM

Quote:

Originally posted by mpedrummer2
I'm making a "rules" system, that will be applied to results from a database as it's displayed, color coding them, etc.

The rules themselves are stored in a database. The only issue I'm having now is an easy-to-use interface for reordering the rules. I was thinking of having a listbox that could rearrange them, then an UPDATE command to...update...the order.

The Filter systems in some mail clients come to mind. Is that the kind of functionality that you want?
I'm thinking of the Thunderbird Mail client, but I believe Eudora and Netscape have similar boxes.
I don't know a specific term for that "box" though. I think you'll need to use a listbox with seperate buttons and then program the actions behind the buttons to adjust the ordering. I don't think any programming environment has such a "rules-box" as a standard component.

zaiaz 03-05-2004 05:08 AM

Is it maybe a drop down box that will sort and update your data?

hrdwareguy 03-05-2004 06:49 AM

Like Silvy said, you will want a list box and a couple of buttons the conde in the buttons will look something like this:

Code:

    if listbox.item > -1 then
    {
        i=listbox1.itemindex;
        listbox1.insert(i-1,listbox.strings[i];
        listbox1.delete(i);
    }

That would move it up, simular code for moving it down.

mpedrummer2 03-05-2004 11:21 AM

Yeah, Silvy's on the right track, that's pretty much the functionality I'm trying to offer.

I wish this wasn't an intranet site, then I could show you guys...

n0nsensical 03-05-2004 05:08 PM

I think what you're looking for is a spin control.

Edit--Nevermind, it's not a spin control. I do know what you're really talking about, but I don't know of any specific name for it, just a specialized listbox.

mpedrummer2 03-06-2004 01:38 AM

Actually, I did manage to come up with a solution...Googling for 'listbox reorder javascript' eventually led me to a freeware script that I'm working on modifying now...just gotta learn a bit of Javascript to do so...I'm mainly a PHP/MySQL guy, but I'm getting there, and really beginning to see the usefulness of client-side scripting.

MPEDrummer

Quadraton 03-09-2004 01:53 PM

All I can think of from your description is the Header Control, which is often used as part of the Listbox Control.

Header Control : Code Project

If that isn't it, could you provide a common example of another application that uses the control your describing?

mpedrummer2 03-09-2004 05:58 PM

That looks like complete overkill :)

Think Outlook's "Rules Wizard"...you gotta apply the rules in the right order, or it doesn't work out the way you want. The thing I'm creating/borrowing is a GUI to easily reorder things.

MPEDrummer

Quadraton 03-09-2004 08:30 PM

Okay, for a moment there, I thought from your original description you were looking for a specific Windows control, of which one doesn't exist as you describe.

Rather, I think what you're describing is what the 'Move Up' and 'Move Down' buttons in the "Rules Wizard" do. In which case, I don't think there is a specific term for that. They just happen to be simple push buttons that grab a handle to the listbox, and change the order of the contents of the listbox through simple listbox function calls.

Other than that, it's obvious I probably won't be very much help in this thread :)


All times are GMT -8. The time now is 11:26 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47