/*
  _std_glm.idlg

*!  VERSION 1.1.0  14jun2006

  This file defines standard dialog lengths and their meaning.

	   x

	   |
	y -+--------------------------+---
	   |                          | ^
	   |                          | |
	   |                          | |
	   |                          | |
	   |                          | ht
	   |                          | |
	   |                          | |
	   |                          | |
	   |                          | v
	   +--------------------------+---

	   |<--------- wd ----------->|

  Shorthand:

	x	- horizontal position
	y	- vertical position
	lft	- left
	wd	- width
	ht	- height
	vn	- variable name
	vl	- variable list

*/

					/* should be replaced by:
  					   _small, _medium, _large, etc. ... */
INCLUDE _glm



/*  IMPORTANT   ************************************************************** 

    _std_vsmall should only be used without all 6 resource buttons 

*****************************************************************************/



/* DEFINE only **************************************************************/

					/* left margin */
DEFINE _lft 10
					/* top margin */
DEFINE _top 10

/* standard vertical [s]kips: [v]ery [s]mall, [s]mall, [m]edium, [l]arge, ... */
DEFINE _vss +15
DEFINE _ss  +20
DEFINE _ms  +25
DEFINE _mls +28
DEFINE _ls  +30
DEFINE _xls +40
DEFINE _xxls +50
DEFINE _xxxls +60
DEFINE _xxxxls +70
DEFINE _xxxxxls +80
DEFINE _xxxxxxls +90

					/* column sep */
DEFINE _csep +20
					/* half column sep */
DEFINE _hcsep +10
					/* short seps */
DEFINE _hssep +3
DEFINE _ssep +5
DEFINE _bssep +7


/* EQUATION and DEFINE ******************************************************/

				/* 1.5 of _top */
DEFINE _topph 15
				/* left margin inside maximal box */
DEFINE _ilft 20
				/* left margin inside nested maximal box */
DEFINE _iilft 30
				/* horizontal indent */
DEFINE _indent +10
				/* horizontal double indent */
DEFINE _indent2 +20
				/* horizontal quadruple indent */
DEFINE _indent4 +40
				/* negative horizontal indent */
DEFINE _nindent -10
				/* negative horizontal double indent */
DEFINE _nindent2 -20
				/* negative horizontal quad indent */
DEFINE _nindent4 -40
				/* relative inside width */
DEFINE _inwd -20
				/* inside width of dialog */
DEFINE _iwd 570
				/* inside width of maximal box */
DEFINE _ibwd 550
				/* inside width of nested maximal box */
DEFINE _iibwd 530
		// (l)ength of control used (w)ith some other
		// control of a specified length 	
DEFINE _lw10 555
DEFINE _lw15 550
DEFINE _lw20 545
DEFINE _lw25 540
DEFINE _lw30 535
DEFINE _lw35 530
DEFINE _lw40 525
DEFINE _lw45 520
DEFINE _lw50 515
DEFINE _lw55 510
DEFINE _lw60 505
DEFINE _lw65 500
DEFINE _lw70 495
DEFINE _lw75 490
DEFINE _lw80 485
DEFINE _lw85 480
DEFINE _lw90 475
DEFINE _lw95 470
DEFINE _lw100 465
DEFINE _lw105 460
DEFINE _lw110 455
DEFINE _lw115 450
DEFINE _lw120 445
DEFINE _lw125 440
DEFINE _lw130 435
DEFINE _lw135 430
DEFINE _lw140 425
DEFINE _lw145 420
DEFINE _lw150 415
DEFINE _lw155 410
DEFINE _lw160 405
		// (s)ep after _lw*
		// To be used with control widths above
DEFINE _slw10 +560
DEFINE _slw15 +555
DEFINE _slw20 +550
DEFINE _slw25 +545
DEFINE _slw30 +540
DEFINE _slw35 +535
DEFINE _slw40 +530
DEFINE _slw45 +525
DEFINE _slw50 +520
DEFINE _slw55 +515
DEFINE _slw60 +510
DEFINE _slw65 +505
DEFINE _slw70 +500
DEFINE _slw75 +495
DEFINE _slw80 +490
DEFINE _slw85 +485
DEFINE _slw90 +480
DEFINE _slw95 +475
DEFINE _slw100 +470
DEFINE _slw105 +465
DEFINE _slw110 +460
DEFINE _slw115 +455
DEFINE _slw120 +450
DEFINE _slw125 +445
DEFINE _slw130 +440
DEFINE _slw135 +435
DEFINE _slw140 +430
DEFINE _slw145 +425
DEFINE _slw150 +420
DEFINE _slw155 +415
DEFINE _slw160 +410

		// (l)ength of control used (w)ith some other
		// control of a specified length inside a maximal box 
