<DialogName>.IsZoomed

<< Click to Display Table of Contents >>

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

<DialogName>.IsZoomed

 

Description

 

Returns non-zero value in case the dialog is maximized.

 

Syntax

 

' Get

maximized = <dialogName>.IsZoomed

 

 

Returns

 

Number, non-zero if maximized

 

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