Subject Re: COMBOBOX WITH VALID CHECK
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Mon, 2 Sep 2024 20:23:00 +0530
Newsgroups dbase.getting-started

Good Evening Peter,

> How can you customize the combobox to have a VALID feature to ensure a correct choice has been selected

I am pasting help from style property of Combobox.
Setting the style to 2 should solve the issue to a predetermined list.

Regards
Akshat

style

Topic group Related topics

Specifies which parts of a combobox are usable and which parts are
displayed automatically.

Property of

ComboBox

Description

Use style to determine how the user selects values in a combobox.

The user selects a value from a combobox by entering initial characters
in an entryfield or by selecting the value directly from the prompt
list. The style property determines whether the entryfield accepts
input, and how the prompt list is displayed.

You can give Style one of three values:

Style value
  Description

0 (Simple)
  The prompt list does not drop down, and there is no arrow button. The
combobox height property determines how much of the prompt list is
displayed (the default is no prompts, only the entryfield is displayed).
If the combobox contains more prompts than can be displayed in the
visible list portion, a scrollbar will appear. The user can select from
the list or type in the entryfield.

1 (DropDown)
  The user has to click the arrow to display the drop-down list. The
user can either type in the entryfield, or select from the list.

2 (DropDownList)
  The user has to click the arrow to display the drop-down list. The
entryfield does not accept input; the user must choose from the list.


Set autoDrop to true to make the prompt list drop automatically when a
style 1 or 2 combobox gets focus.

Pressing Alt+DownArrow when the combobox has focus also displays the
drop-down list.