import "ecere" define app = (GuiApplication)__thisModule.application; class MyThread : Thread { unsigned int Main() { app.Lock(); Form2 { }.Create(); app.Unlock(); return 0; } } MyThread thread { }; class Form1 : Window { caption = $"Form1"; background = formColor; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; clientSize = { 632, 438 }; Button button1 { this, caption = $"button1", position = { 72, 72 }; bool NotifyClicked(Button button, int x, int y, Modifiers mods) { thread.Create(); return true; } }; } class Form2 : Window { caption = $"DropBox Form"; background = formColor; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; clientSize = { 632, 438 }; Form2() { dropBox.AddString("String 1"); dropBox.AddString("String 2"); dropBox.AddString("String 3"); return true; } DropBox dropBox { this, position = { 72, 72 }; }; } Form1 form1 {};