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

linux fortran dialog box

ekeom
Novice
495 Views
Hello,

I would like to program a dialog box using linux fortan complier. The equivalent visual program look like tihs :

------------------------------------

use dfwin
use dfwinty ! loads parameter definitions
! for MB_YESNOCANCEL, IDYES etc.
integer hWnd ! hWnd Can be NULL

integer iret
character*100 lpszMessage, lpszHeader

if( i.gt.0) then

lpszMessage = "(I>0), Do You want to continue"C
lpszHeader = "ERROR MESSAGE"C

! If hWnd is null, the message box has no owner window...

iret = MessageBox (hWnd, &
lpszMessage, &
lpszHeader, &
IOR(MB_SYSTEMMODAL, &
IOR(MB_YESNOCANCEL)) )
endif

if(iret.eq.IDCANCEL) then
...

else if(iret.eq.IDYES) then
...
else if (iret.eq.IDNO) then
...
endif

------------------------------------

dfwin and dfwinty run visual objects and don't run under Linux.

Thank You very much for Your help.

Didace
0 Kudos
2 Replies
Steven_L_Intel1
Employee
495 Views
You will have to use some separate library to do this. One that supports both Linux and Windows is GINOMENU.
0 Kudos
ekeom
Novice
495 Views
Hello,

I have already use Visual Fortran Library for the Windows version. Thus, I can use separate library for Windows and Linux. The most important is than I want something simple. I just want display some warning, and ask the user to clic on Ok. To be sure that I have read the display message.

Best regards,

Didace
0 Kudos
Reply