Btw,I found WindlowList in the ecere/gui/dialogs/ directory,but have no clue how to use it.Could you please explain as well.Thanks.
form2.ec:
Code: Select all
import "ecere"
class Form2 : Window
{
text = "Form2";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
size = { 576, 432 };
}
Code: Select all
import "ecere"
import "form2"
class Form1 : Window
{
text = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
menu = { };
size = { 448, 136 };
anchor = { horz = -64, vert = -148 };
nativeDecorations = true;
bool OnCreate(void)
{
return true;
}
Button button1
{
this, text = "button1", size = { 90, 29 }, position = { 208, 40 };
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
if(MessageBox{type=yesNo}.Modal()==yes)
MessageBox{contents="Yes is clicked."}.Modal();
else
MessageBox{contents="No is clicked"}.Modal();
WindowList{}.Modal();
return true;
}
};
}
Form1 form1;
Form2 form2Arry[5];
class App:GuiApplication
{
bool Init()
{
int i;
form1=Form1{};
//form1.Create();
for(i=0;i<5;i++)
{
form2Arry[i]=Form2{};
//form2Arry[i].Create();
form2Arry[i].master=form1;
}
return true;
}
}