我一直认为手形光标是"你可以点击这里"给用户的理想视觉指示器.我们习惯于每天在这个上下文中看到它,因为它在超链接上使用,因此也是所有web按钮.

但是,大多数桌面应用程序似乎都保留按钮的防御指针箭头.

当按钮和其他可点击的项目(如复选框和单选按钮)使用手形光标时,我感觉真的很好.不知何故,当我将鼠标悬停在可点击的项目上时,我发现个人喜欢看到这个光标,可能是因为它与网页甚至许多游戏的执行方式一致.
但作为开发人员,我们必须考虑儿童用户,有时做的事情不是我们喜欢他们,而是用户喜欢他们.问题是,我对按钮上的手形光标感到如此模糊,以至于我对它不合适的可能性视而不见.许多设计错误都是由这些个人决定造成的.

你怎么看待这件事?
编辑:最近我注意到Photoshop上的手形光标(XP上的CS3)的使用,但可能只是因为我更广泛地使用它.截图:

请注意,许多使用手的地方显然是可点击的.
编辑2:还要注意他们甚至使用了一个自定义光标,说实话我从来没有这样做过,特别是对于像手游标那样无处不在的微不足道的光标.它甚至都不漂亮.
user-interface desktop-application user-experience cursor design-decisions
我有代码
class ogre
{
public:
int health;
bool isalive;
string name;
};
int fight()
{
cout << "You're now fighting an ogre!" << endl;
ogre ogre;
player player;
int ogredamage;
int playerdamage;
srand(time(NULL));
ogre.name = "Fernando Fleshcarver";
ogre.health = 100;
ogre.isalive = true;
player.health = 10000000;
player.isalive = true;
while(ogre.isalive = true)
{
ogredamage = rand() % 20;
cout << ogre.name << " deals " << ogredamage << " damage to you!" << endl;
player.health = player.health - ogredamage;
cout …Run Code Online (Sandbox Code Playgroud) string[] userIds = userList.Split(','); // is an array of integers
IList<User> users = (from user in this.repository.Users
where userIds.Contains(user.Id.ToString())
select user).ToList();
Run Code Online (Sandbox Code Playgroud)
以上查询给出
System.NotSupportedException: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
我能做什么?
我想知道在获取今天的日期时间戳时,一种方法是否比另一种方法更好.
哪个更好?
$timestamp = strtotime("now");
Run Code Online (Sandbox Code Playgroud)
要么
$date_today = date("Y-m-d H:i:s");
$timestamp = strtotime($date_today);
Run Code Online (Sandbox Code Playgroud)
甚至还有区别吗?
谢谢!!!!
任何教程/ exmaples或示例代码可用于将opengl原始图像(从opengl 3d场景中从glReadPixels获得的原始像素数据)转换为使用ffmpeg库的mp4或avi格式?
感谢任何帮助.提前致谢.
编辑:我想从这些图像动态生成和流式传输视频.这可能吗?这样做的任何例子/项目?
嘿伙计们,我喜欢jquery切换功能.然而,目前我正面临一个小问题,我不知道如何以最好的方式解决它.
我有一个名为#searchbox的div,它取决于隐藏或可见的用户设置.
如果我点击一个按钮就会触发切换功能,应该.slideDown()#searchbox或.slideUp()搜索框.
//if already visible - slideDown
//if not visible - slideUp
$('#searchboxtrigger').toggle(
function(){
$('#searchbox').slideDown('fast');
},
function(){
$('#searchbox').slideUp('fast');
}
);
Run Code Online (Sandbox Code Playgroud)
实际上它已经很好用了,唯一的事情是toggle()内的第一个函数总是首先被触发,所以如果#searchbox已经可见并且slidedDown它应该立即触发slideUp函数,反之亦然.
知道我要做些什么才能做到这一点?
这是我解决的程序,它将读取带有分隔符的文本文件,并使用datagridview将数据传输到表中.
现在我很难过,因为while循环只读取每一行.
这是我的代码:
private void Form1_Load(object sender, EventArgs e)
{
TextReader tr = new StreamReader("aplusixdata.txt");
string[] columns = {"School","Room No.","Student No.","Excercise No.","Problem No.",
"Nth Problem Taken","Date","Time","Excercise Degree",
"Action No.","Duration","Action","Error","Etape",
"Expression","Etat","Cursor Location","Selection",
"Equivalence","Resolution","Empty"};
while (tr.ReadLine() != null)
{
int i = 0;
char[] delimiterChar = { ';' };
string words = tr.ReadLine();
text = words.Split(delimiterChar);
DataRow row = t.NewRow();
foreach (String data in text)
{
//System.Console.WriteLine(data);
System.Console.WriteLine(i);
row[columns[i]] = data;
i++;
}
t.Rows.Add(row);
}
}
Run Code Online (Sandbox Code Playgroud) 这是一个简单聊天客户端的演示,您必须在webkit浏览器上打开它,如:chrome和Safari,
该演示使用基于node.js的web套接字服务器:websocket-server-node.js,
但我认为它无法在谷歌应用引擎上部署,
所以你知道如何在谷歌应用引擎上使用python制作websocket,
并在其上运行演示,
谢谢
这是代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8 />
<meta name="viewport" content="width=620" />
<title>HTML5 Demo: Web Socket</title>
<link rel="stylesheet" href="http://html5demos.com/css/html5demos.css" type="text/css" />
<script src="http://html5demos.com/js/h5utils.js"></script></head>
<body>
<section id="wrapper">
<header>
<h1>Web Socket</h1>
</header>
<style>
#chat { width: 97%; }
.them { font-weight: bold; }
.them:before { content: 'them '; color: #bbb; font-size: 14px; }
.you { font-style: italic; }
.you:before { content: 'you '; color: #bbb; font-size: 14px; font-weight: bold; }
#log {
overflow: …Run Code Online (Sandbox Code Playgroud) 如何查看OpenJDK的来源?我想看看是否有一些错误修复工作.上次下载非常旧.我使用mercurial URL http://hg.openjdk.java.net/jdk6/jdk6.但我只看到58的修订版和一些make文件库中的文件.它看起来不像OpenJDK的来源.
这是错误的存储库URL吗?它是项目主页http://openjdk.java.net/projects/jdk6/上的列表.
我以前从未与mercurial合作过.我做错了什么?