crecode.com

Using X Resources in .NET Include QR Code JIS X 0510 in .NET Using X Resources




How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Using X Resources generate, create qr none for .net projects Windows Forms Chap.27 databases, howe ver, the keys are patterns that are matched against the names of widgets and attributes. This makes it possible to specify attribute values for a large number of widgets with just a few database entries. In addition, the resource database can be shared by many applications, so users and administrators can de ne common attributes for their whole set of applications.

The resource database is maintained in main memory by the Tk toolkit. It is initialized from your ~/.xdefaults le, and from additional les that are explicitly loaded by the Tk application.

* You can also add individual database entries with the option tcl command. The pattern language for the keys is related to the naming convention for tk widgets. Recall that a widget name re ects its position in the hierarchy of windows.

You can think of the resource names as extending the hierarchy one more level at the bottom to account for all the attributes of each individual widget. There is also a new level of the hierarchy at the top in order to specify the application by name. For example, the database could contain an entry like the following in order to de ne a font for the quit button in a frame called.

buttons.. Tk.buttons.quit.font: fixed The leading Tk. matches the default class name for wish applications. You could also specify a more speci c application name, such asexmh, or an asterisk to match any application.

Resource keys can also specify classes of widgets and attributes as opposed to individual instances. The quit button, for example, is an instance of the Button class. Class names for widgets are the same as the tcl command used to create them, except for a leading capital.

A class-oriented speci cation that would set the font for all buttons in the .buttons frame would be:. Tk.buttons.Button.font: fixed Patterns allow you to replace one or more components of the resource name with an asterisk (*). For example, to set the font for all the widgets packed into the .buttons frame, you could use the resource name *buttons*font.

Or, you could specify the font for all buttons with the pattern *Button.font. In these examples we have replaced the leading Tk with an asterisk as well.

It is the ability to collapse several layers of the hierarchical name with a single asterisk that makes it easy to specify attributes for many widgets with just a few database entries. You can determine the resource names for the attributes of different widgets by consulting their man page, or by remembering the following convention. The resource name is the same as the command line switch (without the leading dash), except that multi-word attributes use a capital letter at the internal word boundaries.

For example, if the command line switch is -offvalue, then the corresponding resource name is offValue. There are also class names for attributes, which are also distinguished with a leading capital (e.g.

, OffValue).. * This is a bit Visual Studio .NET qr barcode different than the Xt toolkit that loads speci cations from as many as 5 different les to allow for peruser, per-site, per-application, per-machine, and per-user-per-application speci cations..

created: Decemb er 15, 1994 Resources.fm3 copyright prentice hall draft: 1/12/95. Loading Option Database Files Warning: order is important! The matching between a widget name and the patterns in the database can be ambiguous. It is possible that multiple patterns can match the same widget. The way this is resolved in Tk is by the ordering of database entries, with later entries taking precedence.

* Suppose the database contained just two entries, in this order.. *Text*foreground: blue *foreground: red In spite of the more speci c*Text*foreground entry, all widgets will have a red foreground, even text widgets. For this reason you should list your most general patterns early in your resource les, and give the more speci c patterns later..

Copyright © crecode.com . All rights reserved.