1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
-
|
|
|
|
|
!
|
#include "sousyoku_moji1.0.hsp"
#module "_trackbar_"
#enum ID_FONTS=0
#enum ID_POSX
#enum ID_POSY
#enum ID_H_BLD
#enum ID_H_MARU
#enum ID_H_R
#enum ID_H_G
#enum ID_H_B
#enum ID_KAGEX
#enum ID_KAGEY
#enum ID_K_BLD
#enum ID_K_MARU
#enum ID_K_R
#enum ID_K_G
#enum ID_K_B
#enum ID_W_BLD
#enum ID_W_MARU
#enum ID_W_R
#enum ID_W_G
#enum ID_W_B
#deffunc trackbar int p1,int p2,int p3,int p4,int p5,int p6
winobj "msctls_trackbar32", "", , $50000000 | $1,p1,p2
hTrackbar(p6) = objinfo (stat, 2)
track_date(p6)=p5
sendmsg hTrackbar(p6), $407, 1,p3
sendmsg hTrackbar(p6), $408, 1,p4
sendmsg hTrackbar(p6), $405, 1,p5
sendmsg hTrackbar(p6), $414, 10
return
*vscroll
foreach hTrackbar
if lparam = hTrackbar(cnt) {
sendmsg hTrackbar(cnt), $400
title ""+cnt+"_"+stat
track_date(cnt)=stat
gosub *draw
break
}
loop
return
*draw
gsel 1
color 255,255,255 :boxf
font "",track_date(ID_FONTS)
color track_date(ID_H_R),track_date(ID_H_G),track_date(ID_H_B)
hukuro track_date(ID_W_R),track_date(ID_W_G),track_date(ID_W_B),track_date(ID_W_BLD),track_date(ID_W_MARU)
kage track_date(ID_K_R),track_date(ID_K_G),track_date(ID_K_B),track_date(ID_KAGEX),track_date(ID_KAGEY),track_date(ID_K_BLD),track_date(ID_K_MARU)
pos track_date(ID_POSX),track_date(ID_POSY)
sousyoku_moji "Áõ¾þʸ»úɽ¼¨¥â¥¸¥å¡¼¥ë¥Æ¥¹¥È",track_date(ID_H_BLD),track_date(ID_H_MARU)
gsel 0
pos 10,10
gcopy 1,0,0,620,200
return
#global
#enum ID_FONTS = 0
#enum ID_POSX
#enum ID_POSY
#enum ID_H_BLD
#enum ID_H_MARU
#enum ID_H_R
#enum ID_H_G
#enum ID_H_B
#enum ID_KAGEX
#enum ID_KAGEY
#enum ID_K_BLD
#enum ID_K_MARU
#enum ID_K_R
#enum ID_K_G
#enum ID_K_B
#enum ID_W_BLD
#enum ID_W_MARU
#enum ID_W_R
#enum ID_W_G
#enum ID_W_B
oncmd gosub *vscroll@_trackbar_, $114
buffer 1,640,200
gsel 0 :syscolor 30 :boxf
color :boxf 9,9,630,210
font "",15
pos 5,220
color 255,255,255
hukuro 0,0,0,3,0
kage 128,128,128,5,4
sousyoku_moji "ʸ»ú¤ÎÂ礤µ"
trackbar 140*2+20,28,1,100,45,ID_FONTS
sousyoku_moji "ɽ¼¨°ÌÃÖX"
trackbar 140,28,0,640,0,ID_POSX
sousyoku_moji "ɽ¼¨°ÌÃÖY"
trackbar 140,28,0,150,50,ID_POSY
sousyoku_moji "ËÜÂΤÎÂÀ¤µ"
trackbar 140,28,0,20,0,ID_H_BLD
sousyoku_moji "ËÜÂΤδݤß"
trackbar 140,28,0,1,0,ID_H_MARU
pos 165,271
sousyoku_moji "±¢¤Î°ÌÃÖX"
trackbar 140,25,-50,100,12,ID_KAGEX
sousyoku_moji "±¢¤Î°ÌÃÖY"
trackbar 140,25,-50,100,10,ID_KAGEY
sousyoku_moji "±¢¤ÎÂÀ¤µ"
trackbar 140,25,0,20,2,ID_K_BLD
sousyoku_moji "±¢¤Î´Ý¤ß"
trackbar 140,25,0,1,1,ID_K_MARU
pos 325,220
sousyoku_moji "ËÜÂΤο§R"
trackbar 96,25,0,255,255,ID_H_R
pos 421,220
sousyoku_moji "ËÜÂΤο§G"
trackbar 96,25,0,255,255,ID_H_G
pos 517,220
sousyoku_moji "ËÜÂΤο§B"
trackbar 96,25,0,255,0,ID_H_B
pos 325,270
sousyoku_moji "±¢¤Î¿§R"
trackbar 96,25,0,255,128,ID_K_R
pos 421,270
sousyoku_moji "±¢¤Î¿§G"
trackbar 96,25,0,255,128,ID_K_G
pos 517,270
sousyoku_moji "±¢¤Î¿§B"
trackbar 96,25,0,255,128,ID_K_B
pos 325,320
sousyoku_moji "ÏȤο§R"
trackbar 96,25,0,255,100,ID_W_R
pos 421,320
sousyoku_moji "ÏȤο§G"
trackbar 96,25,0,255,100,ID_W_G
pos 517,320
sousyoku_moji "ÏȤο§B"
trackbar 96,25,0,255,255,ID_W_B
pos 325,371
sousyoku_moji "ÏȤÎÂÀ¤µ"
trackbar 140,25,0,20,5,ID_W_BLD
sousyoku_moji "ÏȤδݤß"
trackbar 140,25,0,1,0,ID_W_MARU
pos 500,400
objsize 100,25
button "BMP¤ÇÊݸ",*save_bmp
gosub *draw@_trackbar_
stop
*save_bmp
dialog "bmp",17
if stat=-1 :stop
gsel 1
bmpsave ""+refstr
gsel 0
stop
|