Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

DataControlSetCellType Function

Overview

The DataControlSetCellType function sets the cell’s display type.

Syntax/Parameters

Syntax

int = DataControlSetCellType ( int id, int row, int column, int type );

Parameters

id

An int containing the control ID of the data control.

row

A zero-based int specifying the row for the cell.

column

A zero-based int specifying the column for the cell.

type

An int specifying the cell type.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Common error codes are as follows: ERROR_RANGE if id is an invalid control ID for the open dialog or ERROR_INVALID_HANDLE if no dialog is open. Use the GetLastError function to retrieve error information.

Remarks

By default cells are created as text type. The DataControlSetCellType allows the control type to be changed after the cell has been created.

Cell types are as follows:

  Define   Value   Comment/Type
  DS_CF_DISPLAY_TEXT   0x00000000   Text Cell (multiple, icons)
  DS_CF_DISPLAY_CHECKBOX   0x00000001   Display Check Box
  DS_CF_DISPLAY_CHECKBOX_AUTO   0x00000002   Display Check Box (auto)
  DS_CF_DISPLAY_RADIO   0x00000003   Display Radio Button
  DS_CF_DISPLAY_RADIO_AUTO   0x00000004   Display Radio Button (auto)
  DS_CF_DISPLAY_PUSHBUTTON   0x00000005   Display Push Button
  DS_CF_DISPLAY_PUSHBUTTON_TOGGLE   0x00000006   Display Push Button (auto)
  DS_CF_DISPLAY_COMBOBOX   0x00000007   Display Combo Box Select
  DS_CF_DISPLAY_COMBOBOX_EDIT   0x00000008   Display Combo Box and Edit†
  DS_CF_DISPLAY_LISTBOX   0x00000009   Display List Box
  DS_CF_DISPLAY_IMAGE   0x0000000A   Display Image/Picture†
  DS_CF_DISPLAY_V_SCROLL   0x0000000B   Display Vertical Scroll†
  DS_CF_DISPLAY_H_SCROLL   0x0000000C   Display Horizontal Scroll†
  DS_CF_DISPLAY_HTML   0x0000000D   Display HTML
  DS_CF_DISPLAY_NUMERIC   0x0000000E   Display Numeric (original in edit)
  DS_CF_DISPLAY_PROGRESS   0x0000000F   Display As Progress†

 

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic