U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Exclamation Popup: two clicks to dismiss
icon9.gif  Exclamation Popup: two clicks to dismiss [message #15208] Wed, 09 April 2008 16:22 Go to previous message
indiocolifa is currently offline  indiocolifa
Messages: 49
Registered: January 2008
Location: Argentina
Member
I don't know why I'm needing two clicks to dismiss an Exclamation popup box in this code.

I'm using lastFocus to store the focus of the last control and validate (in this case edtNSerie):

	if (lastFocus == &edtNSerie)
		{
			Sql sql(PSQL_SESSION);
			
			// observar si hay un caso abierto para el equipo
			sql.Execute(Format("SELECT numcaso FROM caso WHERE nserie='%s' AND estado!='CERRADO'",
			            ::ToUpper(TRIM((String)~edtNSerie))));     
			            
			sql.Fetch();
			
			if (sql.GetRowsProcessed())
			{
				Exclamation(Format("Este equipo ya tiene un caso abierto, numerado [* \%d].&"
				"Debe cerrar este caso para poder continuar.", sql[0] ));
				edtNSerie<<= "";
				lastFocus=NULL;
			}
...



That Exclamation call needs two clicks to return to the main dialog.

Why this behaviour?

Thank you, keep up the good work!

 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Equivalent widgets
Next Topic: Ctrl::GlobalBackPaintHint() and GLCtrl
Goto Forum:
  


Current Time: Tue May 05 17:32:34 GMT+2 2026

Total time taken to generate the page: 0.00525 seconds