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

simple dialogue control question

chunky_lover_23
Beginner
225 Views

Does anyone know a simple way to hide or otherwise make invisible a control (eg a combobox) item within a dialogue panel ?

Thanks

0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
225 Views
Statically (from the dialog editor): uncheck the "Visible" check box.

Dynamically (from the code):
USE DFWIN
ShowWindow(GetDlgItem(Dlg%hWnd, IDC_COMBO1), SW_SHOW/SW_HIDE)
This will work only while the dialog is active (i.e. after DlgModal or DlgModeless, not before), that is, from callback routines. To initialize a control to non-default-visible state, you have to do it from a dialog-initialization callback (DLG_INIT)

You might also be interested in this.
0 Kudos
Reply