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
|
|
#include "mod_customizebutton.hsp"
randomize
buffer 3 : picload dirinfo( 1 ) + "\\sample\\demo\\logop.bmp" buffer 4 : picload dirinfo( 1 ) + "\\sample\\demo\\onibtn.gif" buffer 5 : picload dirinfo( 1 ) + "\\sample\\demo\\sky_bg.jpg" buffer 2, 640, 480, 0
pos 0, 0 : gzoom 128, 48, 3, 0, 0, 360, 148, 0
pos 160, 0 : gzoom 128, 48, 4, 0, 0, 136, 50, 0
pos 320, 0 : gzoom 128, 48, 5, 0, 0, 640, 480, 0
pos 480, 0 : gzoom 128, 128, 5, 0, 0, 640, 480, 0
screen 0, 640, 480, 0
redraw 0
color 127, 127, 127 : boxf
repeat 120
c = rnd( 7 ) : color (c / 4) \ 2 * 255, (c / 2) \ 2 * 255, (c) \ 2 * 255
pos rnd( 600 ), rnd( 460 ) : mes "test"
loop
redraw 1
color 255, 255, 255
pos 0, 0 : mes "基本表示スタイル"
objsize 128, 48
pos 0, 20 : button "標準", *pushed
pos 160, 20 : button "外枠なし", *pushed
_bc_frame stat, 0, 1
pos 320, 20 : button "フォーカス枠なし", *pushed
_bc_frame stat, 1, 0
pos 0, 80 : mes "色変更"
pos 0, 100 : button "表面色変更", *pushed
_bc_color stat, 0xFF0000
pos 160, 100 : button "文字色変更", *pushed
_bc_color stat, , 0x0000FF
pos 320, 100 : button "下地を透過", *pushed
_bc_color stat, -1
pos 480, 100 : button "文字表示無し", *pushed
_bc_color stat, , -1
pos 0, 160 : mes "表面に画像を使用"
pos 0, 180 : button "表面に画像を使用", *pushed
_bc_image stat, 2, 0, 0
pos 160, 180 : button "表面に画像を使用", *pushed
_bc_image stat, 2, 160, 0
pos 320, 180 : button "表面に画像を使用", *pushed
_bc_image stat, 2, 320, 0
pos 0, 240 : mes "形を変更"
pos 0, 260 : button "楕円", *pushed
_bc_shape stat, -1
pos 160, 260 : button "三角", *pushed
_bc_shape stat, -4
pos 320, 260 : button "星", *pushed
_bc_shape stat, -8
pos 0, 320 : mes "以上の組み合わせ"
pos 0, 340 : button "組み合わせ", *pushed
_bc_color stat, -1, 0xFF0000
_bc_shape stat, -7
pos 160, 340 : button "組み合わせ", *pushed
_bc_frame stat, 0, 0
_bc_color stat, 0xFFFF00, 0x00FF00
_bc_shape stat, -8
objsize 128, 128
pos 320, 340 : button "組み合わせ", *pushed
_bc_color stat, , 0x00FFFF
_bc_image stat, 2, 480, 0
_bc_shape stat, -1
stop
*pushed
p ++
title strf( "押した回数 %6d", p ) + strf( " (ID%5d)", stat )
stop
|