Delphi Stuff

Components

Units

Code

Links

  BTComboSelect

Implements a standard user entry dialog box allowing the user to select an option from a combo selection box. This is similar to the InputBox function except that this uses a combo select.

Source Included
No Help File



Properties

Caption The dialog window's caption in the title bar.

Options The options that the user has to choose from.

Text The message displayed to the user asking them to select an item.

ItemIndex This property is not published. It contains the item index of the selected item once the user closes the dialog.



Methods

Select Calls up the dialog box and waits for user input. Returns a ModalResult.



Example

  dlgCombo.Text := 'Select one of these options:';
  
  dlgCombo.Options.Clear;
  dlgCombo.Options.Add ('Logoff');
  dlgCombo.Options.Add ('Restart');
  dlgCombo.Options.Add ('Shutdown');
  dlgCombo.Options.Add ('Standby');

  If dlgCombo.Select = mrOK
    Then ShowMessage (dlgCombo.Options [dlgCombo.ItemIndex]);

  


Download BTComboSelect 1.0 (09-26-2005)
     
     
 
© 2005 Breit Technologies