<DialogName>.Title

<< Click to Display Table of Contents >>

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

<DialogName>.Title

 

Description

 

Allows assigning/retrieving the title text for a dialog pseudo-object variable.

 

Syntax

 

' Set

<dialogName>.Title = stringValue

 

' Get

sText = <dialogName>.Title

 

 

Returns (Get only)

 

String, text of the dialog title

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

stringValue

String

No

Text to be assigned to the dialog title

 

Remarks

 

Restrictions

 

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

 

  dialog show modal frmMain.Handle              ' Dialog displayed as modal

 

end function

 

' Event handler

callback function frmMain.OnInit()

 

  msgbox frmMain.Handle, "Title Text: " + frmMain.Title

 

end function