PropertyItem

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > UDT predefined in UI module > PropertyList control UDTs >

PropertyItem

 

Description

 

PROPERTYITEM structure.

 

Syntax

 

Type PROPERTYITEM          

  propName  As Asciz   *   32

  sOwner    As Asciz   *   32

  curValue  As Asciiz  * 1024

  nItemType As Integer

  subtype   As Long

  cmbItems  As Asciiz  * 1024

  fptr      As DWord

  User(10)  As Long

End Type

 

Remarks

 

Fields description

Name

Meaning

propName

Unique string identifying the property. This string is also used as property description

sOwner

In case this item is a sub item, this string must match the PropName string of the owner property item

curValue

Current initial value.

nItemType

One of the following equates:

%PIT_EDITitem is a text box
%PIT_EDNUMitem is a numeric box
%PIT_COMBOitem is a combo box
%PIT_COLORitem will let user select a color
%PIT_FONTitem will let user select a font
%PIT_ROitem is read only
%PIT_FILEitem will let user select a file

subtype

Sub type. Used only if nItemType = %PIT_FONT. Use one of the following equates:

%PITS_FONTATTSitem will show font attributes
%PITS_FONTSIZEitem will show font size
%PITS_FONTCOLORitem will show font color

cmbItems

In case of %PIT_COMBO, a string listing all possible values separated by | char. Example:

"CENTER|TOP|BOTTOM|"

 

In case of %PIT_FILE, a string defining the possible files to be indicated.

Example:

"All pict (*.bmp,*.jpg,*.png)|*.BMP;*.JPG;*.PNG|" & _

"Bitmap (*.bmp)|*.BMP|" & _

"JPG    (*.JPG)|*.JPG|" & _

"PNG    (*.PNG)|*.PNG|"

fptr

Pointer to the next PropertyItem structure

 

See also

 

Examples