Viktor的Fortran手记之四 IFC可视化设计(一)

Viktor posted @ Sep 04, 2008 11:52:40 PM in FORTRAN with tags Viktor fortran IFC 可视化 Intel Dialog FD Iflogm DlgGet 控件 , 3579 阅读

呵呵……原来在日文版的浏览器下FCKEditor也会变日文版的……很好很强大……

下列内容根据Intel(R) Visual Fortran Compiler Documentation编译。

1 控件类型支持

除ActiveX外,Intel Visual Fortran Compiler(以下简称IFC)支持十五种控件:

  1. Button
  2. Check box
  3. Combo box
  4. Edit box
  5. Group box
  6. List box
  7. Picture
  8. Progress bar
  9. Radio button
  10. Scroll bar (horizonal)
  11. Scroll bar (vertical)
  12. Slider
  13. Spin control
  14. Static text
  15. Tab control

2 控件值的取用: DLGGET()

注意,该东西是个函数,返回逻辑型(.true.对应“成功”,.false.对应“成仁”)。需要什么,应该写成参数。写法是

逻辑值 = DlgGet(对话框变量, 控件ID, 存放值的变量, 需要的值的名称)

比如

retlog = DlgGet(dlg, IDC_SCROLLBAR_TEMPERATURE, slidepos, DLG_POSITION)

需要注意的是,读EDIT控件只能读字符串,存到字符串(一般可用txt之类的名字)中。需要数值时再用read读数值:

double precision :: tol

...

retlog = DlgGet(dlg, IDC_EDIT_TOL, text)
!因为Edit的默认属性就是框里的内容
read (text, *) tol

3 将H文件转化为FD文件

IFC提供DEFTOFD程序。是不是自动的,没试,不敢说。

4 主程序要求

必须

use iflogm

也必须包含.fd文件,如

include 'resource.fd'

Avatar_small
Plus One Board 11th 说:
Feb 16, 2023 08:04:38 AM

On the day indicated by the authorities, the board will surely post the official Class 11th Question Paper 2024 on the official website. For the time being, we are providing a Download Question Paper 2024 to help students begin their studies. Plus One Board 11th Question Paper 2024 We would like to emphasize that this Question Paper 2024 is only a sample that may be revised during the 2024 session.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter