0

building your own wxwidgets applications

Cross-Platform GUI Programming with wxWidgets docx

Cross-Platform GUI Programming with wxWidgets docx

Kỹ thuật lập trình

... 540 A Installing wxWidgets 543 B Building Your Own wxWidgets Applications 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: Building Your Own wxWidgets Applications Windows—Microsoft Visual Studio; ... create your own applications 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...
  • 744
  • 1,977
  • 0
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

Kỹ thuật lập trình

... 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...
  • 12
  • 381
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

Kỹ thuật lập trình

... 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 your own 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 ...
  • 14
  • 378
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

Kỹ thuật lập trình

... button text (Ok, Cancel, and Help) In cases when you want your own text, or want some extra control over the scripting, you can define your own button with the dlgtype attribute:
  • 16
  • 391
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

Kỹ thuật lập trình

... 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...
  • 15
  • 373
  • 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

Kỹ thuật lập trình

... a pop up with a description element within that holds text You can also create your own tooltips To create your own content and customized appearance for a tooltip: Create the content Attach ... example, in tree cells that contain transient values The advantage of creating your own tooltip is that you can apply your own 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...
  • 19
  • 367
  • 1
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

Kỹ thuật lập trình

... 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...
  • 18
  • 337
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

Kỹ thuật lập trình

... 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...
  • 16
  • 334
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

Kỹ thuật lập trình

... 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 your own 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...
  • 13
  • 333
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

Kỹ thuật lập trình

... 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 your own 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]...
  • 10
  • 297
  • 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Kỹ thuật lập trình

... user profile and sometimes you create them yourself they come with example rules that are commented out However, you can uncomment them and add your own 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...
  • 12
  • 311
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

Kỹ thuật lập trình

... look at the source code for the Mozilla browser itself, it can be very helpful when you create your own applications 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...
  • 21
  • 333
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

Kỹ thuật lập trình

... primary DOM methods used to manipulate the various elements and attributes, you can add your own 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...
  • 12
  • 384
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

Kỹ thuật lập trình

... tabular data in a tree 5.3.5 Sharing Data Between Documents As the scale of your application development increases and your applications 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(...
  • 10
  • 283
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

Kỹ thuật lập trình

... 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 your own 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...
  • 22
  • 336
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

Kỹ thuật lập trình

... 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 your own 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...
  • 24
  • 358
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

Kỹ thuật lập trình

... 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...
  • 23
  • 354
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

Kỹ thuật lập trình

... 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 your own 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 your own icon and then follow these steps: Go to the mozilla/xpfe/bootstrap ... as it is in your own 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,...
  • 15
  • 413
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

Kỹ thuật lập trình

... 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 your own 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 your own new binding, , which you could then use elsewhere The widget constructed in this...
  • 17
  • 367
  • 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

Kỹ thuật lập trình

... 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
  • 11
  • 390
  • 0

Xem thêm