The Create Object Definition (CRTOBJDFN) command defines an object and its attribute. An object could be a simple grafical feature, a control or a sofisticated feature with link, image or system-command and reacting to Event such as click, right-click etc...
See also related commands.
Specifies the object you want to define.
This is a required parameter.
Qualifier 1: Object
|
A R FMT1
A . . .
*%%IW CRTOBJDFN OBJ(*DDSSRC)
*%%IW OBJTYPE(...)
*%%IW . . .
*%%IW ADDOBJCNT OBJ(*DDSSRC)
*%%IW TOLEVEL(*DDSSRC)
A . . .
|
The parameter value *DDSSRC assume the format or field name preceding the command insertion, like does any DDS keyword.
Nota: To insert the cmd within a DDS source, type-in the cmd in another session, use F14=cmd string and then do a copy/past to the DDS source.
Qualifier 2: Collection
Nota: To define new COLLECTION use the cmd: IWEB/CRTCLC
Specifies the object's type you want to define.
Nota: The command will prompt a different set of parameters according to the type of object you select. Any other parameters will be ignored.
This is a required parameter.
To be used to remove '. . . .' or replace '-------' with a line. Can be connected at *FIELD level.
Used to specify the view of a SFL: Specify column view/order, Tab panel view for multi-line subfile. Can be connected at *FORMAT level.
Specifies the text description of the object you define.
Specifies the adress of the image.
Example you may use:
Specifies the label of a link or a button.
Specifies the position of images outside the original frameset. Images can be positionned outside the original frameset of converted display. By selecting this parameter you may position images in the margin of the applet (The parameters TOP and LEFT will therefore be ignored).
Specifies the path of a background image. By selecting this parameter with the parameter BGPOS you will have an image in the background of the applet.
Example you may use:
Specifies the position of the background image. By selecting this parameter with the parameter BGIMG you will have an image in the background
Specifies a background image occurences.
Specifies the top position of an object.
Specifies the left position of an object.
Specifies the length of an object.
Specifies position of an object.
Specifies the width size of an object.
Specifies the height size of an object.
Specifies the alignment.
Specifies the unit for width and height.
Specifies the Hypertext Reference of a link.
All HREF protocols are usable, for instance:
Specifies the tooltip content. A tooltip is a small box that appears near an object in a graphical user interface (GUI) when a pointer or other cursor controlled by a mouse passes over or rests on that object and which contains a brief text message identifying or explaining the object.
Specifies the background color of an object. The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).
You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.
Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.
Specifies the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).
You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.
Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.
Specifies the title of the frame. You can specify its text, position and color.
Element 1: 'Title' text
Element 2: Title position
Element 3: Title color in hexadecimal
Specifies the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).
You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.
Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.
Specifies function key(s) layout and status.
Specifies the status of a function key.
Specifies the position of the function bar.
Specifies the status of a function key bar.
Specifies the initial value of a field.
Specifies the action of a button. The is the action returned to the host program.
Specifies the system command that will be executed. This command could be any CL command. Approach to the Object Oriented Programming (OOP).
Specifies the expression value of a field. Approach to the Object Oriented Programming (OOP).
You can specify 100 values for this parameter.
Element 1: Field name
Nota: When used for an object type FIELDIMG, FIELDLINK or FIELDBUTTON, you can specify the reserved word &THIS. &THIS is for a generic field which will be the field(s) to which the object is connected. (These objects type could only be connected at *FIELD level)
Element 2: Eval value expression
Specifies the field value. Approach to the Object Oriented Programming (OOP).
Specifies the date format to be returned from the pop-up calendar.
Specifies the 2 fields name and corresponding date format to be returned from the pop-up calendar.
Element 1: 1st Field name
Element 2: 1st Date format
Element 3: 2nd Field name
Element 4: 2nd Date format
Specifies the 3 fields name and corresponding date format to be returned from the pop-up calendar.
Element 1: 1st Field name
Element 2: 1st Date format
Element 3: 2nd Field name
Element 4: 2nd Date format
Element 5: 3rd Field name
Element 6: 3rd Date format
Specifies the value to be passed as input when the check box is ON. (the check box is checked)
Specifies the value to be passed as input when the check box is OFF. (the check box is unchecked)
Specifies, for table field, the use of a header "check/uncheck all" checkbox. This parameter is ignored when the field connected is not a SFL field.
Specifies the name of the field, preceded with its format name, which represent a application filter column.
Specifies the color (forground and background) of the output field(s).
Specifies the border (style, size and color) of the output field(s).
Specifies the color (forground and background) of the Constant field(s).
Specifies the border (style, size and color) of the Constant field(s).
Specifies the color (forground and background) of the table header(s).
Specifies the border (style, size and color) of the table header(s).
Specifies the color (forground and background) of the table odd line(s).
Specifies the color (forground and background) of the table even line(s).
Specifies the grid style.
Element 1: Gridstyle
Element 2: Size in pixel
Element 3: Color in hexadecimal
Specifies the position of a field button.
Specifies the background logo path of the menu frame.
Specifies a list of values and corresponding labels for a listbox.
You can specify 100 values for this parameter.
Element 1: Value
Element 2: Type
Element 3: 'Label' text
Specifies a list of format tab panel.
You can specify 100 values for this parameter.
Element 1: 'Tab panel' text
Element 2: Tab panel action
Element 3: 'Associed format name' text
For multi-line SFL, specifies the multi line view style: ALLINONE (all subsequent line are placed to the left), MULTILINE (all subsequent line are in a different line), TALETAB (all line are "tabbed")
Specifies a list of SFL tab panel.
You can specify 100 values for this parameter.
Element 1: 'SFL Tab panel' text
Element 2: SFL line
Specifies the SFL column view.
You can specify 100 values for this parameter.
Element 1: 'SFL field name' text
Element 2: SFL line
Specifies a list of SFL field to freeze for SFLTAB.
You can specify 100 values for this parameter.
Specifies a column heading. Column heading are used for SFL fields (subfile are transformed to Table for iWeb). You may use this parameter:
Specifies the minimum occurence for the pattern.
Specifies the replacement pattern.
Specifies the use of the field.
Specifies the container adaptation of the field when the use is OUTPUT only.
Specifies the sequence order of the position of a function key description.
Specifies the optimisation of the blank line of the display.
Specifies the values separated by ","(comma) of a list box or radio buttons.
Example you may use:
Specifies the labels separated by ","(comma) of a list box or radio buttons.
Example you may use:
Specifies the view of a list box.
Nota: In any case only the value of the selected list box item will be passed to the host program.
Specifies the axis for Radio Button layout.
Specifies a qualified style for the TEMPLATE .
Specifies a qualified subfiles style for the TEMPLATE .
Specifies function key bar position and status. It has to be used in connection with keyword TEMPLATE.
Specifies a qualified function key style. It has to be used in connection with keyword TEMPLATE. You can specify 32 values for this parameter.
Specifies a qualified menu style. It has to be used in connection with keyword TEMPLATE.
Specifies the applet border mode. It has to be used in connection with keyword TEMPLATE.
Specifies the view toolbar. It has to be used in connection with keyword TEMPLATE.
Example 1: Simple Command Example
CRTOBJDFN OBJ(MYCLCL/MYFRAME)
OBJTYPE(FRAME)
TEXT('frame sample')
TOP(2)
LEFT(1)
WIDTH(80)
HEIGHT(5)
BORDER(*DFT 1 *RED)
BGCOLOR(BDDFFF)
TITLE('Filter selection' TOPLEFT *BLACK)
This command creates an object of type FRAME, named MYFRAME within the collection named MYCLC. The frame is 80 positions width and 5 positions height. The TOP-LEFT corner of this frame will be positioned at the 2nd line and the 1st column of the format to which it will be connected (cf. cmd ADDOBJCNT). The border style will be the default one, its size will be 1 pixel and its color red. The background-color within that frame will be, in hexadecimal, BDDFFF (which is a light blue). And this frame will have a title written in black on its top-left position.
Expression can accept variable names from which values will be used at runtime to compose the whole string. Variable names must exist in the format to which this object will be connected to be processed correctly.
Nota: When used for an object type FIELDIMG, FIELDLINK or FIELDBUTTON, you can specify the reserved word &THIS. &THIS is for a generic field which will be the field(s) to which the object is connected. (These objects type could only be connected at *FIELD level)
Specifies the background color and the foreground color of an object. (foreground color is usualy associed to the text). The format used is the RGB hexadecimal codes from 000000 (black) to FFFFFF (white).
You can enter more than 16 millions different colors. However, not all of these colors will look the same on all browsers and operating systems. The only 216 colors that look the same no matter what, are the colors made out of pairs of 00, 33, 66, 99, CC and FF.
Nota: The object COLORCHOOSER of iWeb is a color picker which gives back the selected color in the hexadecimal code. Once defined you can connect the object COLORCHOOSER to a 6 length input field and build-up your colors.
Element 1: BgColor in hexadecimal
Element 2: Color in hexadecimal
Specifies the font family and size of an object.
Element 1: Family name or TTF url
URL of a True Type Font
Example you may use:
Enter a valide URL that point to a TTF document or use one of this following values:
Element 2: Size in pixel
Element 3: Size in pixel
Specifies the border of an object. Border forms the outer edge of an object. It is a decorative strip around the edge of the object where you can decide the style, the size and the color.
Element 1: Bordstyle
Element 2: Size in pixel
Element 3: Color in hexadecimal
Object Oriented Programming with iWeb. (OOP).
With the uses of SYSCMD and EVAL (or FLDEVAL) parameters you can call external interactive programs and passes display field values between programs.
Object definition comands: (Object are image, link, frame, button, style etc...)
Object connection comands: (Connect an object to format/field)
Collection comands: (Collection are object's container)
Company (as Information System) control commands and programs:
Run time programs: