Intel® Fortran Compiler with Windows-Based Applications

ID 757211
Date 6/30/2025
Public
Document Table of Contents

Use Buttons

Unlike Check boxes and Radio buttons, Buttons do not have a state. They do not hold the value of being pushed or not pushed. When the user clicks on a Button with the mouse, the Button's callback routine is called. Thus, the purpose of a Button is to initiate an action. The external procedure you assign as a callback determines the action initiated. For example:

  LOGICAL retlog
  EXTERNAL DisplayTime
  retlog = DlgSetSub( dlg, IDC_BUTTON_TIME, DisplayTime)

Intel Fortran dialog routines do not support user-drawn Buttons.