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

hiding dialog controls

otaviocarpinteiro
724 Views
the visual fortran dialog editor lets me turn
on/off the visible property of a control.
I'd like to do that dinamically, that is, I'd like
to make a program that hides a control in a dialog
window. I've noticed there is not a control index
"DLG_VISIBLE".Is that possible to do that ? if it is, would you
please send a fortran code that makes that possible ?

thanks in advance.
Otavio
(otavio@iee.efei.br)
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
724 Views
My XFLOGM replacement has, among others, DLG_VISIBLE exetension.

With standard DFLOGM, you can use ShowWindow API to achieve the same. However, it will work only from within callback routines. If you want to show/hide control initially, you can write dialog initialization callback (put the ID of the dialog itself into DlgSetSub and it will be called immediately after DlgModal).

The syntax for ShowWindow will be:
USE DFWIN
...
i = ShowWindow(GetDlgItem(Dlg%hWnd,IDC_WHATEVER), SW_HIDE/SW_SHOW)


HTH
Jugoslav
0 Kudos
otaviocarpinteiro
724 Views
Your module XFLOGM worked fine.
Thank you very much.
Otavio
0 Kudos
Reply