DEFINE _ilw10 535
DEFINE _ilw15 530
DEFINE _ilw20 525
DEFINE _ilw25 520
DEFINE _ilw30 515
DEFINE _ilw35 510
DEFINE _ilw40 505
DEFINE _ilw45 500
DEFINE _ilw50 495
DEFINE _ilw55 490
DEFINE _ilw60 485
DEFINE _ilw65 480
DEFINE _ilw70 475
DEFINE _ilw75 470
DEFINE _ilw80 465
DEFINE _ilw85 460
DEFINE _ilw90 455
DEFINE _ilw95 450
DEFINE _ilw100 445
DEFINE _ilw105 440
DEFINE _ilw110 435
DEFINE _ilw115 430
DEFINE _ilw120 425
DEFINE _ilw125 420
DEFINE _ilw130 415
DEFINE _ilw135 410
DEFINE _ilw140 405
DEFINE _ilw145 400
DEFINE _ilw150 395
DEFINE _ilw155 390
DEFINE _ilw160 385
		// (s)ep after _ilw*
		// To be used with control widths above
DEFINE _islw10 +540
DEFINE _islw15 +535
DEFINE _islw20 +530
DEFINE _islw25 +525
DEFINE _islw30 +520
DEFINE _islw35 +515
DEFINE _islw40 +510
DEFINE _islw45 +505
DEFINE _islw50 +500
DEFINE _islw55 +495
DEFINE _islw60 +490
DEFINE _islw65 +485
DEFINE _islw70 +480
DEFINE _islw75 +475
DEFINE _islw80 +470
DEFINE _islw85 +465
DEFINE _islw90 +460
DEFINE _islw95 +455
DEFINE _islw100 +450
DEFINE _islw105 +445
DEFINE _islw110 +440
DEFINE _islw115 +435
DEFINE _islw120 +430
DEFINE _islw125 +425
DEFINE _islw130 +420
DEFINE _islw135 +415
DEFINE _islw140 +410
DEFINE _islw145 +405
DEFINE _islw150 +400
DEFINE _islw155 +395
DEFINE _islw160 +390

		// (l)ength of control used (w)ith some other
		// control of a specified length inside 2 maximal boxes
DEFINE _iilw10 515
DEFINE _iilw15 510
DEFINE _iilw20 505
DEFINE _iilw25 500
DEFINE _iilw30 495
DEFINE _iilw35 490
DEFINE _iilw40 485
DEFINE _iilw45 480
DEFINE _iilw50 475
DEFINE _iilw55 470
DEFINE _iilw60 465
DEFINE _iilw65 460
DEFINE _iilw70 455
DEFINE _iilw75 450
DEFINE _iilw80 445
DEFINE _iilw85 440
DEFINE _iilw90 435
DEFINE _iilw95 430
DEFINE _iilw100 425
DEFINE _iilw105 420
DEFINE _iilw110 415
DEFINE _iilw115 410
DEFINE _iilw120 405
DEFINE _iilw125 400
DEFINE _iilw130 395
DEFINE _iilw135 390
DEFINE _iilw140 385
DEFINE _iilw145 380
DEFINE _iilw150 375
DEFINE _iilw155 370
DEFINE _iilw160 365
		// (s)ep after _iilw*
		// To be used with control widths above
