当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 请问一个GTK关于toggle-button的函数的作用
帖子发表于 : 2012-10-12 9:11 

注册: 2011-02-26 15:46
帖子: 16
送出感谢: 0 次
接收感谢: 0 次
toggle-button有个函数

void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, gboolean setting);
If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a toggle button, and the current values in that range are inconsistent, you may want to display the toggle in an "in between" state. This function turns on "in between" display. Normally you would turn off the inconsistent state again if the user toggles the toggle button. This has to be done manually, gtk_toggle_button_set_inconsistent() only affects visual appearance, it doesn't affect the semantics of the button.

toggle_button : a GtkToggleButton
setting : TRUE if state is inconsistent


各位大神,有谁知道,帮我讲解一下吧!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 请问一个GTK关于toggle-button的函数的作用
帖子发表于 : 2012-10-13 12:12 
头像

注册: 2010-01-17 15:39
帖子: 403
系统: Debian Wheezy AMD64
送出感谢: 0 次
接收感谢: 6
这个貌似表示的是一种第三状态,即介于选中和非选中的一种状态。
如GtkCheckButton中的勾在这个状态下会显示成灰色。


_________________
OS: Debian Wheezy (Testing) for AMD64~~~
Mobile Phone: Nokia N900, OS: Maemo 5.0 (Base on Debian)~~~
本人的项目: RhythmCat(Linux下的音乐播放器.....支持歌词等功能...)
http://code.google.com/p/rhythmcat

RhythmCat 2进行中 (https://github.com/supercatexpert/RhythmCat2/)


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译