1 namespace gui::dialogs;
5 public class WindowList : Window
8 minClientSize = { 300, 300 };
11 borderStyle = sizable;
13 background = activeBorder;
18 master.ListChildren(listBox);
24 this, isDefault = true, text = "OK", anchor = { horz = -45, bottom = 10 }, size = { 80 };
26 bool NotifyClicked(Button button, int x, int y, Modifiers mods)
28 Destroy(listBox.GetTag());
35 this, text = "Cancel", anchor = { horz = 45, bottom = 10 }, size = { 80 }, hotKey = escape;
36 NotifyClicked = ButtonCloseDialog;
41 this, borderStyle = deep, text = "Select a Window to Activate...", anchor = { left = 10, right = 10, top = 30, bottom = 40 }, hotKey = altW;
43 bool NotifyDoubleClick(ListBox listBox, int x, int y, Modifiers mods)
45 return ok.NotifyClicked(this, ok, x, y, mods);
51 this, position = { 10, 10 }, labeledWindow = listBox;