DEFINE _iislw10 +520
DEFINE _iislw15 +515
DEFINE _iislw20 +510
DEFINE _iislw25 +505
DEFINE _iislw30 +500
DEFINE _iislw35 +495
DEFINE _iislw40 +490
DEFINE _iislw45 +485
DEFINE _iislw50 +480
DEFINE _iislw55 +475
DEFINE _iislw60 +470
DEFINE _iislw65 +465
DEFINE _iislw70 +460
DEFINE _iislw75 +455
DEFINE _iislw80 +450
DEFINE _iislw85 +445
DEFINE _iislw90 +440
DEFINE _iislw95 +435
DEFINE _iislw100 +430
DEFINE _iislw105 +425
DEFINE _iislw110 +420
DEFINE _iislw115 +415
DEFINE _iislw120 +410
DEFINE _iislw125 +405
DEFINE _iislw130 +400
DEFINE _iislw135 +395
DEFINE _iislw140 +390
DEFINE _iislw145 +385
DEFINE _iislw150 +380
DEFINE _iislw155 +375
DEFINE _iislw160 +370

				/* right justification offsets */
DEFINE _rj10 570
DEFINE _rj20 560
DEFINE _rj30 550
DEFINE _rj40 540
DEFINE _rj50 530
DEFINE _rj60 520
DEFINE _rj70 510
DEFINE _rj80 500
DEFINE _rj90 490
DEFINE _rj100 480
DEFINE _rj110 470
DEFINE _rj120 460
DEFINE _rj130 450
DEFINE _rj140 440
DEFINE _rj150 430
DEFINE _rj160 420
DEFINE _rj170 410
DEFINE _rj180 400
DEFINE _rj190 390
DEFINE _rj200 380
DEFINE _rj210 370
DEFINE _rj220 360
DEFINE _rj230 350
DEFINE _rj240 340
DEFINE _rj250 330
DEFINE _rj260 320
DEFINE _rj270 310
DEFINE _rj280 300
DEFINE _rj290 290
DEFINE _rj300 280
					/* inside box right justification offsets */
DEFINE _irj10 560
DEFINE _irj20 550
DEFINE _irj30 540
DEFINE _irj40 530
DEFINE _irj50 520
DEFINE _irj60 510
DEFINE _irj70 500
DEFINE _irj80 490
DEFINE _irj90 480
DEFINE _irj100 470
DEFINE _irj110 460
DEFINE _irj120 450
DEFINE _irj130 440
DEFINE _irj140 430
DEFINE _irj150 420
DEFINE _irj160 410
DEFINE _irj170 400
DEFINE _irj180 390
DEFINE _irj190 380
DEFINE _irj200 370
DEFINE _irj210 360
DEFINE _irj220 350
DEFINE _irj230 340
DEFINE _irj240 330
DEFINE _irj250 320
DEFINE _irj260 310
DEFINE _irj270 300
DEFINE _irj280 290
DEFINE _irj290 280
DEFINE _irj300 270

/* x pos to place a second 50-50 column */
DEFINE _lft2 305
DEFINE _ilft2 315
DEFINE _iilft2 325

					/* inside widths of 50-50 columns */
DEFINE _cwd0 295
DEFINE _cwd1 275
DEFINE _cwd2 265
DEFINE _cwd3 255
DEFINE _cwd4 245
DEFINE _cwd5 235
DEFINE _cwd6 225

/* width and column positions for drawing lines for tables with 3 columns */
DEFINE _cwd3_0 190
/* x pos to place the second of 3 equal columns */
DEFINE _lft3_02 200
/* x pos to place the third of 3 equal columns */
DEFINE _lft3_03 390
/* widths of each column */
DEFINE _cwd3_01 191
DEFINE _cwd3_02 191
DEFINE _cwd3_03 190

/* x pos to place the second of 3 equal columns */
DEFINE _lft3_2 206
/* x pos to place the third of 3 equal columns */
DEFINE _lft3_3 403

/* x pos to place the second of 3 equal columns inside maximal box */
DEFINE _ilft3_2 210
/* x pos to place the third of 3 equal columns inside maximal box */
DEFINE _ilft3_3 400

/* x pos to place the second of 3 equal columns inside contained maximal box */
DEFINE _iilft3_2 213
/* x pos to place the third of 3 equal columns inside contained maximal box */
DEFINE _iilft3_3 396

					/* inside widths of 3 equal columns */
DEFINE _cwd3_1 176
DEFINE _cwd3_2 170
DEFINE _cwd3_3 163
DEFINE _cwd3_4 156
DEFINE _cwd3_5 150
DEFINE _cwd3_6 143

					/* inside width of 2 combined columns */
DEFINE _comb3_1 372
DEFINE _comb3_2 360
DEFINE _comb3_3 352
DEFINE _comb3_4 340

