<DialogName>.Name

<< Click to Display Table of Contents >>

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

<DialogName>.Name

 

Description

 

Allows retrieving the dialog pseudo-object variable name.

 

Syntax

 

' Get

sName = <dialogName>.Name

 

 

Returns (Get only)

 

String, pseudo-object variable name

 

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, "Who am I?: " + frmMain.Name

 

end function