Home > OS >  GTK development, create a horizontal scale control, through the direction key control, the direction
GTK development, create a horizontal scale control, through the direction key control, the direction

Time:11-12

As mentioned in question,
Recently discovered in learning GTK, at the time of creating scale, through the direction key control,
If it is a horizontal scale, the direction key, value decreased; Under the direction key, value add
If it is a vertical scale, left the direction key, value increases; Right direction key, the value to reduce
The above phenomenon does not accord with my expectations are,
Expectations:
On the horizontal scale, the direction key, value increases; Under the direction key, value reduced

Hope the great god, to reassure

CodePudding user response:

Can be banned from the keyboard to move, this is a question of GTK libraries

CodePudding user response:

reference 1st floor mouse_zhu response:
can be banned from the keyboard to move, this is a question of GTK library


@ mouse_zhu
1. How do I move the keyboard disable?

2. How do I change the GTK libraries, to solve this problem?
, see in the GTK source function gtk_scale_class_init key-press events for the binding, but the functions are called no see,

CodePudding user response:

Answer to your second question first
Gtk_scale_class_init this method to realize a object encapsulation is GTK
When you call the gtk_ * * _new will automatically enter the function, there are many methods to disable the keyboard
  • Related