/* width and column positions for drawing lines for tables with 4 columns */
DEFINE _cwd4_0 142
/* x pos to place the second of 4 equal columns */
DEFINE _lft4_02 152
/* x pos to place the third of 4 equal columns */
DEFINE _lft4_03 294
/* x pos to place the fourth of 4 equal columns */
DEFINE _lft4_04 436
/* widths of each column */
DEFINE _cwd4_01 143
DEFINE _cwd4_02 143
DEFINE _cwd4_03 143
DEFINE _cwd4_03 142

/* x pos to place the second of 4 equal columns */
DEFINE _lft4_2 157
/* x pos to place the third of 4 equal columns */
DEFINE _lft4_3 305
/* x pos to place the fourth of 4 equal columns */
DEFINE _lft4_4 452

/* x pos to place the second of 4 equal columns inside maximal box */
DEFINE _ilft4_2 162
/* x pos to place the third of 4 equal columns inside maximal box */
DEFINE _ilft4_3 305
/* x pos to place the fourth of 4 equal columns inside maximal box */
DEFINE _ilft4_4 447

/* x pos to place the second of 4 equal columns inside contained maximal box */
DEFINE _iilft4_2 167
/* x pos to place the third of 4 equal columns inside contained maximal box */
DEFINE _iilft4_3 305
/* x pos to place the fourth of 4 equal columns inside contained maximal box */
DEFINE _iilft4_4 442

					/* inside widths of 4 equal columns */
DEFINE _cwd4_1 127
DEFINE _cwd4_2 122
DEFINE _cwd4_3 117
DEFINE _cwd4_4 112
DEFINE _cwd4_5 107
DEFINE _cwd4_6 102

				/* inside width of 2 combined columns */
DEFINE _comb4_1 421
DEFINE _comb4_2 406
DEFINE _comb4_3 401
DEFINE _comb4_4 386

/* x pos to place the second of 5 equal columns inside maximal box */
DEFINE _ilft5_2 134
/* x pos to place the third of 5 equal columns inside maximal box */
DEFINE _ilft5_3 248
/* x pos to place the fourth of 5 equal columns inside maximal box */
DEFINE _ilft5_4 362
/* x pos to place the fifth of 5 equal columns inside maximal box */
DEFINE _ilft5_5 476

					/* inside widths of 5 equal columns */
DEFINE _cwd5_1 98
DEFINE _cwd5_2 94
DEFINE _cwd5_3 90
DEFINE _cwd5_4 86
DEFINE _cwd5_5 82
DEFINE _cwd5_6 78

					/* predefined box heights */
DEFINE _ht0 20
DEFINE _ht1 40
DEFINE _ht2 50
DEFINE _ht3 60
DEFINE _ht4 70
DEFINE _ht5 80
DEFINE _ht6 90
DEFINE _ht7 100
DEFINE _ht8 110
DEFINE _ht9 120
DEFINE _ht10 130
DEFINE _ht11 140
DEFINE _ht12 150
DEFINE _ht13 160
DEFINE _ht14 170
DEFINE _ht15 180
DEFINE _ht16 190
DEFINE _ht17 200
DEFINE _ht18 210
DEFINE _ht19 220
DEFINE _ht20 230
DEFINE _ht21 240
DEFINE _ht22 250
DEFINE _ht23 260
DEFINE _ht24 270
DEFINE _ht25 280
DEFINE _ht26 290
DEFINE _ht27 300
DEFINE _ht28 310
DEFINE _ht29 320
DEFINE _ht30 330

					/* halfway between above box heights */
DEFINE _ht0h 25
DEFINE _ht1h 45
DEFINE _ht2h 55
DEFINE _ht3h 65
DEFINE _ht4h 75
DEFINE _ht5h 85
DEFINE _ht6h 95
DEFINE _ht7h 105
DEFINE _ht8h 115
DEFINE _ht9h 125
DEFINE _ht10h 135
DEFINE _ht11h 145
DEFINE _ht12h 155
DEFINE _ht13h 165
DEFINE _ht14h 175
DEFINE _ht15h 185
DEFINE _ht16h 195
DEFINE _ht17h 205
DEFINE _ht18h 215
DEFINE _ht19h 225
DEFINE _ht20h 235
DEFINE _ht21h 245
DEFINE _ht22h 255
DEFINE _ht23h 265
DEFINE _ht24h 275
DEFINE _ht25h 285
DEFINE _ht26h 295
DEFINE _ht27h 305
DEFINE _ht28h 315
DEFINE _ht29h 325
DEFINE _ht30h 335

					/* relative skips pared with _ht */
