<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Pseudo-object Methods and Properties > <DialogName>.Handle |
Description
Returns handle of the dialog represented by the dialog pseudo-object.
Syntax
' Get
maximized = <dialogName>.Handle
Returns
Number, handle.
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, "Name: " + frmMain.Name + $CRLF +
"Handle: " + frmMain.Handle + $CRLF +
"Parent Window Handle: " + frmMain.Parent + $CRLF +
"X: " + frmMain.X + $CRLF +
"Y: " + frmMain.Y + $CRLF +
"Width: " + frmMain.W + $CRLF +
"Height: " + frmMain.H + $CRLF +
"Client Width: " + frmMain.CW + $CRLF +
"Client Height: " + frmMain.CH + $CRLF +
"Maximized?: " + frmMain.IsZoomed + $CRLF
end function