RE: drop down list or combo??
- Posted by "sixs" <sixs at ida.net> Dec 02, 2003
- 502 views
Thanks for the very good reply. I have looked at lesson 28 "Emulating a Sorted Combo Control", and also the one I put in my program which was a combo usage too. Is the one I used as good as it gets for a list of ten or so? Jvandal -------- --=========================================================== -- Win = create( Window, "List +", 0, Default, Default, 160, 115, 0 ), -- List1 = create( List, "", Win, 10, 10, 120, 58, 0 ), -- ^^ create a listbox window. -- Label1 = create(RText, "", Win, 10, 70, 120, 20, 0) -- ^^ create a right-justified text display window. procedure onLoad_Win() -- add these items to the listbox addItem( List3, "enemy support" ) addItem( List3, "one" ) addItem( List3, "two" ) addItem( List3, "three" ) addItem( List3, "foiur" ) addItem( List3, "five" ) addItem( List3, "six" ) end procedure procedure show_it(integer here) -- show the selected list item in the text window. sequence this this=getItem(List3,here) setText(milText, this) end procedure procedure onChange_List() -- get the latest index from the listbox, then show it. atom where where=getIndex(List3) show_it(where) end procedure -----Original Message----- From: Derek Parnell [mailto:ddparnell at bigpond.com] Sent: Monday, December 01, 2003 7:47 PM To: EUforum at topica.com Subject: Re: drop down list or combo?? ----- Original Message ----- From: "sixs" <sixs at ida.net> To: <EUforum at topica.com> Sent: Tuesday, December 02, 2003 1:16 PM Subject: drop down list or combo?? > > > Hello, > I am interested in having several fields in a form so they can select > only certain choices. I was reading the mailing list and I am confused > as to what is the best method. Please give me a good example if > possible. It all dependsIf there are only 2,3 or possibly 4 choices for a field, and you have enough screen space, then radio buttons are useful. If there are more than 3 or 4 choices, and less than about 100, then use either a simple List or simple combo if you have screen space, or a drop-down combo otherwise. If you are tight on screen space regardless of how many choices, then a drop-down is the better choice. If you have more than about 100 choices, then you need to be creative. One way is to segment you choices into groups and get the user to pick a group first then an item inside that group. A color-picker is a good example of this. Another method for large, text-type, choices, is to provide a smart-search field where as the user types in characters into it, the main list is filtered down to a smaller matching subset. As a last resort, have the user type in anything and validate it after entry. This is generally a *bad* idea, though. -- Derek TOPICA - Start your own email discussion group. FREE!