BBGadTools
=BBOpenWindow(X,Y,Width,Height,Title$)
Description:
This Command opens a new Window. All GadgetData of the previously Window will buffering
in a stack. The new Window will begin with a cleared Gadget-List. All BBGadTools-Commands
using now this new Window. (e.g. BBWinPosX(), BBWinPosY() and so on)
At the V1.3 Returns this Command the Window-Id. You can now get the Window-Id directly
if a Window is Open. So you must not call longer "=BBWinId()" to check the Windows-Id.
If you will you can use the Command like in previously Versions of the BBGadTools.
Parameter:
X = X-Position of the Window.
Y = Y-Position of the Window
Width = Width of the Window
Height = Height of the Window
Title$ = TitleName for the Window
Example:
BBScreenMode(2) ; Open a Screen in 800x600
BBScreenBar("MyTitleName")
ID=BBOpenWindow(80,80,400,200,"MyWindow") ; Here directly with a variable to get the Id.
Repeat:Until KeyDown(1) ; Wait for [ESC]!
BBCloseWindow()
Include "C:\BBGadTools.bb"
Back to the Menu