Skip to content

Commit 2ff3cff

Browse files
committed
Initial Experiments
0 parents  commit 2ff3cff

17 files changed

+1885
-0
lines changed

.layout

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
{
2+
UniqueId:Form1
3+
Left:557
4+
Top:240
5+
Width:616
6+
Height:439
7+
Align:0
8+
Visible:1
9+
PageControlTag:0
10+
Maximize:1
11+
{
12+
DockType:Frame
13+
Left:0
14+
Top:0
15+
Width:1920
16+
Height:696
17+
Align:10
18+
Visible:1
19+
PageControlTag:0
20+
{
21+
DockType:Frame
22+
Left:227
23+
Top:0
24+
Width:1693
25+
Height:696
26+
Align:10
27+
Visible:1
28+
PageControlTag:0
29+
{
30+
DockType:TabControl
31+
Left:0
32+
Top:0
33+
Width:1693
34+
Height:264
35+
Align:10
36+
Visible:1
37+
PageControlTag:0
38+
{
39+
DockType:Tab
40+
Left:3
41+
Top:25
42+
Width:1687
43+
Height:236
44+
Align:0
45+
Visible:1
46+
PageControlTag:0
47+
{
48+
UniqueId:Doc1
49+
Left:0
50+
Top:0
51+
Width:1687
52+
Height:236
53+
Align:10
54+
Visible:1
55+
PageControlTag:0
56+
}
57+
}
58+
}
59+
{
60+
DockType:TabControl
61+
Left:0
62+
Top:269
63+
Width:1693
64+
Height:427
65+
Align:5
66+
Visible:1
67+
PageControlTag:0
68+
{
69+
DockType:Tab
70+
Left:3
71+
Top:25
72+
Width:1687
73+
Height:399
74+
Align:0
75+
Visible:1
76+
PageControlTag:0
77+
{
78+
UniqueId:Doc3
79+
Left:0
80+
Top:0
81+
Width:1687
82+
Height:399
83+
Align:10
84+
Visible:1
85+
PageControlTag:0
86+
}
87+
}
88+
}
89+
}
90+
{
91+
DockType:TabControl
92+
Left:0
93+
Top:0
94+
Width:222
95+
Height:696
96+
Align:1
97+
Visible:1
98+
PageControlTag:0
99+
{
100+
DockType:Tab
101+
Left:3
102+
Top:25
103+
Width:216
104+
Height:668
105+
Align:0
106+
Visible:1
107+
PageControlTag:0
108+
{
109+
UniqueId:Doc2
110+
Left:0
111+
Top:0
112+
Width:216
113+
Height:668
114+
Align:10
115+
Visible:1
116+
PageControlTag:0
117+
}
118+
}
119+
}
120+
}
121+
{
122+
DockType:PageControl
123+
Left:0
124+
Top:701
125+
Width:1920
126+
Height:296
127+
Align:5
128+
Visible:1
129+
PageControlTag:0
130+
{
131+
DockType:Page
132+
Left:0
133+
Top:19
134+
Width:1920
135+
Height:277
136+
Align:0
137+
Visible:1
138+
PageControlTag:0
139+
{
140+
UniqueId:Console
141+
Left:0
142+
Top:0
143+
Width:1920
144+
Height:277
145+
Align:10
146+
Visible:1
147+
PageControlTag:0
148+
}
149+
}
150+
}
151+
{
152+
DockType:Form
153+
Left:657
154+
Top:286
155+
Width:166
156+
Height:276
157+
Align:0
158+
Visible:0
159+
PageControlTag:0
160+
{
161+
UniqueId:Context
162+
Left:0
163+
Top:0
164+
Width:150
165+
Height:237
166+
Align:10
167+
Visible:1
168+
PageControlTag:0
169+
}
170+
}
171+
{
172+
DockType:Form
173+
Left:662
174+
Top:288
175+
Width:166
176+
Height:276
177+
Align:0
178+
Visible:0
179+
PageControlTag:0
180+
{
181+
UniqueId:Index
182+
Left:0
183+
Top:0
184+
Width:150
185+
Height:237
186+
Align:10
187+
Visible:1
188+
PageControlTag:0
189+
}
190+
}
191+
{
192+
DockType:Form
193+
Left:662
194+
Top:288
195+
Width:166
196+
Height:295
197+
Align:0
198+
Visible:0
199+
PageControlTag:0
200+
{
201+
UniqueId:Help
202+
Left:0
203+
Top:0
204+
Width:150
205+
Height:256
206+
Align:10
207+
Visible:1
208+
PageControlTag:0
209+
}
210+
}
211+
{
212+
DockType:Form
213+
Left:663
214+
Top:569
215+
Width:616
216+
Height:101
217+
Align:0
218+
Visible:0
219+
PageControlTag:0
220+
{
221+
UniqueId:Search
222+
Left:0
223+
Top:0
224+
Width:600
225+
Height:62
226+
Align:10
227+
Visible:1
228+
PageControlTag:0
229+
}
230+
}
231+
}

AcceptButton.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/D/App/PHP/PHP32.7.3.0-dev/php.exe
2+
<?php
3+
4+
$o = new COM("Scripting.WindowSystemObject");
5+
6+
$f = $o->CreateForm(0,0,0,0);
7+
8+
$f->ClientWidth = 200;
9+
$f->ClientHeight = 100;
10+
$f->CenterControl();
11+
12+
$button = $f->CreateButton(10,10,75,25,"Test");
13+
$button->Default = true;
14+
15+
$TTA = new class {
16+
function OnClick(){
17+
global $f;
18+
$f->MessageBox("Test");
19+
}
20+
};
21+
22+
// $sink = new TTA();
23+
24+
com_event_sink( $button, $TTA, "IControlEvents" );
25+
26+
// while($sink) {
27+
// com_message_pump(1000);
28+
// }
29+
30+
$f->CreateEdit(10,40,100,25)->SetFocus();
31+
32+
$f->TextOut( 10, 70, "Press Enter" );
33+
34+
$f->Show();
35+
36+
$o->Run();
37+
38+
?>

BalloonTip.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/D/App/PHP/PHP32.7.3.0-dev/php.exe
2+
<?php
3+
4+
$o = new COM("Scripting.WindowSystemObject");
5+
$o->EnableVisualStyles = true;
6+
7+
$f = $o->CreateForm(0,0,0,0);
8+
9+
$f->ClientWidth = 500;
10+
$f->ClientHeight = 200;
11+
$f->CenterControl();
12+
13+
$f->TextOut(10,10,"Note. Themes must be enabled");
14+
$Edit = $f->CreateEdit(10,30,480,25);
15+
16+
$f->Show();
17+
18+
$BalloonTip = $Edit->BalloonTip;
19+
$BalloonTip->Title = "Text";
20+
$BalloonTip->Text = "Enter text where";
21+
$BalloonTip->Icon = 4;
22+
$BalloonTip->Visible = true;
23+
24+
$Button = $f->CreateButton(10,120,75,25,"Close");
25+
26+
$SINK = new class{
27+
function onClick($sender){
28+
$sender->Form->Close();
29+
}
30+
};
31+
32+
com_event_sink($Button, $SINK, "IControlEvents" );
33+
34+
$o->Run();
35+
36+
?>

0 commit comments

Comments
 (0)