now how to make box to write email and letter
i want help withe program
MasterOfKings- MGC Master
- Posts : 67
Reputation : 0
Join date : 2010-04-01
- Post n°27
Re: i want help withe program
- Code:
//Create event...
typing=-1;
email="";
message="";
- Code:
//Global left mouse button...
if (mouse_x==median(100,mouse_x,300)) { //100 and 300 are the x limits of both the email and message
if (mouse_y==median(100,mouse_x,122)) { //100 and 122 are the y limits of email
typing=0;
keyboard_string=email;
}
else if (mouse_y==median(130,mouse_y,180)) { //130 and 180 are the y limits of message
typing=1;
keyboard_string=message;
}
else {
typing=-1;
}
}
- Code:
//Step event...
if (typing==0) {
email=keyboard_string; //you can limit this, but I didn't include it
}
else if (typing==1) {
message=keyboard_string;
}
- Code:
//Draw event...
draw_set_color(c_white);
draw_rectangle(100,100,300,122,false);
draw_rectangle(100,130,300,180,fasle);
draw_set_color(c_black);
draw_text(100,100,email);
draw_text(100,130,message);
I hope that helps.
-MoK
kasm- Member
- Posts : 17
Reputation : 0
Join date : 2011-01-28
- Post n°28
Re: i want help withe program
i did that they give me error :
___________________________________________
ERROR in
action number 1
of Draw Event
for object object1:
Error in code at line 3:
draw_rectangle(100,130,300,180,fasle);
^
at position 33: Unknown variable fasle
___________________________________________
ERROR in
action number 1
of Draw Event
for object object1:
Error in code at line 3:
draw_rectangle(100,130,300,180,fasle);
^
at position 33: Unknown variable fasle
MasterOfKings- MGC Master
- Posts : 67
Reputation : 0
Join date : 2010-04-01
- Post n°29
Re: i want help withe program
I spelled the word 'false' incorrectly. Surely you would of seen that?
-MoK
-MoK
kasm- Member
- Posts : 17
Reputation : 0
Join date : 2011-01-28
- Post n°30
Re: i want help withe program
ok it work but i see two withe box and i cant click on it ?
kasm- Member
- Posts : 17
Reputation : 0
Join date : 2011-01-28
- Post n°31
Re: i want help withe program
؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
MasterOfKings- MGC Master
- Posts : 67
Reputation : 0
Join date : 2010-04-01
- Post n°32
Re: i want help withe program
You can click in them. Just click on one and start typing. It's just there's no visible "icon" that shows your typing there.
-MoK
-MoK