DEFINE _vs0 +30
DEFINE _vs1 +50
DEFINE _vs2 +60
DEFINE _vs3 +70
DEFINE _vs4 +80
DEFINE _vs5 +90
DEFINE _vs6 +100
DEFINE _vs7 +110
DEFINE _vs8 +120
DEFINE _vs9 +130
DEFINE _vs10 +140
DEFINE _vs11 +150
DEFINE _vs12 +160
DEFINE _vs13 +170
DEFINE _vs14 +180
DEFINE _vs15 +190
DEFINE _vs16 +200
DEFINE _vs16h +205
DEFINE _vs17 +210
DEFINE _vs18 +220
DEFINE _vs19 +230
DEFINE _vs20 +240
DEFINE _vs21 +250
DEFINE _vs22 +260
DEFINE _vs23 +270
DEFINE _vs24 +280
DEFINE _vs25 +290
DEFINE _vs26 +300
DEFINE _vs27 +310
DEFINE _vs28 +320
DEFINE _vs29 +330
DEFINE _vs30 +340

					/* heights for TEXTBOX control */
DEFINE	_tb1	15
DEFINE	_tb2	30
DEFINE	_tb3	45
DEFINE	_tb4	60
DEFINE	_tb5	75
DEFINE	_tb6	90
DEFINE	_tb7	105
DEFINE	_tb8	120
DEFINE	_tb9	135
DEFINE	_tb10	150
DEFINE	_tb11	165
DEFINE	_tb12	180
DEFINE	_tb13	195
DEFINE	_tb14	210
DEFINE	_tb15	225

/* control lengths *********************************************************/
					/* text height */
DEFINE _txht 20
					/* spinner width */
DEFINE _spwd 60
					/* short sep after spinner */
DEFINE _spsep +65
					/* short sep after check box+spinner */
DEFINE _ckwd 20
DEFINE _cksep +20
DEFINE _ckspsep +85
DEFINE _ckspwd 80
					/* short sep after radio box+spinner */
DEFINE _rbwd 20
DEFINE _rbsep +20
DEFINE _rbspsep +85
					/* button width */
DEFINE _buwd 80
				/* Width of an equals sign & separator */
DEFINE _eqlwd 5
DEFINE _eqlsep +10
					/* short sep after button */
DEFINE _busep +85
					/* edit box for <=7 digits */
DEFINE _en7wd 60
					/* short sep after _en7wd */
DEFINE _en7sep +65
					/* short sep after check box+en7 */
DEFINE _cken7sep +85
					/* short sep after radio box+en7 */
DEFINE _rben7sep +85

					/* edit box for <=14 digits */
DEFINE _en14wd 120
					/* short sep after _en14wd */
DEFINE _en14sep +125

					/* varname edit box width */
DEFINE _vnwd 120
					/* short sep after _vnwd */
DEFINE _vnsep +125
					/* varname, equals, and short sep */
DEFINE _vneqsep +135
					/* short sep after radio box+varname */
DEFINE _rbvnsep +145
					/* short sep after check box+varname */
DEFINE _ckvnsep +145
					/* varlist after varname x position */
DEFINE _vlx 150
					/* varlist by varname width */
DEFINE _vlwd 430
					/* varname after varlist x position */
DEFINE _vnx 460
			/* varlist by varname width within maximal box */
DEFINE _ivlwd 420
					/* short sep after _vlwd */
DEFINE _vlsep +435
					/* double sep after _vlwd */
DEFINE _vlcsep +450
					/* width of settings... button */
DEFINE _setbuwd 120
					/* x pos of settings... button */
DEFINE _xsetbu 460
					/* significance level text width */
DEFINE _levelwd 110
					/* sep after significance level text */
DEFINE _levelsep +115
					/* [by][if]in.idlg: -if- widths */
DEFINE _ifwd 15
					/* if's edit field width */
DEFINE _edifwd 445
					/* skip after if's edit field */
