MiniGui x Botão "X"
Enviado: 27 Mai 2015 17:37
Boa tarde colegas.
No Aplicativo em MiniGui 3.3.0, tenho:
Segundo eu entendi as teclas ALT+F4 e ALT+F12 quando pressionadas desviam o processamento para a Função Sai_Sim_Nao()
O mesmo deveria acontecer ao clicar no Botão "X", pois o ON INTERACTIVECLOSE Sai_Sim_Nao() também deveria desviar o processamento para a Função Sai_Sim_Nao().
Entretanto, o Botão "X" aborta o aplicativo.
Onde está o erro ?
No Aplicativo em MiniGui 3.3.0, tenho:
Código: Selecionar todos
DEFINE WINDOW TEMPLATE ;
AT n_X1, n_Y1 ;
WIDTH n_Lrg HEIGHT n_Alt;
TITLE PROG_TIT ;
CHILD ;
ON INTERACTIVECLOSE Sai_Sim_Nao()
@ 12,15 LABEL label_1 WIDTH n_Lrg-20 HEIGHT 20 ;
VALUE 'ConexÆo INATIVA' ;
FONT 'Times New Roman' SIZE 14 ;
FONTCOLOR BLUE
@ 40,15 LABEL label_2 WIDTH n_Lrg-20 HEIGHT 20 ;
VALUE '===============' ;
FONT 'Times New Roman' SIZE 14 ;
FONTCOLOR BLUE
ON KEY ALT+F4 ACTION { || Sai_Sim_Nao( ), Fecha_Connect() }
ON KEY ALT+F12 ACTION { || Sai_Sim_Nao( ), Fecha_Connect() }
ON KEY F5 ACTION { || Baixa_Prescr() }O mesmo deveria acontecer ao clicar no Botão "X", pois o ON INTERACTIVECLOSE Sai_Sim_Nao() também deveria desviar o processamento para a Função Sai_Sim_Nao().
Entretanto, o Botão "X" aborta o aplicativo.
Onde está o erro ?