Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter NineDialog Functions (continued)

DataControlGetCellType Function

Overview

The DataControlGetCellType function gets the cell’s display type.

Syntax/Parameters

Syntax

int = DataControlGetCellType ( int id, int row, int column );

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.

Return Value

An int as the type code 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.

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