- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Jugoslav
- 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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page