cluster_note.dlg

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· DLG 代码 · 共 176 行

DLG
176
字号
/*
	cluster notes

*!  VERSION 1.1.0  29mar2005

*/

VERSION 9.0

INCLUDE _std_medium
INCLUDE _ht300
INCLUDE header
HELP hlp1, view("help cluster_notes")
RESET res1

DEFINE fromwd 50
DEFINE fromsep +55
DEFINE towd 35
DEFINE tosep +45

DIALOG main, label("cluster notes - Cluster analysis notes") tabtitle("Main")
BEGIN
  RADIO    rb_list        _lft      _top      _iwd      ., first	/*
		*/ clickon("script list")				/*
	*/ label("List notes for cluster analyses:  (leave empty for all)")
  COMBOBOX cb_list        _indent2  _ms       _inwd     ., dropdown	/*
		*/ append						/*
		*/ contents(char _dta[_cl])				/*
		*/ label("List notes for cluster analyses")

  RADIO    rb_add         _lft      _xls      _iwd      .,		/*
		*/ clickon("script add")				/*
		*/ label("Add note to cluster analysis:")
  COMBOBOX cb_add         _indent2  _ms       _inwd     ., dropdownlist /*
		*/ contents(char _dta[_cl])				/*
		*/ label("Add note to cluster analysis")
  TEXT     tx_note        @         _ms       @         .,		/*
		*/ label("Note:")
  EDIT     ed_note        @         _ss       @         .,		/*
		*/ label("Note")

  RADIO    rb_drop        _lft      _xls      _iwd      ., last		/*
		*/ clickon("script drop")				/*
		*/ label("Delete notes for cluster analysis:")
  COMBOBOX cb_drop        _indent2  _ms       _inwd     ., dropdownlist /*
		*/ contents(char _dta[_cl])				/*
		*/ label("Delete notes for cluster analysis")

  CHECKBOX ck_in          @         _ms       @         _ht2h, groupbox	/*
		*/ clickon("program in_on")				/*
		*/ clickoff("script in_off")				/*
		*/ label("Restrict deletion to cluster notes:")
  TEXT     tx_from        _indent   _ms       fromwd    ., right	/*
		*/ label("from:")
  SPINNER  sp_from        fromsep   @         _spwd     .,		/*
		*/ min(1) max(9999) default(1)				/*
		*/ label("from")
  CHECKBOX ck_to          _lft2     @         fromwd    .,		/*
		*/ clickon("gaction main.sp_to.enable")			/*
		*/ clickoff("gaction main.sp_to.disable")		/*
		*/ label("to:")
  SPINNER  sp_to          tosep     @         _spwd     .,		/*
		*/ min(1) max(9999) default(1)				/*
		*/ label("to")
END


SCRIPT list
BEGIN
	main.cb_list.enable
	script add_off
	script drop_off
END

SCRIPT add
BEGIN
	main.cb_list.disable
	script add_on
	script drop_off
END

SCRIPT drop
BEGIN
	main.cb_list.disable
	script add_off
	script drop_on
END

SCRIPT add_on
BEGIN
	main.cb_add.enable
	main.tx_note.enable
	main.ed_note.enable
END

SCRIPT add_off
BEGIN
	main.cb_add.disable
	main.tx_note.disable
	main.ed_note.disable
END

SCRIPT drop_on
BEGIN
	main.cb_drop.enable
	program ckin_on
END

SCRIPT drop_off
BEGIN
	main.cb_drop.disable
	script ckin_off
END

PROGRAM ckin_on
BEGIN
	call gaction main.ck_in.enable
	if main.ck_in {
		call program in_on
	}
	if !main.ck_in {
		call script in_off
	}
END

SCRIPT ckin_off
BEGIN
	main.ck_in.disable
	script in_off
END

PROGRAM in_on
BEGIN
	call gaction main.tx_from.enable
	call gaction main.sp_from.enable
	call gaction main.ck_to.enable
	if main.ck_to {
		call gaction main.sp_to.enable
	}
	if !main.ck_to {
		call gaction main.sp_to.disable
	}
END

SCRIPT in_off
BEGIN
	main.tx_from.disable
	main.sp_from.disable
	main.ck_to.disable
	main.sp_to.disable
END


PROGRAM command
BEGIN
	put "cluster notes "
	if main.rb_list {
		put main.cb_list
	}
	if main.rb_add {
		require main.cb_add
		require main.ed_note
		put main.cb_add " " " : " main.ed_note
	}
	if main.rb_drop {
		require main.cb_drop
		put "drop " main.cb_drop " "
		if main.ck_in {
			put " in " main.sp_from
			if main.ck_to {
				put "/" main.sp_to
			}
		}
	}
END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?