Skip to content

ClientHeight

Claude edited this page Oct 27, 2026 · 7 revisions
BlitzPlus

ClientHeight

Command Syntax

ClientHeight:Int32 group:Int32

Parameters

Parameter Type Default Description
group 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. The windows are still drawn inside the window of your program, which has the size given to Graphics.

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


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

Clone this wiki locally