HTML layout高仿QQ GUI
1. [图片] QQ20130804162049.png

2. [代码]AAuto 代码
import win.ui;
import web.layout;
/*DSG{{*/
winform = ..win.form( text="好为博客";bottom=278;max=false;right=387;border="none";exmode="toolwindow";parent=...;cls="" )
winform.add( )
/*}}*/
import inet.http;
import web.json;
import win.util.tray;
import web.layout.behavior.windowCommand;
tray = win.util.tray(winform, "/res/iconv.ico", "好为博客");
winform.onClose = function(hwnd, message, wParam, lParam){
tray.delete();
}
/*
panel = ..win.form(topmost=1;
text="好为博客";
bottom=630;
right=100;
top=28;
border="none";
exmode="toolwindow";
parent=...;
cls="");
*/
winform.wndproc = function(hwnd,message,wParam,lParam){
select( message ) {
case( 0x400+9981) {
if( lParam = 0x205){
winform.close();
}
}
}
}
layout = web.layout(winform);
layout.html = /**
<html command="window-caption">
<style type="text/css">
.animate {
assigned!: self.start-animation();
animation-start!: self::margin-left = 20;
animation-end!: self::margin-left = 144;
animation-step!: self::margin-left < 144 ? (
delta = limit( (144 - self::margin-left) * 0.2, 5, 15),
self::margin-left = self::margin-left + delta,
return 5
);
}
.show { display: inline; }
.hidden { display: none; }
input { outline: none; }
p { margin: 0; margin-bottom: 10px; }
span { display: inline-block; margin-right: 20px; }
html {
behavior: windowCommand;
background-image: url(/res/bg.png);
background-position: left top;
background-color: transparent;
margin: 0;
}
.header { width: 100%; height: 120px; background; rgb(255, 255, 255); }
.header .caption { float: right; margin-right: 4px; margin-top:4px;}
.header .caption a {
display: inline-block;
float: left;
width: 26px;
height: 20px;
background: url(/res/cbtn.png) no-repeat;
}
.header .caption a[command="window-setting"]{
background-position: 0px 0px;
}
.header .caption a[command="window-setting"]:hover {
background-position: 0 -30px;
}
.header .caption a[command="window-min"] {
background-position: -26px 0px;
}
.header .caption a[command="window-min"]:hover {
background-position: -26px -60px;
}
.header .caption a[command="window-close"] {
background-position: -52px 0px;
}
.header .caption a[command="window-close"]:hover {
background-position: -52px -90px;
}
.center { width: 100%; height: 110px; }
.center .left { float: left; margin-left: 20px;}
.center .left .avatar { padding: 10px; background: rgb(255, 255, 255); }
.center .left .input {
color: #000;
background-color: #fff;
border: solid 1px #888888;
width: 175px;
padding: 2px 5px;
height: 21px;
font-family: Arial;
font-size:13px;
}
.center .left span label { color: #fff; font-size:12px; }
.center .left span input[type="checkbox"] {
border: solid 1px #333;
width: 12px;
height: 12px;
margin-right: 5px;
}
.footer button {
display: inline-block;
margin: 0 auto;
display: block;
width: 149px;
height: 40px;
background: url('/res/button.png') no-repeat center top;
click!:
$1(div[type='avatar']).class = "left animate",
$1(div[type='sign']).class = "left hidden";
}
.footer button:active { background: url('/res/button.png') no-repeat center -45px; }
</style>
<div class="header">
<div class="caption">
<a command="window-setting"></a>
<a command="window-min"></a>
<a command="window-close"></a>
</div>
</div>
<div class="center">
<div type="avatar" class="left">
<div class="avatar"><img src="/res/default.png" /></div>
</div>http://www.bizhizu.cn/shouhui/
<div type="sign" class="left">
<p><input id="user" class="input" type="text" novalue="帐号" /></p>
<p><input id="password" class="input" type="password" novalue="密码"/></p>
<p class="cookie-bar">手绘图片
<span><input type="checkbox" name="cookie[remeber]" value="1" /><label>记住密码</label></span>
<span><input type="checkbox" name="cookie[login]" value="1"/><label>自动登录</label></span>
</p>
</div>
</div>
<div class="footer">
<button id="button"></button>
</div>
</html>
**/
winform.transparent(true);
winform.show();
win.loopMessage();
HTML layout高仿QQ GUI的更多相关文章
- 史上最简单,一步集成侧滑(删除)菜单,高仿QQ、IOS。
重要的话 开头说,not for the RecyclerView or ListView, for the Any ViewGroup. 本控件不依赖任何父布局,不是针对 RecyclerView. ...
- Android实现高仿QQ附近的人搜索展示
本文主要实现了高仿QQ附近的人搜索展示,用到了自定义控件的方法 最终效果如下 1.下面展示列表我们可以使用ViewPager来实现(当然如果你不觉得麻烦,你也可以用HorizontalScrollVi ...
- Android 高仿QQ滑动弹出菜单标记已读、未读消息
在上一篇博客<Android 高仿微信(QQ)滑动弹出编辑.删除菜单效果,增加下拉刷新功能>里,已经带着大家学习如何使用SwipeMenuListView这一开源库实现滑动列表弹出菜单,接 ...
- 高仿QQ的即时通讯应用带服务端软件安装
Android 基于xmpp协议,smack包,openfire服务端(在下面)的高仿QQ的即时通讯实现.实现了注册,登录,读取好友列表,搜索好友,添加分组,添加好友,删除好友,修改心情,两个客户端之 ...
- 高仿QQ即时聊天软件开发系列之三登录窗口用户选择下拉框
上一篇高仿QQ即时聊天软件开发系列之二登录窗口界面写了一个大概的布局和原理 这一篇详细说下拉框的实现原理 先上最终效果图 一开始其实只是想给下拉框加一个placeholder效果,让下拉框在未选择未输 ...
- 高仿QQ即时聊天软件开发系列之二登录窗口界面
继上一篇高仿QQ即时聊天软件开发系列之一开端之后,开始做登录窗口 废话不多说,先看效果,只有界面 可能还有一些细节地方没有做,例如那个LOGO嘛,不要在意这些细节 GIF虽短,可是这做起来真难,好吧因 ...
- 高仿QQ即时聊天软件开发系列之一开端
前段时间在园子里看到一个大神做了一个GG2014IM软件,仿QQ的,那感觉···,赶快下载源码过来试试,还真能直接跑起来,效果也不错.但一看源码,全都给封装到了ESFramework里面了,音视频那部 ...
- 高仿qq聊天界面
高仿qq聊天界面,给有需要的人,界面效果如下: 真心觉得做界面非常痛苦,给有需要的朋友. chat.xml <?xml version="1.0" encoding=&quo ...
- WPF ”真正的“高仿QQ
时常可以在各种论坛 博客 看到 各种所谓的 高仿QQ. 说实话 越看越想笑呢.(PS:纯粹的 抨击 那些 不追求 UI 完美主义者) 例如: 本次模仿 采用 C# WPF XAML , 总 ...
随机推荐
- 邁向IT專家成功之路的三十則鐵律 鐵律五:IT人穩定發展之道-去除惡習
在我們努力邁向IT專家成功之路的過程當中,實際上會遭遇到許多障礙來影響我們前進,然而在這諸多障礙之中,最難克服的並非是旁人對我們所造成的影響,而是無形之間自己對自己所造的阻礙,如果沒有隨時隨地加以自反 ...
- go 协程与主线程强占运行
最近在学习了Go 语言 , 正好学习到了 协程这一块 ,遇到了困惑的地方.这个是go语言官方文档 . 在我的理解当中是,协程只能在主线程释放时间片后才会经过系统调度来运行协程,其实正确的也确实是这样 ...
- 每天进步一点点—SQL优化
一. SQL优化 1. 通过show status 命令了解各种SQL的运行频率 mysql>show status like 'Com_%'; +----------- ...
- Spring 与 MyBatis 整合
一.实验介绍 1.1 实验内容 本节课程将整合 Spring 和 MyBatis,并采用 Junit 进行单元测试. 1.2 实验知识点 Spring - MyBatis 整合 Junit 单元测试 ...
- git 使用及常用命令
git在团队项目中的使用流程 1.首先从一个git远程仓库中clone项目到本地 ? 1 git clone 仓库地址 2.创建开发分支 一般我们写代码不会在master分支上面写,而是新建一个分支 ...
- 百科知识 tar文件如何打开
tar 是什么文件格式,是干什么用的,用什么打开 tarball压缩格式,源于Linux的一个指令,Windows上可以用WinRAR打开 Linux的实用程序tar最初是为了制作磁带存档而设计的(把 ...
- Unix系统介绍
一.基础知识 操作系统 用户与计算机硬件之间的界面,是控制.管理计算机内各种硬件与软件资源.它是一个多用户.多任务.分时的操作系统. 对于分时系统:假如a进程需要16个时间片,现在根据优先级只分配了1 ...
- hibernate5(10)注解映射[2]一对多单向关联
在上一篇文章里.我们从端方向一端建立关联关系,完毕了从文章到作者的关联关系建立.但在实际的博客站点中,用户肯定还须要获取自己所写的文章,这时能够建立用户(一)对文章(多)的单向关联映射. 先来看我们的 ...
- 【程序猿联盟】官网上线啦!coderunity.com
wx_fmt=jpeg" alt="" style="max-width:100%; height:auto!important"> 内容简单介 ...
- openwrt 修改 banner
http://www.network-science.de/ascii/ rectangles 风格