brotherRML
Member
Hi to all.
to close my textbox on android device I want to set a virtual key managed by the dialog box object. code here:
the button should work but it doesn't. and to understand where it appeared I entered the show_virtual_key but it gives me an error : "illegal virtual key handle at line etc....etc..."
the dialog box is created in a different layer from that of the Instances
any suggestions?
to close my textbox on android device I want to set a virtual key managed by the dialog box object. code here:
GML:
avanza_chiudi = keyboard_check_pressed(vk_space);
ascissaBox = (camera_get_view_x(view_camera[0]));
ordinataBox = (camera_get_view_y(view_camera[0])+164);
if testo_dialogo == ""
{
testo_dialogo = "proprietario "+string(proprietario);
}
//show_debug_message("proprietario "+string(proprietario.id));
if avanza_chiudi//keyboard_check_pressed(vk_backspace)//aalora a funzionare funziona, il problema è che non ho una keyboard sul telefono
{
if (pag+1 < array_length_1d(testo_dialogo))
pag +=1; //quindi farò con l'event del tap da cellulare
else
instance_destroy();
}
avanza_chiudi = virtual_key_add(ascissaBox+448, ordinataBox, 32, 32, vk_space);
virtual_key_show(avanza_chiudi);
the button should work but it doesn't. and to understand where it appeared I entered the show_virtual_key but it gives me an error : "illegal virtual key handle at line etc....etc..."
the dialog box is created in a different layer from that of the Instances
any suggestions?