Win Command

Purpose

Selects a window for output.

Syntax

Win n

n:iexp

Description

Win n selects window n for output, without activating it. The only parameter is a window number (0..31) as specified in OpenW, ChildW, and ParentW, or a window handle. Internally, GFA-BASIC 32 performs Set Me = Form(n)

For a form created using Form or LoadForm, you should pass the hWnd property.

Example

OpenW 1

Win_1.AutoRedraw = 1

Win_1.Caption = "#1"

OpenW 2 : TitleW 2, "#2"

Win 1   ' or Win Win_1.hWnd

Print "Hi"

Do

Sleep

Until Win_1 Is Nothing Or Win_2 Is Nothing

CloseW 1 : CloseW 2

Remarks

Win is implemented for compatibility reasons and should be replaced with Set Me =, or Output =.

See Also

Win, Me, Form, Output

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