Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(SelectWindowEx)

Mnemonic: (SelectWindowEx=handle$,flags)
Discussion: This mnemonic selects an extended window, using the following parameters:

Parameter Description
handle$ This 4-byte string value is the handle that was assigned to this window when it was created.
flags This numeric value determines whether the selected window is activated or not:

Value Meaning
0 The window is not activated.
1 This window is activated.

Each extended window is identified by a 4-byte string known as a window handle. The handle value is assigned by the system and returned to the Internet Basic program via an INPUT statement following the (CreateWindowEx).

An extended window is deleted via (DeleteWindowEx) mnemonic.

See the WinDemo.ibs program (available at www.signature.net/download/demos) for examples of extended windows.

Note: If you write a program that displays more than one extended window at a time, your program may need some way to distinguish which window was active at the time that data was input. The STS function returns the handle of the window that generated the input. This 4-byte value starts in position 11, as shown here:
Length 4 & Local Handle$
.
Handle$ = SUB(STS(0),11,4)
History: This feature is supported in Comet2002 Build 306 and higher.
Example: The following example creates two extended windows, then uses the (SelectWindowEx) mnemonic to select between the two.
Length 4 & Local Handle1$,Handle2$
.
Print (CreateWindowEx=0,0,35,15,68,0,"Window 1")
Input Handle1$

Print (CreateWindowEx=0,40,20,10,68,0,"Window 2")
Input Handle2$
.
Print (SelectWindowEx=Handle1$,1)  ! select window 1
Print "This text goes in window 1"
.
Print (SelectWindowEx=Handle2$,1)  ! select window 2
Print "This text goes in window 2"