Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/IDE/Menu/Add-Ins.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Add-Ins
parent: Menu
grand_parent: IDE
nav_order: 9
permalink: /tB/IDE/Project/Menu/AddIns
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Debug.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Debug
parent: Menu
grand_parent: IDE
nav_order: 6
permalink: /tB/IDE/Project/Menu/Debug
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Edit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Edit
parent: Menu
grand_parent: IDE
nav_order: 2
permalink: /tB/IDE/Project/Menu/Edit
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/File.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: File
parent: Menu
grand_parent: IDE
nav_order: 1
permalink: /tB/IDE/Project/Menu/File
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Format.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Format
parent: Menu
grand_parent: IDE
nav_order: 5
permalink: /tB/IDE/Project/Menu/Format
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Help.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Help
parent: Menu
grand_parent: IDE
nav_order: 11
permalink: /tB/IDE/Project/Menu/Help
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Project.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Project
parent: Menu
grand_parent: IDE
nav_order: 4
permalink: /tB/IDE/Project/Menu/Project
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Run.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Run
parent: Menu
grand_parent: IDE
nav_order: 7
permalink: /tB/IDE/Project/Menu/Run
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Tools.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Tools
parent: Menu
grand_parent: IDE
nav_order: 8
permalink: /tB/IDE/Project/Menu/Tools
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/View.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: View
parent: Menu
grand_parent: IDE
nav_order: 3
permalink: /tB/IDE/Project/Menu/View
---
Expand Down
1 change: 1 addition & 0 deletions docs/IDE/Menu/Window.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Window
parent: Menu
grand_parent: IDE
nav_order: 10
permalink: /tB/IDE/Project/Menu/Window
---
Expand Down
28 changes: 22 additions & 6 deletions docs/Reference/VB/Form/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dlgOptions.Show vbModal, Me ' modal, owned by the calling form

