Atozed Forums
TIWComboBox - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWComboBox (/thread-2157.html)



TIWComboBox - denville - 11-29-2020

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.


RE: TIWComboBox - Alexandre Machado - 11-30-2020

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.


RE: TIWComboBox - denville - 11-30-2020

(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.