Hello there,

With the code I shared below, I want the participant to enter a 3-digit value in a text box. When the user clicks with the mouse to enter a value, the cursor I marked with the yellow arrow in the text box flashes/blinking. How can I remove this blinking cursor from being displayed?

Thank you for your help.

Blinking cursor figure


Code
BMAP* pointer_tga = "pointer.tga";
STRING* name_str = "Write Here!";


function input_name(); 

TEXT* name_txt = 
{
       pos_x = 320;
       pos_y = 70;
       layer = 11;
       font = "Calibri#52";   
       string(name_str);
       flags = SHOW;
}

PANEL* input_pan = 
{
       bmap = "textbox.png";
       pos_x = 280;
       pos_y = 40;
       layer = 10;
       on_click = input_name;
       flags = SHOW ;
}

function input_name()
{
       while (mouse_left) {wait (1);} 
       var filehandle;
       
    
       str_cpy(name_str, "   "); 
       inkey(name_str); 
       
       while(key_enter)
       {
       	wait(1);
       	filehandle = file_open_write("save_log.txt"); 
	       file_str_write(filehandle, name_str); 
	       file_close(filehandle);
       }
	       
	       
	    
}

BMAP* pointer_tga = "fareORJ.tga";
function mouse_startup()
{  
	mouse_mode = 2;
	mouse_map = pointer_tga;
	while (1)
	{  
		vec_set(mouse_pos, mouse_cursor);
		wait(1);
	}
}



Last edited by gamers; 08/23/21 06:12.