A **Form** is itself a graphics surface — code can draw lines, shapes, and text directly on it. The coordinate system is governed by [**ScaleMode**](#scalemode) (default **vbTwips** — the classic VB6 behaviour) and the [**ScaleLeft**](#scaleleft) / [**ScaleTop**](#scaletop) / [**ScaleWidth**](#scalewidth) / [**ScaleHeight**](#scaleheight) properties, which together describe the form's logical drawing rectangle. Setting **ScaleMode** to **vbUser** lets the four **Scale\*** properties define an arbitrary rectangle; the [**Scale**](#scale) method does this in a single call.

The drawing primitives are [**Cls**](#cls), [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and the **Print** statement (`Form1.Print "Hello"`) — all use [**ForeColor**](#forecolor), [**FillColor**](#fillcolor), [**FillStyle**](#fillstyle), [**DrawWidth**](#drawwidth), [**DrawMode**](#drawmode), and [**DrawStyle**](#drawstyle) for their pen and fill, and the form's [**Font**](#font) for text. The current pen position is tracked by [**CurrentX**](#currentx) and [**CurrentY**](#currenty); [**TextWidth**](#textwidth) and [**TextHeight**](#textheight) measure a string in the current font. [**ScaleX**](#scalex) and [**ScaleY**](#scaley) convert single coordinates between scale modes.
The drawing primitives are [**Cls**](#cls), [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and the [**Print**](#print) statement (`Form1.Print "Hello"`) — all use [**ForeColor**](#forecolor), [**FillColor**](#fillcolor), [**FillStyle**](#fillstyle), [**DrawWidth**](#drawwidth), [**DrawMode**](#drawmode), and [**DrawStyle**](#drawstyle) for their pen and fill, and the form's [**Font**](#font) for text. The current pen position is tracked by [**CurrentX**](#currentx) and [**CurrentY**](#currenty); [**TextWidth**](#textwidth) and [**TextHeight**](#textheight) measure a string in the current font. [**ScaleX**](#scalex) and [**ScaleY**](#scaley) convert single coordinates between scale modes.

[**AutoRedraw**](#autoredraw) controls whether drawn output persists across paints: when **False** (default), the [**Paint**](#paint) event must redraw on every invalidation; when **True**, the form keeps an off-screen buffer that survives invalidations and the **Paint** event is suppressed. Setting [**Picture**](#picture) puts a bitmap behind the drawing layer; [**Image**](#image) returns the rendered combined surface as a **StdPicture**.

Expand Down Expand Up @@ -127,7 +127,7 @@ Determines how the control's border is drawn by the OS. A member of [**Appearanc

Whether drawing performed on the form persists across invalidations. **Boolean**, default **False**.

When **False**, drawing primitives — [**Cls**](#cls), [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and **Print** — paint directly to the screen and the form must redraw them in its [**Paint**](#paint) event whenever the affected area is invalidated. When **True**, the form keeps an off-screen bitmap, drawing primitives paint into it (and immediately to the screen), the bitmap survives invalidations, and the **Paint** event is suppressed. Reading [**Image**](#image) returns this bitmap.
When **False**, drawing primitives — [**Cls**](#cls), [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and [**Print**](#print) — paint directly to the screen and the form must redraw them in its [**Paint**](#paint) event whenever the affected area is invalidated. When **True**, the form keeps an off-screen bitmap, drawing primitives paint into it (and immediately to the screen), the bitmap survives invalidations, and the **Paint** event is suppressed. Reading [**Image**](#image) returns this bitmap.

### BackColor
{: .no_toc }
Expand Down Expand Up @@ -183,7 +183,7 @@ A read-only [**ControlTypeConstants**](../../VBRUN/Constants/ControlTypeConstant
### CurrentX
{: .no_toc }

The horizontal pen position, in [**ScaleMode**](#scalemode) units, used by drawing primitives that omit a starting coordinate (for example, **Print** and the rectangle form of [**Line**](#line)). **Double**.
The horizontal pen position, in [**ScaleMode**](#scalemode) units, used by drawing primitives that omit a starting coordinate (for example, [**Print**](#print) and the rectangle form of [**Line**](#line)). **Double**.

### CurrentY
{: .no_toc }
Expand Down Expand Up @@ -233,7 +233,7 @@ The fill pattern for closed shapes. A member of [**FillStyleConstants**](../../V
### Font
{: .no_toc }

The **StdFont** used by the **Print** statement and other text drawing on this form. The convenience properties **FontName**, **FontSize**, **FontBold**, **FontItalic**, **FontStrikethru**, and **FontUnderline** read or write the corresponding members of this object.
The **StdFont** used by the [**Print**](#print) statement and other text drawing on this form. The convenience properties **FontName**, **FontSize**, **FontBold**, **FontItalic**, **FontStrikethru**, and **FontUnderline** read or write the corresponding members of this object.

### FontTransparent
{: .no_toc }
Expand All @@ -243,7 +243,7 @@ When **True** (default), text drawn on the form has a transparent background, le
### ForeColor
{: .no_toc }

The pen colour used by [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), and the text drawn by **Print**. **OLE_COLOR**.
The pen colour used by [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), and the text drawn by [**Print**](#print). **OLE_COLOR**.

### hDC
{: .no_toc }
Expand Down Expand Up @@ -513,7 +513,7 @@ Syntax: *object*.**Circle** [ **Step** ] ( *X*, *Y* ), *Radius* [, [ *Color* ] [
### Cls
{: .no_toc }

Clears any drawing performed by [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and **Print**, repaints [**BackColor**](#backcolor), and resets [**CurrentX**](#currentx) / [**CurrentY**](#currenty) to `0`. Does not affect the [**Picture**](#picture) backdrop or child controls.
Clears any drawing performed by [**Circle**](#circle), [**Line**](#line), [**PSet**](#pset), [**PaintPicture**](#paintpicture), and [**Print**](#print), repaints [**BackColor**](#backcolor), and resets [**CurrentX**](#currentx) / [**CurrentY**](#currenty) to `0`. Does not affect the [**Picture**](#picture) backdrop or child controls.

Syntax: *object*.**Cls**

Expand Down Expand Up @@ -625,6 +625,22 @@ Syntax: *object*.**PopUpMenu** *Menu* [, *Flags* [, *X* [, *Y* [, *DefaultMenu*

Syntax: *object*.**Point**( *X*, *Y* )

### Print
{: .no_toc }

Writes text to the form's drawing surface using [**Font**](#font), starting at [**CurrentX**](#currentx) / [**CurrentY**](#currenty) and advancing them as it goes. Dispatched through the VB6 **Print** statement so multiple expressions can be separated by `;` (no spacing) or `,` (tab to the next print zone). **Spc(n)** inserts *n* spaces and **Tab(n)** moves to print column *n*. Output honours [**Font**](#font), [**ForeColor**](#forecolor), and [**FontTransparent**](#fonttransparent), and — when [**AutoRedraw**](#autoredraw) is **True** — is recorded into the persistent off-screen bitmap so it survives invalidations.

Syntax: *object*.**Print** \[ *expressionlist* ] \[ **;** \| **,** ]

A trailing `;` or `,` suppresses the newline so the next **Print** call continues on the same line; without a trailing separator, the pen advances to the start of the next line.

```tb
Me.CurrentX = 10 : Me.CurrentY = 10
Me.Print "Name: "; sName, "Age: "; nAge ' two fields, tab-separated
Me.Print ' blank line
Me.Print "Total: " & Format$(Total, "0.00")
```

### PrintForm
{: .no_toc }

Expand Down
6 changes: 3 additions & 3 deletions docs/Reference/VB/Frame/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ The mouse cursor shown when the pointer is over the frame (and not over a child
### MultiFramePosition
{: .no_toc }

When the frame is hosted inside a **MultiFrame** layout container, the **Long** zero-based position of this frame in the **MultiFrame**'s ordered sequence. Default `-1` (no position assigned). Outside of a **MultiFrame** the value is ignored.
When the frame is hosted inside a [**MultiFrame**](../MultiFrame) layout container, the **Long** zero-based position of this frame in the **MultiFrame**'s ordered sequence. Default `-1` (no position assigned). Outside of a **MultiFrame** the value is ignored.

### MultiFrameSize
{: .no_toc }

When the frame is hosted inside a **MultiFrame**, its size as a percentage of the **MultiFrame**'s usable extent (`0` for "share evenly"). **Double**. Outside of a **MultiFrame** the value is ignored.
When the frame is hosted inside a [**MultiFrame**](../MultiFrame), its size as a percentage of the **MultiFrame**'s usable extent (`0` for "share evenly"). **Double**. Outside of a **MultiFrame** the value is ignored.

### Name
{: .no_toc }
Expand All @@ -229,7 +229,7 @@ The frame's opacity as a percentage (0–100, default 100). Values outside the r
### OriginalMultiFramePosition
{: .no_toc }

The frame's [**MultiFramePosition**](#multiframeposition) at the moment the **MultiFrame** was last reflowed. **Long**, default `-1`. Used internally by the **MultiFrame** layout engine to compact positions after a frame is moved; not normally written from user code.
The frame's [**MultiFramePosition**](#multiframeposition) at the moment the [**MultiFrame**](../MultiFrame) was last reflowed. **Long**, default `-1`. Used internally by the **MultiFrame** layout engine to compact positions after a frame is moved; not normally written from user code.

### Parent
{: .no_toc }
Expand Down
Loading