... 540 A Installing wxWidgets 543 B BuildingYourOwnwxWidgetsApplications 559 C Creating Applications with DialogBlocks ... Unix/Linux and Mac OS X—GCC; customizing setup.h; rebuilding after updating wxWidgets files; using contrib libraries Appendix B: BuildingYourOwnwxWidgetsApplications Windows—Microsoft Visual Studio; ... create yourownapplications for personal use, and it also provides convenient access to the wxWidgets reference manual Updates to the book and CD-ROM can be obtained from this site: http://www .wxwidgets. org/book...
... as a container for pop ups, the pop-up set helps organize the free-floating[1] pop-up windows in your application and makes it easy to overlay them or overlay into them as the situation requires ... list is a choice of options presented to solicit a single choice, usually in the form of a drop-down menu, for which XUL provides the element Example 3-8 presents a straightforward menu ... Tabular and Hierarchical Information Many options exist to display hierarchical information in your user interface The most common are tree-like and table-like structures, both of which are represented...
... The first thing you have to to build a custom view is instantiate your tree and then associate a view object with it, commonly known as a view document.getElementById('maintree').treeBoxObject.view=mainView; ... community You are welcome to take a look at the more than 60 projects hosted on the site or to start yourown development project Or you can use the value attribute when you're sure the ... some functionality should be turned on or off, as shown in Figure 3-7 ...
... button text (Ok, Cancel, and Help) In cases when you want yourown text, or want some extra control over the scripting, you can define yourown button with the dlgtype attribute:
... appears on the bottom of the screen in many Mozilla applications, including the Mozilla browser itself It can be used for the same purpose in your application if you need it The element ... size of your widget Don't use the style attribute too often, though, especially if you want to have more than one theme for your application ... Chapter for information about how this attribute can make your application less modular and, for some, a better way to apply style to your XUL documents 3.10.3 Persistence The persist attribute...
... a pop up with a description element within that holds text You can also create yourown tooltips To create yourown content and customized appearance for a tooltip: Create the content Attach ... example, in tree cells that contain transient values The advantage of creating yourown tooltip is that you can apply yourown styles to it, giving the text and background whatever font and colors ... The Extras Certain lesser-known elements and features are indispensable to the savvy XUL developer and can add that something extra to Mozilla applications, as shown here 3.12.1 Tooltips Tooltips...
... farther down in the "skin hierarchy." (This is discussed later in this chapter in the Section 4.3.1 section.) Planning Your Interface Before you begin using CSS and images to style your XUL application ... a sense of where your interface is heading Begin by asking yourself some questions What should the buttons look like? Do you want to give users the ability to switch skins in your application, ... you will undoubtedly develop images and icons for your interface anyway, and you can slice and dice your mockup to get, for example, the icons for your buttons, the background images, and other...
... child and letting the style rules above the current one in the document inheritance chain cascade down However, not all style rules are inherited Properties such as !important, left, and height are ... an image to reflect different states as when a second image is used to give a button a pushed-down look as it is clicked to create dynamism and provide feedback to the user Example 4-4 shows...
... apply to new applications like xFly, however, for which the XUL is typically a single package and the CSS that applies to it is another single package Unlike the Mozilla browser, your application ... to one another, where the browser gets its look, and what strategies you might use to create yourown complete skin The following sections provide a brief, representative sampling of the Modern ... Mozilla browser, modularity is almost imperative particularly if that application supports add-on applications (like xFly itself, which will be accessible from the Mozilla Tasks menu when you are...
... list-styleimage:url("chrome://global/skin/scroll-updisabled.gif"); } down { min-width: 0px; list-styleimage:url("chrome://global/skin/scroll-down.gif"); } down[disabled="true"] { list-styleimage:url("chrome://global/skin/scroll-downdisabled.gif"); ... feel, you can begin to create yourown skin for the xFly, overriding global styles where appropriate, extending them by "cascading" new, more specific style rules for your widgets, or adding new ... list-styleimage:url("chrome://global/skin/scroll-downdisabled.gif"); } sidebarTree { border: none; margin: 0px !important; } /* ::::: download manager ::::: */ #downloadView > treechildren:-moz-tree-image(Name) { margin-right: 2px; } Notes [1]...
... user profile and sometimes you create them yourself they come with example rules that are commented out However, you can uncomment them and add yourown rules to personalize the look of the browser ... You can write these XBL goodies into your theme if you want (or develop a theme out of the Modern theme, where there is plenty of XBL, and see them disabled in your theme when they were working ... them for installation as skins, the script part of your skins will be disabled However, if you create a skin and then install it as a new package, your skin will not be as limited, and you will have...
... look at the source code for the Mozilla browser itself, it can be very helpful when you create yourownapplications and want to track the data that interests you Once you have an object assigned ... DOM specifications are split into different levels overseen by the W3C Each level provides its own features and Mozilla has varying, but nearly complete, levels of support for each Currently, ... use a method called dump( ) to print data to STDOUT This method is primarily used for debugging your code and is turned on using a PREF You can turn this PREF on using the following code: const...
... primary DOM methods used to manipulate the various elements and attributes, you can add yourown scripts to your application Though you can use other techniques to get scripts into the UI, one of ... onclick oncontextmenu ondestroy onload onpaint onkeydown onkeypress onkeyup onunload onmousemove onmouseout onmouseover onmouseup onmousedown onrest onresize onscroll onselect onsubmit Some of ... available as attributes on a XUL element These attributes are entry points where you can hook in your JavaScript code, as these examples show Note that event handler attributes are technically...
... tabular data in a tree 5.3.5 Sharing Data Between Documents As the scale of your application development increases and yourapplications grow new windows and components, you may become interested ... component object model (XPCOM), and are known as XPCOM components The relationship of these components and the application services they provide to the interface is shown in Figure 5-4 ... margin : 50px; } You can call setAttribute in your script to hide the button at runtime function disappear( ){ return document.getElementById('somebutton').setAttribute(...
... into your JavaScript, create a file object (as shown in the examples below), and call its close( ) method xpcshell Most examples in this section are in xpcshell, but using these libraries in your ... components and interfaces in Mozilla and seeing how they are used can be useful when writing yourown application The Mozilla Component Viewer is a great tool for discovering components and provides ... in the third, deepest level of application programming The first is to organize your JavaScript into libraries so your functions can be reused, distributed, and perhaps collaborated upon The second...
... for entirely new Mozilla applications 6.2 Packaging Mozilla Applications Packaging simply means organizing your files into a Mozilla application structure Packaging your application is required ... manifests When you create new applications on top of Mozilla, you will often create new content, new skins, and yourown localizable language elements, such as DTDs For applications, the manifest ... to the Mozilla Tools menu Adding your application to one of the Mozilla browser menus (so users can easily launch your application once it is installed) makes your application feel official Figure...
... Installing Mozilla Applications Once your application is packaged, the next step is to create a cross-platform installation, or XPI A XPI is a special file archive that contains your Mozilla package(s) ... manifests for each subdirectory, your application is technically a package although until you compress it and create an install script, it's a package only for your computer and the environment ... that are installed as new packages in the Mozilla distribution To make a XPI for your package, use any zip software (applications or extensions that will be part of the main Mozilla distribution...
... when Mozilla starts up If your application also requires a lot of processing at startup or if you would like to customize your application, then creating and using yourown unique splash screen ... application and what files or resources need to be changed to make your icon the default for Mozilla 6.5.1.1 Windows In Windows, create yourown icon and then follow these steps: Go to the mozilla/xpfe/bootstrap ... as it is in yourown Make sure that the ZIP file, whatever it's called, contains the toplevel xfly subdirectory as part of this structure If it is a JAR file you are distributing for your package,...
... namespace prefix (NCName) You can choose to namespace your document in a different way For example, if you have a large mass of XUL code in your binding and not wish to use the xul: prefix repeatedly, ... a XUL document At the end of the section, you should be able to take the pieces and construct yourown binding, so try to follow it like a step-by-step guide Design is important in XBL The implementation ... mentioned in the introduction for example, as a combination of the XUL widget and yourown new binding, , which you could then use elsewhere The widget constructed in this...
... Handlers in XBL mimic regular document events like onclick and onmousedown, and provide a means for trapping them within your binding and carrying out tasks associated with them