5 Oct 2006 07:43
RE: programmatically controlled an EV_COMBO_BOX
Unless I'm missing something, you simply need to call `enable_select' on the EV_LIST_ITEM you want to select, and `selected_item' on the EV_COMBO_BOX to retrieve the current selected item. The calls to `select_region' and `selected_text' applies to the displayed text in the combo, not to the item you want to select. Regards, Manu > -----Original Message----- > From: eiffel_software@... > [mailto:eiffel_software@...] On Behalf Of Thomas Beale > Sent: Wednesday, October 04, 2006 7:49 AM > To: eiffel_software@... > Subject: [eiffel_software] programmatically controlled an EV_COMBO_BOX > > > I have spent quite a while messing around trying to achieve > something I thought would be simple. My application starts > up, and it knows from the last session which item was chosen > in a COMBO_BOX. There are two > settings: "All" and "Leaf" (used to control a view in another > widget). > The setting is saved to a file, and read in when the tool is > started again. To make the Combo box go to the saved setting, > I do the following: > > path_filter_combo.set_strings > (path_control_filter_names) -- set the possible string values(Continue reading)
No more leafing through the documentation, swearing at its
RSS Feed