Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 18 AUG 2001 10:12:26PM [email protected] wrote:

Maybe this is the ways of Windows…

I have a combobox (style=dropdown list). After I make a valid entry, I can't delete out the entry in a combobox. I know that I could change the sytle, but I don't want to use the "dropdown" style because of its looks. I've tried adding a "blank" as valid item, but no success.

Has anyone ever come up with a workaround for this situation?

Thanks,

Ray

[email protected] onmouseover=window.status=imagine … ;return(true)"

Symmetry Info

Ray Chan ~ Symmetry Info


At 20 AUG 2001 04:16AM Oystein Reigem wrote:

Ray,

The two don't look very different to me.

Anyway - I realize there can be a problem. Let's say there are three values

- TOM

- DICK

- HARRY

in the list. You want to allow the user four choices:

- Select TOM

- Select DICK

- Select HARRY

- Select none of them.

Right?

With the dropdown list combo that is only possible if

- the combo hasn't got a default value

- and the user avoids selecting a value the combo. Once the poor user selects a value in the dropdown list combo it's impossible to deselect it.

If you on the other hand change the style to dropdown, the user can enter a null value all he likes. But he can also enter all kinds of new values. You might not want to allow that.

For all I know there's some secret style bit that can be set for those controls that show a fixed list (dropdown list combo, or list box) - one that allows the user to do a deselect.

But since I don't know, my only suggestion is you add another item

- (none)

or similar, and have a handler that converts this to null behind the scenes.

- Oystein -


At 20 AUG 2001 06:33AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Ray,

Most programs I've seen get round this but using something like a "No Value" type string as one of the entries. Most websites use this technique for picking countries etc.

However, You can programatically load the combo list like so:

.combo_1-]list=@fm : 1 : @fm : 2 : @fm : 3

Which will give you a blank line as the first entry thta a user could select. The Form Designer seems to strip these if you try and enter the list from the properties box.

You may also clear it programatically by setting the TEXT property to a value that doesn't exist in the list..

eg:

.combo_1-]text=NOTHINGTOSEEHEREMOVEALONGMOVEALONG"

The Sprezzatura Group

World leaders in all things RevSoft

www.sprezzatura.com_zz.jpg


At 20 AUG 2001 01:45PM [email protected] wrote:

Thank you Oystein and Sprezz:

I wish there was a secret switch that would allow us to put the value of a combobox to Null. That is, we start off as a Null. Then the user enters something in error/inappropriate. It should be left blank, but alas the incorrect response will stay.

I could programmatically change the list to include a Null. That may be the cleanest solution.

Thanks for the help.

Ray

[email protected] onmouseover=window.status=imagine … ;return(true)"

Symmetry Info

Ray Chan ~ Symmetry Info

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/6f3f66062fa628fd85256aad000c2036.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1