Skip to content

ClientHeight

Narta Xaymar Dirks edited this page Oct 31, 2026 · 7 revisions
BlitzPlus

ClientHeight

ClientHeight:Int32 group:Int32
Parameter Mode Type Default Description
group In Int32 required Handle of a window, panel, tabber, canvas or the desktop. Other gadgets can give meaningless numbers.

Returns: The usable height in pixels.

Description

Gives the height of the area of a group that gadgets can use, which is the inside of the window without its frame, title, menu bar and status bar. For Desktop it is the height of the screen, so it tells you the resolution.

Differences

  • The desktop is as big as the primary display (all of it, not only the area free of the task bar), where there is a display to ask. A window of the operating system has the frame and the title bar of the system, which are not part of its client area; a menu bar or a status bar is.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Client", 10, 10, 200, 150, Desktop(), 15)
Notify "Window: " + ClientWidth(win) + " x " + ClientHeight(win) + Chr$(13) + "Desktop: " + ClientWidth(Desktop()) + " x " + ClientHeight(Desktop())

Related Commands

ActivateWindow, ActiveWindow, ClientWidth, CreateWindow

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally