StatusCtrl Control

Purpose

Creates a Status bar control in the current active form, window, or dialog.

Syntax

StatusCtrl text$, id%, x, y, w, h[, style%]

text$:control text
id%:control identifier
x, y, w, h:iexp
style%:the control styles

Description

A status bar is a horizontal window at the bottom of a parent window in which an application can display various kinds of status information. The status bar can be divided into parts to display more than one type of information.

If your application uses a status bar that has only one part, you can use the _Win$()= function to perform text operations.

Example

Form frm

StatusCtrl "", 10, 0, 20, _X, 30

_Win$(Dlg(frm.hWnd, 10)) = "Ready"

Do

Sleep

Until Me Is Nothing

Remarks

This command is particular useful for a dialog box in a GLL, because a GLL doesn't support OCX controls.

With the general Control statement any control type can be created.

See Also

Control, AnimateCtrl, AutoCheckBox, AutoRadioButton, CheckBox, ComboBox, CText, Dialog, DefPushButton, EditText, GroupBox, HeaderCtrl, ListBox, ListViewCtrl, LText, ProgressCtrl, PushButton, RadioButton, RichEditCtrl, RText, ScrollBar, StatusCtrl, TabCtrl, ToolBarCtrl, TrackBarCtrl, TreeViewCtrl, UpDownCtrl

{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}