StatusBar Ocx

Purpose

Creates an Ocx StatusBar control in the current active form, window, or dialog.

Syntax

Ocx StatusBar name [= text$] [, id] [, x, y, b, h] [, style%]

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

Description

A StatusBar control provides a window, usually at the bottom of a parent form, through which an application can display various kinds of status data. The StatusBar can be divided up into a maximum of sixteen Panel objects that are contained in a Panels collection.

A StatusBar control consists of Panel objects, each of which can contain text and/or a picture. Properties to control the appearance of individual panels include Width and Alignment (of text and pictures). Additionally, you can use one of seven values of the Style property to automatically display common data such as date, time, and keyboard states.

At run time, the Panel objects can be configured to reflect different functions, depending on the state of the application. For detailed information about the properties, events, and methods of Panel objects, see the Panel Object and Panels Collection topics.

A StatusBar control typically displays information about an object being viewed on the form, the object's components, or contextual information that relates to that object's operation.

The StatusBar Ocx control has the following properties, methods, and events.

Properties

Appearance | BorderStyle | Count | Enabled | Font | FontBold | FontItalic | FontStrikethru | FontUnderline | FontName | FontSize | Height | HelpContextID | hWnd | ImageList | Left | MouseCursor | MouseIcon | MousePointer | Name | Panel | Panels | SimpleText | Style | Tag | ToolTiptext | Top | Visible | WhatsThisHelpID | Width

Methods

Add | AddItem | Clear | Item | Refresh | Remove | SetFont | TextHeight | TextWidth

Events

Click | DblClick | MouseDown | MouseUp | MouseMove | PanelClick | PanelDblClick

Example

Ocx ImageList iml : .ImageHeight = 16 : .ImageWidth = 16

iml.Add , , CreatePicture(LoadIcon(Null, IDI_WARNING))

Ocx StatusBar sb : '.ImageList = iml // Not implemented

sb.Add , , "Scroll", 5

sb.Add , , "CAPS", 3

sb.Add , , ""

sb.Add , , "Panel..."

sb.Add , , "Warning" , , 1 // Can't show icons

Do : Sleep : Until Me Is Nothing

Remarks

The StatusBar Ocx control implicitly changes the height of the scaling mode. ScaleHeight is decremented with the height of the statusbar.

Known Issues

The ImageList property has not been implemented for this object.

See Also

Ocx, OcxOcx

Animation, CheckBox, ComboBox, Command, CommDlg, Form, Frame, Image, ImageList, Label, ListBox, ListView, MonthView, Option, ProgressBar, RichEdit, Scroll, Slider, TabStrip, TextBox, Timer, TrayIcon, TreeView, UpDown

{Created by Sjouke Hamstra; Last updated: 07/10/2017 by James Gaite}