ComboBoxControl select none

serifelsenserifelsen Unknown
edited 7:39PM in FastReport 4.0
Hi

I am using combobox in the report form for getting parameters from user.

This combobox is dynamic (i banded it to the datacolumn). As default i set combobox itemindex as -1(none selected) but if user opens combobox, index -1 can not be selected.

Thanks in advance,
Elshan

Comments

  • edited 7:39PM
    Do you mean to giver your user a chance to select NONE from the combo box if he once opened the combo?

    I would avoid this problem in another way:

    1. Put a checkbox above the combo to say "Select something"
    2. Combo would be Enabled := false at design time
    3. Clicking the checkbox would change Enabled flag of the combo
    4. Even if user selected anything within the combo he'd able to give up just with uncheck the checkbox
    5. On BitnBtnClik I would first test if "select something" is checked, and if so I would see what is selected in the combo

    Mick

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.