<DialogName>.BackColor

<< Click to Display Table of Contents >>

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

<DialogName>.BackColor

 

Description

 

Sets background color of the dialog - color of the client area.

 

Syntax

 

' Set

<dialogName>.BackColor = backgroundColorRGB

 

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

backgroundColorRGB

Number

No

RGB value of the color

 

Remarks

 

Restrictions

 

Beware this does not become the default back color for controls added to the dialog.

 

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.BackColor = RGB(0, 0, 0)

  dialog show modal frmMain.Handle              ' Dialog displayed as modal

 

end function