|  | 
|  03-05-2004, 12:00 AM | #1 (permalink) | 
| Insane | 
				
				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 
				__________________ My sig can beat up your honor student. | 
|   | 
|  03-05-2004, 01:19 AM | #4 (permalink) | 
| Insane | 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 
				__________________ My sig can beat up your honor student. | 
|   | 
|  03-05-2004, 02:06 AM | #5 (permalink) | |
| paranoid Location: The Netherlands | Quote: 
 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. 
				__________________ "Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. " - Murphy MacManus (Boondock Saints) | |
|   | 
|  03-05-2004, 06:49 AM | #7 (permalink) | 
| "Officer, I was in fear for my life" Location: Oklahoma City | 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);
    } | 
|   | 
|  03-05-2004, 05:08 PM | #9 (permalink) | 
| Junkie Location: San Francisco | 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. Last edited by n0nsensical; 03-05-2004 at 11:16 PM.. | 
|   | 
|  03-06-2004, 01:38 AM | #10 (permalink) | 
| Insane | 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 
				__________________ My sig can beat up your honor student. | 
|   | 
|  03-09-2004, 01:53 PM | #11 (permalink) | 
| Addict Location: Ottawa, ON, Canada | 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? 
				__________________ "A witty saying proves nothing" - Voltaire | 
|   | 
|  03-09-2004, 05:58 PM | #12 (permalink) | 
| Insane | 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 
				__________________ My sig can beat up your honor student. | 
|   | 
|  03-09-2004, 08:30 PM | #13 (permalink) | 
| Addict Location: Ottawa, ON, Canada | 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  
				__________________ "A witty saying proves nothing" - Voltaire | 
|   | 
| Tags | 
| callnot, joke | 
| Thread Tools | |
| 
 |  |