Here's a tutorial from one of the AUM's!
Code:
Textinput Panel
Q: How can I show the coursor on a Panel and let the user make a input?
A: You need a text and a panel like shown beneath.
bmap input_pcx = <input.pcx>;
string temp_str = " "; // 20 characters
function input_text();
panel input_pan
{
bmap = input_pcx;
pos_x = 0;
pos_y = 0;
layer = 10;
on_click = input_text;
flags = refresh, d3d, visible;
}
text my_txt
{
layer = 20;
pos_x = 30;
pos_y = 35;
font = standard_font;
string = temp_str;
}
text dummy_txt // displays the text that was input
{
layer = 20;
pos_x = 15;
pos_y = 450;
font = standard_font;
flags = visible;
}
function input_text()
{
if ((mouse_pos.x > 7) && (mouse_pos.x < 215) && (mouse_pos.y > 20) && (mouse_pos.y < 45))
{
my_txt.visible = on;
str_cpy (temp_str, "");
inkey temp_str;
my_txt.visible = off;
// got the text in temp_str here
dummy_txt.string = temp_str; // show the input text
// .................
}
}
It woks fine! I know it i have used it! So use it too!