How to handle key_press_event in PAscal (FPC)



Please HELP about this .

Calling for this function is from

gtk_signal_connect(entry,'key_press_event'......etc

Function callback_of_some_entry(widget:PGtkWidget; event:PGDKEvent; 
data:pgpointer): gint; cdecl;

Begin
	case <WHAT??> of
		GDK_Return : Do_THIS;
		GDK_Tab     : Do_That;
		GDK_F1       : do_something_else;
	End;

	callback_of_some_entry:=0;
End;

Could be C example also


Tnx




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]