Sorry...but why?
Code: Select all
Compiling...
form1.ec
form1.ec:53:10: error: unresolved identifier txtWebContent
form1.ec:53:10: error: member operator on non-structure type expression txtWebContent.Clear
form1.ec:58:10: error: unresolved identifier txtWeb
form1.ec:58:10: error: member operator on non-structure type expression txtWeb.Clear
Code: Select all
import "ecere"
class Form1 : Window
{
caption = "Read Net File";
background = formColor;
borderStyle = fixed;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
size = { 528, 372 };
anchor = { horz = -28, vert = -24 };
Label label1 { this, caption = "Which Website:", size = { 84, 21 }, position = { 16, 24 } };
EditBox txtWebContent
{
this, caption = "editBox1", anchor = { left = 8, top = 56, right = 10, bottom = 13 }, hasHorzScroll = true, true, readOnly = true, true;
};
EditBox txtWeb
{
this, size = { 410, 21 }, anchor = { left = 94, top = 24, right = 18 }, contents = "http://www.yahoo.com.cn";
bool OnKeyDown(Key key, unichar ch)
{
txtWebContent.Clear();//----------->>>!!
txtWeb.Clear(); //----------->>>!!
return EditBox::OnKeyDown(key, ch);
}
}
}