Search Applet Appearance Parameters

 

Component Geometry Parameters

Geometry parameters set the format (position, size, font, color) of the search applet’s visual components. The following table shows all available geometry properties:

Geom. Property Description
label
(alias: desc)
The string label, if any, of the component. See also "Setting Choice Component Values."
color
The foreground color.
bgcolor
The background color.
font
The font name to be used for a label. Font name must be an available system font.
fontsize
The font size in points for the label.
fontstyle
The font style for the label. Allowed values are plain, bold and italic.
width, height
The width and height of the component. Valid for layout 0 only.
x, y
The position of the component. Valid for layout 0 only.

All geometry parameters have simple format:

geom.<component>.<property>=<value>

where <component> is name of the applet's component, <property> is name of the property, and <value> is the property value you want to apply.

For example:

geom.list.bgcolor=LightGray
geom.list.fontsize=14

The following figures show all available components in both simple and "search by field" applets.

SearchApplet.class components:

Component
Name
1 main_panel
2 search_in
3 collectionchoice
4 qbox
5 list
6 query_label
7 search_button
8 stop_button
9 newwin_box
10 show_button
11 maxhits_choice
12 maxhits_label
13 message_label
14 description

FieldedSearchApplet.class components:

Component
Name
1 main_panel
2 search_in
3 collectionchoice
4 qbox
5 list
6 label1
7 search_button
8 stop_button
9 newwin_box
10 show_button
11 maxhits_choice
12 maxhits_label
13 message_label
14 description
15 listheader
16 field_choice
17 clear_button
18 more_button
19 fewer_button
20 contains_choice
21 and_or_choice

 

Color Coding

QuestAgent recognizes the following colors (names are not case sensitive): black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, yellow, and white.

All other colors can be represented in hexadecimal notation. Using the red-green-blue (RGB) color model, each color is expressed as a two digit hexadecimal value, for example, 000000 is black, FFFFFF is white.

Using PaintShop Pro (or another paint program) you can determine the hexadecimal value of any color.

Setting Choice Component Values

Values of choice components, also known as combo boxes, can be set using label geometry parameter in the following manner:

geom.<component>.label=value 1|value 2|...

Examples:

geom.maxhits_choice.label=200|100|50
geom.contains_choice.label=contains|doesn't contain

 

 


Copyright © 1997, 1999 JObjects - All right reserved.
contact@jobjects.com