Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

combo boxes

rswy
Beginner
406 Views
Hi,
I'd like to use a combo box as a list box under some options and as an edit box otherwise.When I make it an edit box is it possible to get rid of the list elements and then revert back to the list box style under certain other conditions?
I have used the dlg_update and dlg_selchange options.These however do not make the combo box an edit/list box,they just change the way the string is read.
So how do I change the box style as required?
--rswy
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
406 Views
The easiest way is to have two controls, one list box and one edit box. Then, you can
- disable one or another according to position of, say, radio-button using DLG_ENABLE
- show/hide appropriate control using:
  USE DFWIN
  ...
  iSt=ShowWindow(GetDlgItem(Dlg%hWnd, IDC_SOMETHING), SW_SHOW/SW_HIDE)
This will work only from callback functions, though. My XFLOGM module adds DLG_VISIBLE flag.

Jugoslav
0 Kudos
Reply