<DialogName>.ForeColor

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Pseudo-object Methods and Properties >

<DialogName>.ForeColor

 

Description

 

Sets foreground color of the dialog - default text color.

 

Syntax

 

' Set

<dialogName>.ForeColor = foregroundColorRGB

 

 

Returns

 

None

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

foregroundColorRGB

Number

No

RGB value of the color

 

Remarks

 

Restrictions

 

NOT IMPLEMENTED - reserved for future use.

 

See also

 

Examples

 

uses "ui"

 

#resource "frmMain.rc"                          ' Resource file containing dialog named frmMain and button named btnClose

 

function TBMain()

  

  dialog new units, name frmMain, %HWND_DESKTOP ' Style and controls loaded from RC file,

                                                ' dialog and control have now automatic frmMain and btnClose pseudo-objects

  frmMain.ForeColor = RGB(0, 255, 0)

  dialog show modal frmMain.Handle              ' Dialog displayed as modal

 

end function