Inhalt

Index

I_INFIELD_3

I_INFIELD_3 creates a control (e.g. text entry field or popup) in which the user of the SmartParts object can enter or select parameters; it can be used with resource-icons from Allplan with ResID.

Other than with I_INFIELD the name of the parameter is not entered as a string but as name of the parameter.

Syntax

I_INFIELD_3 name, x, y, width, height [, version_flag, picture_name, images_number, rows_number, cell_x, cell_y, image_x, image_y, resID1, expression_image1, text1,..., resIDn, expression_imagen, textn]

[I_TOOLTIP tooltiptext]

Parameter

name: name of parameter

x, y (integer, ³ 0): position of element in pixels

width, height (integer, ³0): width and height of element in pixels

version_flag: reserved, always 1

method (integer, 1 £ method £ 10): defines the type of control:

1: list view control
2: popup menu control
3: popup icon radio control
4: push icon radio control
5: pushbutton with text
6: pushbutton with bitmap
7: checkbox with text
10: togglebutton

picture_name (string): name of the bitmap file, which contains the matrix of the concatenated images. If left empty, the images are specified by expression_image(n).

images_number: number of images in the matrix

rows_number: number of rows in the matrix

cell_x, cell_y: width and height of a cell, including image and text

image_x, image_y: width and height of image

resID(n): ResID of the Allplan icon

expression_image(n): index of image (n) in the matrix. If picture_name is empty, you can specify the file name here. A mixture of file names and indices is not allowed.

text(n): text in cell (n)

I_TOOLTIP: Defines a tooltip for the interface element (optional), for description see I_TOOLTIP.

Remarks

Usable since script version 1.1 (Allplan 2012-1).



Allplan

(C) ALLPLAN GmbH

Privacy policy