XUL窗口创建和事件处理

admin | xul | 2014-08-07
窗口创建 1.         对于提示窗口,像javascript中的alert/confirm等函数所打开的。其过程如下:nsPromptService::DoDialog->nsWindowWatcher::OpenWindow->nsXULWindow::ShowModal。如果想要定制提示窗口的行为,比如在命令行下提示,可以重新实现nsIPromptService2/nsPIPromptService接口。 2.         对于正常窗口,其创建过程如下:nsWindo... [阅读全文]
ė1,787 浏览数 6没有评论 0

NSWindow如何实现圆角 (mac)

admin | xul | 2014-08-06
分两步走: 1.子类化NSWindow,主要是重载了下面这个函数 - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag { self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]; if (self != nil) ... [阅读全文]
ė2,124 浏览数 6没有评论 0

NSWindow 了解

admin | xul | 2014-08-06
Style Masks:指定窗口的标题栏和里面按钮的控制 1、NSBorderLessWindowMask  没有外部元件 比如关闭按钮,全屏,toolbar等 2、NSTitledWindowMask  是否有布置一个title bar 3、NSClosableWindowMask  是否布置一个 关闭按钮 4、NSMiniaturizableWindowMask 是否布置一个最小化按钮 5、NSResizableWindowMask 是否布置一个大小控制 6、NSTextturedBack... [阅读全文]
ė2,070 浏览数 6没有评论 0

CSS文本溢出用省略号代替

admin | xul | 2014-08-05
语法: text-overflow : clip | ellipsis 参数: clip :  不显示省略标记(…),而是简单的裁切 (clip这个参数是不常用的!) ellipsis :  当对象内文本溢出时显示省略标记(…) 说明: 设置或检索是否使用一个省略标记(…)标示对象内文本的溢出。 请您注意,text-overflow:ellipsis属性在FF中是没有效果的。   text-overfl... [阅读全文]
ė5,257 浏览数 6没有评论 0

xul remove system tools button and show shadow

admin | xul | 2014-08-05
CSS #messengerWindow{ -moz-appearance: -moz-win-browsertabbar-toolbox !important; } 123 #messengerWindow{  -moz-appearance: -moz-win-browsertabbar-toolbox !important;} XHTML <window id="messengerWindow" ch... [阅读全文]
ė4,357 浏览数 6没有评论 0

scrollbox scrollbar styling

admin | xul | 2014-08-01
http://codeverge.com/mozilla.dev.tech.xul/scrollbox-scrollbar-styling-1.9/1552351 [阅读全文]
ė1,517 浏览数 6没有评论 0

change xul browser scrollbar style

admin | xul | 2014-08-01
http://livepipe.net/control/scrollbar https://github.com/eastridge/livepipe-ui/blob/master/src/scrollbar.js [阅读全文]
ė1,608 浏览数 6没有评论 0

How to hide the #titlebar-buttonbox-container

admin | xul | 2014-08-01
http://forums.mozillazine.org/viewtopic.php?f=38&t=2573693   http://www.firefox.net.cn/read-35532     https://addons.mozilla.org/en-US/firefox/addon/hide-caption-titlebar-plus-sma/ [阅读全文]
ė1,667 浏览数 6没有评论 0

xulrunner No system Borders,and win7 effect

admin | xul | 2014-07-30
1.修改xulrunner 配置,xul 等   结果(失败) │ application.ini │ chrome.manifest │ start.bat │ ├─chrome │ │ chrome.manifest │ │ │ └─content │ main.css │ main.js │ main.xul │ main2.xul │ ├─components └─defaults └─preferences ... [阅读全文]
ė1,881 浏览数 6没有评论 0

xul browser scrollbar style

admin | xul | 2014-07-30
http://stackoverflow.com/questions/9496790/how-to-use-custom-scrollbar-in-firefox http://livepipe.net/control/scrollbar [阅读全文]
ė1,743 浏览数 6没有评论 0

Ɣ回顶部

无觅相关文章插件,快速提升流量