Project

General

Profile

Previous Up Next

_CRwindow
Create a window. If both x and y coordinates are nil, window is placed randomly on the screen.

ObjWin _CRwindow (
Chn _channel_
ObjWin _father_
I _x_
I _y_
I _width_
I _height_
I _flags_
S _title_
)
Parameters

_channel_
proprietary channel
_father_
father window (may be nil)
_x_
x coordinate
_y_
y coordinate
_width_
width
_height_
height
_flags_
flags :
WN_MINIMIZE window is created as minimized
WN_HIDDEN window is created as hidden
WN_MENU add a menu bar to the window
WN_MINBOX display a minimize icon on the menu bar
WN_SIZEBOX window has a resizable border
WN_NOBORDER window has no border
WN_NOCAPTION window has no title
WN_CHILDINSIDE window is a child window, without title and border
WN_DOWN display a 3d border
WN_DRAGDROP allow drag and drop inside the window
WN_MAX display a maximize icon on the menu bar
WN_TOPMOST always on top
WN_NOSCOL removes the "(Scol)" word in windows titles.
WN_CHILD similar at WN_CHILDINSIDE but allows others options
WN_CHILDMENU

allow the system menu to the child window

Example :

set win = _CRwindow _channel nil 0 0 300 200 WN_NORMAL "Test Child";
set winchild = _CRwindow _channel win 0 0 250 150 WN_CHILD|WN_CHILDMENU "Winside";
WN_DIALOG dialog window. Should not be used or by experimented developers only
WN_EX_LAYERED Should not be used
WN_GROUP Should not be used.
WN_HSCROLL Should not be used
WN_MODAL Should not be used.
WN_NOCLIPCHILDREN Should not be used
WN_NOFOCUS Should not be used.
WN_VSCROLL Should not be used
WN_NORMAL WN_MINBOX+WN_SIZEBOX+WIN_MAXBOX+WN_MENU.
_title_
title of the window
Return value

new window

See also :

_SETwindowStyle