TommyCee
Civil/Environmental
- Nov 6, 2009
- 13
This is for Compaq Visual Fortran (v6x):
As most of you know, for the standard ComboBox has 3 Types (modes):
1. Simple
2. Dropdown
3. Drop List
1&2 are both editable and only differ in the way the choices are displayed (simple exposes all choices; Dropdown hides them until the dropdown list is clicked).
In this latter sense (display of choices), 2&3 are identical but the choices for 3 are fixed (i.e., not editable).
In my case, I have an input variable that takes on one of two modes in terms of choices:
A) a fixed value (hardwired; user cannot alter).
B) some editable (adjustable) value - presented in an edit box that the user can change.
For A, #3 (Drop List) would be ideal; for B, #2 (Dropdown) would be ideal.
This is actually very common in dialogs you see used in a variety of apps. in which a list may provide a series of "fixed" choices, and then a last one [e.g., Other (please specify)] - the "please specify" is editable. I believe Delphi allows one to configure this way fairly easily.
For CVF, I wonder if there is any way to configure either the ComboBox in the Resource Editor itself, or some trick coding using (for example) DlgSet, etc. to accomplish this.
Any help is appreciated.
p.s.
The so-called "Extended" ComboBox in the Resource Editor is of no help in overcoming this obstacle.
As most of you know, for the standard ComboBox has 3 Types (modes):
1. Simple
2. Dropdown
3. Drop List
1&2 are both editable and only differ in the way the choices are displayed (simple exposes all choices; Dropdown hides them until the dropdown list is clicked).
In this latter sense (display of choices), 2&3 are identical but the choices for 3 are fixed (i.e., not editable).
In my case, I have an input variable that takes on one of two modes in terms of choices:
A) a fixed value (hardwired; user cannot alter).
B) some editable (adjustable) value - presented in an edit box that the user can change.
For A, #3 (Drop List) would be ideal; for B, #2 (Dropdown) would be ideal.
This is actually very common in dialogs you see used in a variety of apps. in which a list may provide a series of "fixed" choices, and then a last one [e.g., Other (please specify)] - the "please specify" is editable. I believe Delphi allows one to configure this way fairly easily.
For CVF, I wonder if there is any way to configure either the ComboBox in the Resource Editor itself, or some trick coding using (for example) DlgSet, etc. to accomplish this.
Any help is appreciated.
p.s.
The so-called "Extended" ComboBox in the Resource Editor is of no help in overcoming this obstacle.