Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

type (dialog) definition

Brooks_Van_Horn
New Contributor I
489 Views

I am in need of converting a HANDLE to a  type(dialog) variable and I cannot find the definition of type (dialog). I've searched IFLOGM.f90 for type dialog and found:
  type, public :: dialog
  sequence
  integer dlgid
  integer(HANDLE) hwnd  ! 0 if dialog is not displayed
  !private
  integer retval
  logical dirty  ! prevents unwanted callbacks when dlg values are changed
  logical mutexflush
  logical comboupdate
  integer(UINT_PTR) dlginitcallback
  integer NumControls
  type (ControlType), pointer, dimension(:) :: list
  end type

If I have a hDlg passed to a routine, how do I associate the same dialog with the type (dialog) dlg variable by setting  the dlgid variable and the hwnd variable too?

 

Brooks V

0 Kudos
2 Replies
andrew_4619
Honored Contributor III
489 Views

I don't really understand the question, I think you need to clarify a little.

When you call DLGINIT ( result = DLGINIT (id,dlg)) dlg is a variable of type dialog that becomes associated with the dialog resource identifier ID.

Later when you call DLGMODAL (or DLGMODELESS) with that dlg variable it will become associated with a Windows handle to the dialog. This will be stored in dlg%hwnd if you need access to it.

 

0 Kudos
Steven_L_Intel1
Employee
489 Views

TYPE(DIALOG) belongs to the IFLOGM module and is meaningful only to the routines there. It isn't something you can create from a handle.

Like Andrew, I'd like to see more of what you're trying to do.

0 Kudos
Reply