hf_options->freq_control_adj[5] =adj;// 32adj =gtk_adjustment_new(hf_options->surfadd_options->frq_percent[4],0,100,1,1,0.01);//...这里部分代码省略... 开发者ID:consultit,项目名称:geomorph,代码行数:101,代码来源:surfadd_dialog.c 示例2: create_session_save_dialog ▲点赞 6▼ /*...
adjust=(GtkAdjustment *)gtk_adjustment_new(2022,1970,3000,1,1,0); /*创建微调按钮*/ spin_button=gtk_spin_button_new(adjust,0.5, 0); /*限制微调按钮只能输入数值*/ gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(spin_button),TRUE); /*设置按钮达到最大值后再变为最小值*/ gtk_spin_button_s...
GTK 有多种构件能够由用户通过鼠标或键盘进行调整,比如范围构件。 当构件的调整值发生变化时,引发自己的信号,传递到信号处理函数中。 滚动条、比例构件(scales)、进度条、视角、滚动窗口、微调按钮(spin button) GtkObject *gtk_adjustment_new ( gdouble value, //初始值,value能取的最大值一般是upper减page_siz...
GtkWidget*gtk_spin_button_new(GtkAdjustment*adjustment,gdoubleclimb_rate,guintdigits) 形参:adjustment--调整对象 climb_rate--指明构件数值变化的加速度(长时间按住按钮,数值会加速变化)。介于0.0~1.0之间 digits--微调按就值小数位数 1. 2. 3. 4. 微调按钮参数配置函数: voidgtk_spin_button_configure(GtkS...
value =gtk_adjustment_get_value(vadj) + (num_lines * gtk_adjustment_get_step_increment (vadj)); gtk_adjustment_set_value (vadj, value);#endif} 开发者ID:jdapena,项目名称:epiphany,代码行数:18,代码来源:ephy-find-toolbar.c 示例3: gimp_text_style_editor_baseline_changed ...
grid = gtk_grid_new(); gtk_container_add ( GTK_CONTAINER ( window ), grid ); /// *** Create an Adjustment adjustment = gtk_adjustment_new ( 0, 0, 10, 1, 2, 0 ); /// *** Create a Scale scale = gtk_scale_new ( GTK_ORIENTATION_HORIZONTAL, adjustment ); ...
滚动条的出现方式取值可以为GTK_POLICY_AUTOMATIC或GTK_POLICY_ALWAYS。当要求滚动条根据需要自动出现时,可设为GTK_POLICY_AUTOMATIC;若设为GTK_POLICY_ALWAYS,滚动条会一直出现在滚动窗口构件上。 微调按钮也是按钮的一种,创建其调整对象的函数为GtkObject *gtk_adjustment_new( gdouble value, gdouble lower, gdoubl...
gtk_action_group_new gtk_action_group_remove_action gtk_action_group_set_sensitive gtk_action_group_set_translate_func gtk_action_group_set_translation_domain gtk_action_group_set_visible gtk_action_group_translate_string gtk_adjustment_changed ...
GtkAdjustment*adjustment; GtkWidget*scale; GtkWidget*scaleButton;///*** Initialize GTK and load CSSgtk_init ( NULL, NULL ); load_css();///*** Create a Windowwindow = createWindow (300,300,"ScaleButton");///*** Create a Gridgrid =gtk_grid_new(); ...
方法名:gtk_adjustment_get ScrollBar.gtk_adjustment_get介绍 暂无 代码示例 代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc /** * Sets the maximum. If this value is negative or less than or * equal to the minimum, the value is ignored. If necessary, first * the ...