class Form1 : Window
{
- text = "Form1";
+ caption = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
Button button1
{
- this, text = "Play", position = { 200, 168 };
+ this, caption = "Play", position = { 200, 168 };
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
bool OnPostCreate()
{
- if(sound.Load("test.wav"))
+ if(sound.Load("sweep.wav"))
{
AudioSpec wantedSpec
{
return true;
}
else
- MessageBox { contents = "test.wav not found" }.Modal();
+ MessageBox { contents = "sweep.wav not found" }.Modal();
return false;
}