TIWComboBox

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWComboBox

Forum link

 


 

11-29-2020, 11:19 AM:

 

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.

 


 

11-30-2020, 10:32 AM:

 

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:39 AM:

 

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