fpc question 
Author Message
 fpc question

How to give an accelerator key to GTK_ENTRY ?
I want to unmap tab key and map my accelerators eg. GDK_KP_Enter and
GDK_Return.

This is situation:

  posentry1 := gtk_entry_new_with_max_length (20);
  gtk_widget_set_name (posentry1, 'posentry1');
  gtk_widget_ref (posentry1);

  gtk_object_set_data_full (GTK_OBJECT (poswindow1), 'posentry1', posentry1,

// THIS IS MY PROBLEM, IT JUST WAN'T GIVE ANY accelerator key to GTK_ENTRY

  gtk_widget_add_accelerator (posentry1, 'changed', paccel_group,
                              GDK_Return, 0,
                              GTK_ACCEL_VISIBLE);

// THIS WORKS

  gtk_signal_connect (GTK_OBJECT (posentry1), 'activate',

                      posentry1);

And...how to disconnect GDK_Tab ?

Tnx



Mon, 02 Feb 2004 18:33:55 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. fpc question

2. fpc questions to Jonas Maebe

3. FPC - linux question

4. Question about FPC under linux

5. DLL Compiling Question [FPC]

6. DLL Compiling Question [FPC}

7. FPC charset (linux) question

8. FPC: ^longint type, curious question

9. FPC (linux) question

10. FPC & Graphics Question

11. FPC + RHIDE + Linux questions

12. FPC: ^longint type, memory question

 

 
Powered by phpBB® Forum Software