DEFINE _edifsep +450

					/* if's expression building width */
DEFINE _expifwd 530

/* rest of the width left after the specified control **********************/

					/* rest of width after spinner */
DEFINE _spr 505
DEFINE _sprb 485
DEFINE _spr2 210
DEFINE _spr2b 190
DEFINE _spr3 111
DEFINE _spr3b 91
DEFINE _spr3c 307
DEFINE _spr3cb 287
DEFINE _spr4 62
DEFINE _spr4c 356
DEFINE _spr4cb 336

				/* rest of width after check box+spinner */
DEFINE _ckspr 485
DEFINE _cksprb 465
DEFINE _ckspr2 190
DEFINE _ckspr2b 170
DEFINE _ckspr2bb 150
DEFINE _ckspr3c 287
DEFINE _ckspr3cb 267
DEFINE _ckspr4c 336
DEFINE _ckspr4cb 316

				/* rest of width after radio box+spinner */
DEFINE _rbspr 485
DEFINE _rbsprb 465
DEFINE _rbspr2 190
DEFINE _rbspr2b 170
DEFINE _rbspr2bb 160
DEFINE _rbspr3c 287
DEFINE _rbspr3cb 267
DEFINE _rbspr4c 336
DEFINE _rbspr4cb 316

				/* rest of width after 7 digit edit box */
DEFINE _en7r 505
DEFINE _en7rb 485
DEFINE _en7r2 210
DEFINE _en7r2b 190
DEFINE _en7r3 111
DEFINE _en7r3b 91
DEFINE _en7r3bb 71
DEFINE _en7r3c 307
DEFINE _en7r3cb 287
DEFINE _en7r4 62
DEFINE _en7r4c 356
DEFINE _en7r4cb 336

			/* rest of width after check box+7 digit edit box */
DEFINE _cken7r 485
DEFINE _cken7rb 465
DEFINE _cken7r2 190
DEFINE _cken7r2b 170
DEFINE _cken7r2bb 160
DEFINE _cken7r3c 287
DEFINE _cken7r3cb 267
DEFINE _cken7r4c 336
DEFINE _cken7r4cb 316

			/* rest of width after radio box+7 digit edit box */
DEFINE _rben7r 485
DEFINE _rben7rb 465
DEFINE _rben7r2 190
DEFINE _rben7r2b 170
DEFINE _rben7r2bb 160
DEFINE _rben7r3c 287
DEFINE _rben7r3cb 267
DEFINE _rben7r4c 336
DEFINE _rben7r4cb 316

			/* rest of width after radio box+varname box */
DEFINE _rbvnr 425
DEFINE _rbvnrb 405
DEFINE _rbvnrbb 385
DEFINE _rbvnr2 130
DEFINE _rbvnr2b 110
DEFINE _rbvnr2bb 100
DEFINE _rbvnr3c 227
DEFINE _rbvnr3cb 207
DEFINE _rbvnr4c 276
DEFINE _rbvnr4cb 256

			/* rest of width after check box+varname box */
DEFINE _ckvnr 425
DEFINE _ckvnrb 405
DEFINE _ckvnrbb 385
DEFINE _ckvnr2 130
DEFINE _ckvnr2b 110
DEFINE _ckvnr2bb 100
DEFINE _ckvnr3c 227
DEFINE _ckvnr3cb 207
DEFINE _ckvnr4c 276
DEFINE _ckvnr4cb 256

				/* rest of width after 14 digit edit box */
DEFINE _en14r 445
DEFINE _en14rb 425
DEFINE _en14r2 150
DEFINE _en14r2b 130
DEFINE _en14r3c 247
DEFINE _en14r3cb 227
DEFINE _en14r4c 296
DEFINE _en14r4cb 276

					/* rest of width after varname box */
DEFINE _vnr 445
DEFINE _vnrb 425
DEFINE _vnr2 150
DEFINE _vnr2b 130
DEFINE _vnr3c 247
DEFINE _vnr3cb 227
DEFINE _vnr4c 296
DEFINE _vnr4cb 276

					/* rest of width after varlist box */
DEFINE _vlr 135
DEFINE _vlrb 115

DEFINE _expwd 284
DEFINE _expsep +294
DEFINE _eqxpos +120
DEFINE _eqwd 76

/* END:  _std_glm.idlg */
