Skip to content

ClientWidth

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

ClientWidth

Command Syntax

ClientWidth: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 width in pixels.

Description

Gives the width of the area of a group that gadgets can use, without frame or scroll bars. For Desktop it is the width of the primary display, including the area under the task bar and start menu.

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)
; A gadget as wide as the inside of its window fits exactly.
CreateButton "Wide", 0, 0, ClientWidth(win), 24, win
Repeat
Until WaitEvent() = $803

Related Commands

ActiveWindow, ClientHeight, CreateWindow, Desktop

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally