📄 gbaryaxis.idlg
字号:
/*
gbaryaxis.idlg Include for graphics y-axis
*! VERSION 1.1.2 31mar2005
Note: This include file is closely related to gxaxis, gaxis ,and graxis.
Any changes should likly be reflected in those files.
*/
/*
gbaryaxis.idlg is the same as gyaxis except for the following changes:
1. replace all occurances of gy with gbary
2. range option is removed
3. log option is removed
4. yscale(reverse) is changned to yreverse
5. options for yalternate and exclude0 have been added
6. Major tick grid lines are by default on. The check box for grid lines
now outputs the nogrid option
*/
/*
// SCRIPTS and PROGRAMS for external use
* SCRIPT gbaryaxis_setExcludeZeroOFF
* PROGRAM gbaryaxis_output
*/
DIALOG gbaryaxis, label("Y-Axis") tabtitle("Y-Axis")
BEGIN
/* LEFT SIDE-- Title */
GROUPBOX gb_title _lft _top _gwd1 _ht20, ///
label("Title ")
EDIT ed_title _lft1g _ss _cwd1gb ., ///
label("Title") option(ytitle)
/* LEFT SIDE-- Title col(1) */
TEXT tx_size _igft _ms _txwd ., ///
label("Size:") right
DEFINE y @y
COMBOBOX cb_size _txsep @ _txr2b4g ., ///
dropdownlist contents(textsizes) option(size)
TEXT tx_tclr _igft _ms _txwd ., ///
label("Color:") right
COMBOBOX cb_tclr _txsep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(color) ///
onselchangelist(gbaryaxis_cl_tclr_sel)
COLOR cl_tclr _tcr2b4gsep @ _colorwd ., ///
option(color)
TEXT tx_orient _igft _ms _txwd ., ///
label("Orientation:") right
COMBOBOX cb_orient _txsep @ _txr2b4g ., ///
dropdownlist option(orientation) ///
contents(orientation) values(orientation_values)
/* LEFT SIDE-- Title upper col(2)*/
TEXT tx_just _gft4_2 y _txwd ., ///
label("Justify:") right
COMBOBOX cb_just _txsep @ _txr2b4g ., ///
dropdownlist contents(justification) option(justification)
TEXT tx_align _lft4_2g _ms _txwd ., ///
label("Alignment:") right
COMBOBOX cb_align _txsep @ _txr2b4g ., ///
dropdownlist contents(alignment) option(alignment)
TEXT tx_margin _lft4_2g _ms _txwd ., ///
label("Margin:") right
COMBOBOX cb_margin _txsep @ _txr2b4g ., ///
dropdown contents(margin) option(margin)
TEXT tx_ttlgp _gft4_2 _ms _txwd ., ///
label("Title gap:") right
EDIT ed_ttlgp _txsep @ _txr2b4g ., ///
label("Title gap") option(titlegap)
/* LEFT SIDE-- Title lower*/
CHECKBOX ck_box _igft _ms _cwd1gb _ht5, ///
groupbox label("Box") option(box) ///
onclickon(script gbarybox_enable) ///
onclickoff(script gbarybox_disable)
/* LEFT SIDE-- Title lower col(1)*/
TEXT tx_bclr _iigft _ms _txswd ., ///
label("Fill color:") right
COMBOBOX cb_bclr _txssep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(fcolor) ///
onselchangelist(gbaryaxis_cl_bclr_sel)
COLOR cl_bclr _tcr2b4gsep @ _colorwd ., ///
option(fcolor)
DEFINE ymk @y
TEXT tx_blclr _iigft _ms _txswd ., ///
label("Line color:") right
COMBOBOX cb_blclr _txssep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(lcolor) ///
onselchangelist(gbaryaxis_cl_blclr_sel)
COLOR cl_blclr _tcr2b4gsep @ _colorwd ., ///
option(lcolor)
TEXT tx_bmargin _gft4_2 ymk _txswd ., ///
label("Margin:") right
COMBOBOX cb_bmargin _txssep @ _txr2b4g ., ///
dropdown contents(margin) option(bmargin)
CHECKBOX ck_expand @ _ms _txr2b4g ., ///
label("Ignore text") option(bexpand)
/* LEFT SIDE-- Options */
GROUPBOX gb_option _lft _xls _gwd1 _ht7, ///
label("Scale options ")
/* LEFT SIDE-- Options col(1) */
/* !- range ckeckbox label and edit boxes were removed */
TEXT tx_lclr _igft _ms _txwd ., ///
label("Color:") right
COMBOBOX cb_lclr _txsep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(lcolor) ///
onselchangelist(gbaryaxis_cl_lclr_sel)
COLOR cl_lclr _tcr2b4gsep @ _colorwd ., ///
option(lcolor)
DEFINE y @y /* !- moved from infront of tx_lclr */
TEXT tx_outergp _igft _ms _txwd ., ///
label("Outer gap:") right
EDIT ed_outergp _txsep @ _txr2b4g ., ///
label("Outer gap") option(outergap)
/* !- added components and option for exclude0 */
CHECKBOX ck_exclude @ _ms _txr2b4g ., ///
label("Exclude zero") option(exclude0)
/* LEFT SIDE-- Options col(2) */
TEXT tx_scfake _gft4_2 y 0 0,
/* !- replace _txsep with _gft4_2 */
CHECKBOX ck_scaleoff _gft4_2 @ _gwd4_2 ., ///
label("Hide Y-axis") option(off) ///
onclickon(program gbaryaxis_hide_scale_check) ///
onclickoff(program gbaryaxis_hide_scale_check)
/* !- Change ck_log to ck_yalt */
CHECKBOX ck_yalt @ _ms @ ., ///
label("Y-Axis swaps sides") option(yalternate)
CHECKBOX ck_rev @ _ms @ ., ///
label("Reverse") option(yreverse) /* !- reverse to yreverse */
/**************************************************************/
/* RIGHT SIDE-- Ticks / Lines */
GROUPBOX gb_mode _lft2g _top _gwd1 _ht30h, ///
label("Ticks / Lines ")
COMBOBOX cb_tkmode _igft2 _ss _cwd4_6 ., ///
dropdownlist contents(gbarytick_opt) ///
onselchangelist(gbarymode_change)
TEXT tx_tkmode +150 @ _cwd4_6 .,
TEXT tx_mark2 _igft2 _ms 0 0,
DEFINE rty @y
/**************************************************************/
/* RIGHT SIDE-- Major Ticks */
TEXT tx_rule _igft2 rty _txwd ., ///
label("Rule:") right
EDIT ed_rule _txsep @ _tcr2gi ., ///
label("Rule")
BUTTON bt_rule _tcr2gisep @ _btwd ., ///
label("?") onpush(view help major_tick_rule##|_new)
TEXT tx_cstm _igft2 _ms _txwd ., ///
label("Custom:") right
EDIT ed_cstm _txsep @ _tcr2gi ., ///
label("Custom")
BUTTON bt_cstm _tcr2gisep @ _btwd ., ///
label("?") onpush(view help custom_tick_labels##|_new)
/* RIGHT SIDE-- Major Ticks upper col(1) */
TEXT tx_tpos _igft2 _ms _txwd ., ///
label("Position:") right
COMBOBOX cb_tpos _txsep @ _txr2b4g ., ///
dropdownlist contents(tickpos) option(tposition)
DEFINE y @y
TEXT tx_tlng _igft2 _ms _txwd ., ///
label("Length:") right
EDIT ed_tlng _txsep @ _txr2b4g ., ///
label("Length") option(tlength)
TEXT tx_notk _igft2 _ms _txwd ., ///
label("Hide tick:") right
COMBOBOX cb_notk _txsep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_tick)
TEXT tx_nolab _igft2 _ms _txwd ., ///
label("Hide label:") right
COMBOBOX cb_nolab _txsep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_label)
CHECKBOX ck_vlab @ _ms _txr2b4g ., ///
label("Value labels") option(valuelabel)
CHECKBOX ck_altr @ _ss _txr2b4g ., ///
label("Alt. labels") option(alternate)
TEXT tx_tmark _igft2 _vss _txr2b4g 0,
DEFINE y2 @y
/* RIGHT SIDE-- Major Ticks upper col(2) */
TEXT tx_tlclr _gft4_4 y _txwd ., ///
label("Color:") right
COMBOBOX cb_tlclr _txsep @ _tcr2b4g ., ///
dropdownlist contents(colors) ///
onselchangelist(gbaryaxis_cl_tlclr_sel)
COLOR cl_tlclr _tcr2b4gsep @ _colorwd .,
TEXT tx_ang _gft4_4 _ms _txwd ., ///
label("Angle:") right
COMBOBOX cb_ang _txsep @ _txr2b4g ., ///
dropdownlist contents(angles) option(angle)
TEXT tx_fmt _gft4_4 _ms _txwd ., ///
label("Format:") right
EDIT ed_fmt _txsep @ _tcr2b4g ., ///
label("Format") option(format)
BUTTON bt_fmt _tcr2b4gsep @ _btwd ., ///
label("?") onpush(view help format##|_new)
TEXT tx_lgap _gft4_4 _ms _txwd ., ///
label("Label gap:") right
EDIT ed_lgap _txsep @ _txr2b4g ., ///
label("Label gap") option(labgap)
TEXT tx_lsize _gft4_4 _ms _txwd ., ///
label("Label size:") right
COMBOBOX cb_lsize _txsep @ _txr2b4g ., ///
dropdownlist contents(textsizes) option(labsize)
/* RIGHT SIDE-- Major Ticks lower*/
/* !- modified for gbaryaxis */
CHECKBOX ck_grid _igft2 y2 _gwd2 _ht7, ///
groupbox label("Grid ") option(grid) ///
onclickon(program gbaryaxis_grid_check) ///
onclickoff(program gbaryaxis_grid_check)
/* RIGHT SIDE-- Major Ticks lower col(1)*/
TEXT tx_gall _iigft2 _ss _txswd ., ///
label("All lines:") right
COMBOBOX cb_gall _txssep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_gall)
DEFINE y @y
TEXT tx_gwd _iigft2 _ms _txswd ., ///
label("Width:") right
COMBOBOX cb_gwd _txssep @ _txr2b4g ., ///
dropdownlist contents(linewidths) option(glwidth)
/* RIGHT SIDE-- Major Ticks lower col(2)*/
TEXT tx_gclr _gft4_4 y _txswd ., ///
label("Color:") right
COMBOBOX cb_gclr _txssep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(glcolor) ///
onselchangelist(gbaryaxis_cl_gclr_sel)
COLOR cl_gclr _tcr2b4gsep @ _colorwd ., ///
option(glcolor)
TEXT tx_pat _gft4_4 _ms _txswd ., ///
label("Pattern:") right
COMBOBOX cb_pat _txssep @ _txr2b4g ., ///
dropdownlist contents(linepatterns) option(glpattern)
TEXT tx_extend _iigft2 _ms _txr2gia ., ///
label("Extend into plot region margin:") right
COMBOBOX cb_extend _txr2giasep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_gextend)
/**************************************************************/
/* RIGHT SIDE-- Minor Ticks */
TEXT tx_mrule _igft2 rty _txwd ., ///
label("Rule:") right
EDIT ed_mrule _txsep @ _tcr2gi ., ///
label("Rule")
BUTTON bt_mrule _tcr2gisep @ _btwd ., ///
label("?") onpush(view help minor_tick_rule##|_new)
TEXT tx_mcstm _igft2 _ms _txwd ., ///
label("Custom:") right
EDIT ed_mcstm _txsep @ _tcr2gi ., ///
label("Custom")
BUTTON bt_mcstm _tcr2gisep @ _btwd ., ///
label("?") onpush(view help custom_tick_labels##|_new)
/* RIGHT SIDE-- Minor Ticks upper col(1) */
TEXT tx_mtpos _igft2 _ms _txwd ., ///
label("Position:") right
COMBOBOX cb_mtpos _txsep @ _txr2b4g ., ///
dropdownlist contents(tickpos) option(tposition)
DEFINE y @y
TEXT tx_mtlng _igft2 _ms _txwd ., ///
label("Length:") right
EDIT ed_mtlng _txsep @ _txr2b4g ., ///
label("Length") option(tlength)
TEXT tx_mnotk _igft2 _ms _txwd ., ///
label("Hide tick:") right
COMBOBOX cb_mnotk _txsep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_tick)
TEXT tx_mnolab _igft2 _ms _txwd ., ///
label("Hide label:") right
COMBOBOX cb_mnolab _txsep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_label)
CHECKBOX ck_mvlab @ _ms _txr2b4g ., ///
label("Value labels") option(valuelabel)
CHECKBOX ck_maltr @ _ss _txr2b4g ., ///
label("Alt. labels") option(alternate)
TEXT tx_mtmark _igft2 _vss 0 0,
DEFINE y2 @y
/* RIGHT SIDE-- Minor Ticks upper col(2) */
TEXT tx_mtlclr _gft4_4 y _txwd ., ///
label("Color:") right
COMBOBOX cb_mtlclr _txsep @ _tcr2b4g ., ///
dropdownlist contents(colors) ///
onselchangelist(gbaryaxis_cl_mtlclr_sel)
COLOR cl_mtlclr _tcr2b4gsep @ _colorwd .,
TEXT tx_mang _gft4_4 _ms _txwd ., ///
label("Angle:") right
COMBOBOX cb_mang _txsep @ _txr2b4g ., ///
dropdownlist contents(angles) option(angle)
TEXT tx_mfmt _gft4_4 _ms _txwd ., ///
label("Format:") right
EDIT ed_mfmt _txsep @ _tcr2b4g ., ///
label("Format") option(format)
BUTTON bt_mfmt _tcr2b4gsep @ _btwd ., ///
label("?") onpush(view help format##|_new)
TEXT tx_mlgap _gft4_4 _ms _txwd ., ///
label("Label gap:") right
EDIT ed_mlgap _txsep @ _txr2b4g ., ///
label("Label gap") option(labgap)
TEXT tx_mlsize _gft4_4 _ms _txwd ., ///
label("Label size:") right
COMBOBOX cb_mlsize _txsep @ _txr2b4g ., ///
dropdownlist contents(textsizes) option(labsize) ///
label("Label size")
/* RIGHT SIDE-- Minor Ticks lower*/
CHECKBOX ck_mgrid _igft2 y2 _cwd1gb _ht7, ///
groupbox label("Grid ") option(grid) ///
onclickon(program gbaryaxis_mgrid_check) ///
onclickoff(program gbaryaxis_mgrid_check)
/* RIGHT SIDE-- Minor Ticks lower col(1)*/
TEXT tx_mgall _iigft2 _ss _txswd ., ///
label("All lines:") right
COMBOBOX cb_mgall _txssep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_gall)
DEFINE y @y
TEXT tx_mgwd _iigft2 _ms _txswd ., ///
label("Width:") right
COMBOBOX cb_mgwd _txssep @ _txr2b4g ., ///
dropdownlist contents(linewidths) option(glwidth)
/* RIGHT SIDE-- Minor Ticks lower col(2)*/
TEXT tx_mgclr _gft4_4 y _txswd ., ///
label("Color:") right
COMBOBOX cb_mgclr _txssep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(glcolor) ///
onselchangelist(gbaryaxis_cl_mgclr_sel)
COLOR cl_mgclr _tcr2b4gsep @ _colorwd ., ///
option(glcolor)
TEXT tx_mpat _gft4_4 _ms _txswd ., ///
label("Pattern:") right
COMBOBOX cb_mpat _txssep @ _txr2b4g ., ///
dropdownlist contents(linepatterns) option(glpattern)
TEXT tx_mextend _iigft2 _ms _txr2gia ., ///
label("Extend into plot region margin:") right
COMBOBOX cb_mextend _txr2giasep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_gextend)
/**************************************************************/
/* Line options */
TEXT tx_lline _igft2 rty _txwd ., ///
label("Values:") right
EDIT ed_lline _txsep @ _txr2gi ., ///
label("Values")
/* Line options col(1) */
TEXT tx_llwd _iigft2 _ms _txswd ., ///
label("Width:") right
COMBOBOX cb_llwd _txssep @ _txr2b4g ., ///
dropdownlist contents(linewidths) option(lwidth)
/* Line options col(2) */
TEXT tx_llclr _gft4_4 @ _txwd ., ///
label("Color:") right
COMBOBOX cb_llclr _txsep @ _tcr2b4g ., ///
dropdownlist contents(colors) option(lcolor) ///
onselchangelist(gbaryaxis_cl_llclr_sel)
COLOR cl_llclr _tcr2b4gsep @ _colorwd ., ///
option(lcolor)
TEXT tx_llpat _gft4_4 _ms _txwd ., ///
label("Pattern:") right
COMBOBOX cb_llpat _txsep @ _txr2b4g ., ///
dropdownlist contents(linepatterns) option(lpattern)
TEXT tx_lextend _igft2 _ms _txr2ga ., ///
label("Extend into plot region margin:") right
COMBOBOX cb_lextend _txr2gasep @ _txr2b4g ., ///
dropdownlist contents(yesno) values(gbaryaxis_cb_extend)
END
LIST gbarytick_opt
BEGIN
"Major ticks"
"Minor ticks"
"Additional lines"
END
LIST gbarymode_change
BEGIN
script gbarymajor_on
script gbaryminor_on
script gbarylines_on
END
LIST gbaryaxis_cl_tclr_sel
BEGIN
gbaryaxis.cl_tclr.hide
gbaryaxis.cl_tclr.show
gbaryaxis.cl_tclr.hide
END
LIST gbaryaxis_cl_bclr_sel
BEGIN
gbaryaxis.cl_bclr.hide
gbaryaxis.cl_bclr.show
gbaryaxis.cl_bclr.hide
END
LIST gbaryaxis_cl_blclr_sel
BEGIN
gbaryaxis.cl_blclr.hide
gbaryaxis.cl_blclr.show
gbaryaxis.cl_blclr.hide
END
LIST gbaryaxis_cl_lclr_sel
BEGIN
gbaryaxis.cl_lclr.hide
gbaryaxis.cl_lclr.show
gbaryaxis.cl_lclr.hide
END
LIST gbaryaxis_cl_tlclr_sel
BEGIN
gbaryaxis.cl_tlclr.hide
gbaryaxis.cl_tlclr.show
gbaryaxis.cl_tlclr.hide
END
LIST gbaryaxis_cl_gclr_sel
BEGIN
gbaryaxis.cl_gclr.hide
gbaryaxis.cl_gclr.show
gbaryaxis.cl_gclr.hide
END
LIST gbaryaxis_cl_mtlclr_sel
BEGIN
gbaryaxis.cl_mtlclr.hide
gbaryaxis.cl_mtlclr.show
gbaryaxis.cl_mtlclr.hide
END
LIST gbaryaxis_cl_mgclr_sel
BEGIN
gbaryaxis.cl_mgclr.hide
gbaryaxis.cl_mgclr.show
gbaryaxis.cl_mgclr.hide
END
LIST gbaryaxis_cl_llclr_sel
BEGIN
gbaryaxis.cl_llclr.hide
gbaryaxis.cl_llclr.show
gbaryaxis.cl_llclr.hide
END
LIST gbaryaxis_cb_tick
BEGIN
""
"noticks"
"ticks"
END
LIST gbaryaxis_cb_label
BEGIN
""
"nolabels"
"labels"
END
LIST gbaryaxis_cb_gall
BEGIN
""
"gmax gmin"
"nogmax nogmin"
END
LIST gbaryaxis_cb_gextend
BEGIN
""
"gextend"
"nogextend"
END
LIST gbaryaxis_cb_extend
BEGIN
""
"extend"
"noextend"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -