12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Callback routines for a control are called after the value of the control has been updated based onthe user’s action.If two or more controls have the same controlid, you cannot use these controls in a DLGSETSUBoperation. In this case, the function returns .FALSE..For more information, see "Dialog Callback Routines" in your user’s guide.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “DLGSET, DLGSETINT, DLGSETLOG, DLGSETCHAR”, “DLGGET,DLGGETINT, DLGGETLOG, DLGGETCHAR”ExamplePROGRAM DLGPROGUSE IFLOGMINCLUDE "MYDLG.FD"TYPE (dialog) mydialogLOGICAL retlogINTEGER returnEXTERNAL RADIOSUBretlog = DLGINIT(IDD_mydlg, dlg)retlog = DLGSETSUB (mydialog, IDC_RADIO_BUTTON1, RADIOSUB)retlog = DLGSETSUB (mydialog, IDC_RADIO_BUTTON2, RADIOSUB)return = DLGMODAL(dlg)ENDSUBROUTINE RADIOSUB( dlg, id, callbacktype )!DEC$ ATTRIBUTES DEFAULT :: callbacknameUSE IFLOGMTYPE (dialog) dlgINTEGER id, callbacktypeINCLUDE 'MYDLG.FD'CHARACTER(256) textINTEGER cel, far, retintLOGICAL retlogSELECT CASE (id)CASE (IDC_RADIO_BUTTON1)! Radio button 1 selected by user so! change text accordinglytext = 'Statistics Package A'2-68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!