37
37
color = TkVariable.new
38
38
align = TkVariable.new
41
41
TkFrame.new(base_frame) {|frame|
42
TkGrid(TkFrame.new(frame, :height=>2, :relief=>:sunken, :bd=>2),
42
TkGrid(TkFrame.new(frame, :height=>2, :relief=>:sunken, :bd=>2),
43
43
:columnspan=>4, :row=>0, :sticky=>'ew', :pady=>2)
45
TkButton.new(frame, :text=>'�ѿ�����',
46
:image=>$image['view'], :compound=>:left,
45
TkButton.new(frame, :text=>'�ѿ�����',
46
:image=>$image['view'], :compound=>:left,
48
showVars(base_frame, ['size', size],
48
showVars(base_frame, ['size', size],
49
49
['color', color], ['compound', align])
51
TkButton.new(frame, :text=>'�����ɻ���',
52
:image=>$image['view'], :compound=>:left,
53
:command=>proc{showCode 'radio3'}),
54
TkButton.new(frame, :text=>'�Ĥ���',
55
:image=>$image['delete'], :compound=>:left,
51
TkButton.new(frame, :text=>'�����ɻ���',
52
:image=>$image['view'], :compound=>:left,
53
:command=>proc{showCode 'radio3'}),
54
TkButton.new(frame, :text=>'�Ĥ���',
55
:image=>$image['delete'], :compound=>:left,
57
57
tmppath = $radio3_demo
59
59
$showVarsWin[tmppath.path] = nil
62
62
:padx=>4, :pady=>4)
63
63
frame.grid_columnconfigure(0, :weight=>1)
64
64
TkGrid(frame, :row=>3, :column=>0, :columnspan=>3, :sticky=>'nsew')
68
f_left = TkLabelFrame.new(base_frame, 'text'=>'ʸ��������',
70
f_mid = TkLabelFrame.new(base_frame, 'text'=>'��',
72
f_right = TkLabelFrame.new(base_frame, 'text'=>'�ӥåȥޥå�����',
68
f_left = TkLabelFrame.new(base_frame, 'text'=>'ʸ��������',
70
f_mid = TkLabelFrame.new(base_frame, 'text'=>'��',
72
f_right = TkLabelFrame.new(base_frame, 'text'=>'�ӥåȥޥå�����',
73
73
'pady'=>2, 'padx'=>2)
74
74
f_left .grid('column'=>0, 'row'=>1, 'pady'=>'.5c', 'padx'=>'.5c', 'rowspan'=>2)
75
75
f_mid .grid('column'=>1, 'row'=>1, 'pady'=>'.5c', 'padx'=>'.5c', 'rowspan'=>2)
76
76
f_right.grid('column'=>2, 'row'=>1, 'pady'=>'.5c', 'padx'=>'.5c')
78
TkButton.new(base_frame, 'text'=>'�ȥ饤���ơ���',
78
TkButton.new(base_frame, 'text'=>'�ȥ饤���ơ���',
79
79
'command'=>proc{size.value = 'multi'; color.value = 'multi'}){
80
80
grid('column'=>2, 'row'=>2, 'pady'=>'.5c', 'padx'=>'.5c')
84
84
[10, 12, 14, 18, 24].each {|sz|
85
85
TkRadioButton.new(f_left) {
86
86
text "�ݥ���ȥ����� #{sz}"
103
103
}.pack('side'=>'top', 'pady'=>2, 'fill'=>'x')
106
# label = TkLabel.new(f_right, 'text'=>'��٥�', 'bitmap'=>'questhead',
107
label = Tk::Label.new(f_right, 'text'=>'��٥�', 'bitmap'=>'questhead',
106
# label = TkLabel.new(f_right, 'text'=>'��٥�', 'bitmap'=>'questhead',
107
label = Tk::Label.new(f_right, 'text'=>'��٥�', 'bitmap'=>'questhead',
108
108
'compound'=>'left')
109
109
label.configure('width'=>TkWinfo.reqwidth(label), 'compound'=>'top')
110
110
label.height(TkWinfo.reqheight(label))
111
111
a_btn = ['Top', 'Left', 'Right', 'Bottom'].collect{|a|
112
TkRadioButton.new(f_right, 'text'=>a, 'variable'=>align, 'relief'=>'flat',
113
'value'=>a.downcase, 'indicatoron'=>0, 'width'=>7,
112
TkRadioButton.new(f_right, 'text'=>a, 'variable'=>align, 'relief'=>'flat',
113
'value'=>a.downcase, 'indicatoron'=>0, 'width'=>7,
114
114
'command'=>proc{label.compound(align.value)})