Atozed Forums

Full Version: TIWComboBox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
XE7  15-0-22
Forgive me for asking again.

When a user selects an item from the drop-down list, I need to put something different in the edit eg if the user selects TODAY then I might put 29/11/2020 in the box.  I have experimented with ItemsHaveValues but this does not seem to do anything other than present only the name of name=value (ok) but name also goes into the box.

Thanks.
When you said the "edit" you mean the edit box from the same combobox control, I suppose??

I don't think there is a simple way to do that using a standard combobox because they are not meant to work like this. Whaterver they display needs to be part of the list.
(11-30-2020, 10:32 AM)Alexandre Machado Wrote: [ -> ]When you said the "edit" you mean the edit box from the same combobox control, I suppose??

I don't think there is a simple way to do that using a standard combobox because they are not meant to work like this. Whaterver they display needs to be part of the list.

Yes, I meant the box.  Many thanks for the info.  I just wondered what the ItemsHaveValues check does, nothing useful as far as I can see.

(11-30-2020, 10:39 AM)denville Wrote: [ -> ]
(11-30-2020, 10:32 AM)Alexandre Machado Wrote: [ -> ]When you said the "edit" you mean the edit box from the same combobox control, I suppose??

I don't think there is a simple way to do that using a standard combobox because they are not meant to work like this. Whaterver they display needs to be part of the list.

Yes, I meant the box.  Many thanks for the info.  I just wondered what the ItemsHaveValues check does, nothing useful as far as I can see.

I got round it by placing an Edit on top of the combo box.