Combobox 5.0.0.24

Started by fred_tomke · 2008-09-04 12:26 UTC · 3 replies · SMF topic #419

Hello,

I only want to know if this works as designed or not:

I have drawn an empty Combobox in DropDown style. When I add a list at runtime the list seems to be saved after closing. When calling the form outside my program using (dcl_form_show ...) the combobox is still filled with the latest list. I thought after (dcl_form_show ...) the dropdown must be empty?!  ??? I believe in further releases the combobox was empty by default when OnInitialitze event is called.

Do I have to call the clear method within the OnInitialize event before adding my list?

Fred
author=Fred Tomke link=topic=419.msg1885#msg1885 date=1220531174 wrote:
Do I have to call the clear method within the OnInitialize event before adding my list?


  Yes.
Aha, good to know. Is this new?

Fred
author=Fred Tomke link=topic=419.msg1887#msg1887 date=1220534917 wrote:
Aha, good to know. Is this new?


  Yes.  In the past, the control was filled with the new items, but the analagous property was not modified.  In other words, it was a "design-time-only" property.  Any time I notice a case where a property is "design-time-only" for no reason, I change it.  I don't remember exactly when combo boxes were changed, but it was in one of the recent alpha builds.