combo boxes

combo boxes

Bild des Benutzers rswy

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

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.
Bild des Benutzers Jugoslav Dujic

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

Jugoslav www.xeffort.com

Melden Sie sich an, um einen Kommentar zu hinterlassen.