Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | window.ID.create SEARCH    

  Functions
window.autoShape.apply
window.autoShape.end
window.autoShape.start
window.cancelClose
window.count
window.create
window.eventAuthor
window.exists
window.fadeIn
window.fadeOut
window.fromPoint
window.group.count
window.group.getList
window.ID.appBar.enable
window.ID.appBar.refreshPos
window.ID.appBar.setPos
window.ID.autoClose
window.ID.border.bottom
window.ID.border.left
window.ID.border.right
window.ID.border.top
window.ID.borderIcon
window.ID.borderStyle
window.ID.bringToFront
window.ID.cancelClose
window.ID.canGoOut
window.ID.clientArea
window.ID.clientHeight
window.ID.clientWidth
window.ID.close
window.ID.create
window.ID.enabled
window.ID.formStyle
window.ID.getParentId
window.ID.group.get
window.ID.group.set
window.ID.handle
window.ID.height
window.ID.icon
window.ID.image.load
window.ID.left
window.ID.monitor.height
window.ID.monitor.index
window.ID.monitor.left
window.ID.monitor.top
window.ID.monitor.width
window.ID.movable
window.ID.parent
window.ID.parent.height
window.ID.parent.left
window.ID.parent.top
window.ID.parent.width
window.ID.pos.now
window.ID.pos.rel
window.ID.repaint
window.ID.sendToBack
window.ID.setFocus
window.ID.setForegroundWindow
window.ID.shape.elliptic
window.ID.shape.from.ID
window.ID.shape.load
window.ID.shape.polygon
window.ID.shape.rect
window.ID.state
window.ID.statusIcon.hide
window.ID.statusIcon.show
window.ID.stayOnTop
window.ID.title
window.ID.tooltip
window.ID.top
window.ID.transparency
window.ID.visible
window.ID.width
window.ID.zInsertAfter
window.ID.zOrder

  Events
event.appBar:posChanged
event.minimize
event.resize
event.restore
event.statusIcon:mouse:dblClick
event.statusIcon:mouse:down
event.statusIcon:mouse:move
event.statusIcon:mouse:right:dblClick
event.statusIcon:mouse:right:down
event.statusIcon:mouse:right:up
event.statusIcon:mouse:up
event.window:close
event.window:gotFocus
event.window:lostFocus
event.window:move

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
window.ID.create

Language: MioScript
Product: MioFactory


Syntax

window.ID.create(show, groupName, movable, stayOnTop, escapeClose, rightClickClose, canGoOut)


Parameters

BOOLshowOptional.
Default is true.
Set to true if the window should be shown immediately.
STRINGgroupNameOptional.
Default is null.
Name of the group.
When a group name is set, the events raised for this window have their name concatenated with the name of the group.
For example, if the group of a window is set to TOOLS, the event window:move becomes window:move:TOOLS.
KEYWORDmovableOptional.
Default is true.
true: The user can move the window by dragging it with the mouse.
false: The window cannot be moved.
XONLY: The user can move the window horizontally - vertical position is fixed.
YONLY: The user can move the window vertically - horizontal position is fixed.

Info: The window cannot be moved if the mouse is over the web browser object even if this parameter is set to true.
BOOLstayOnTopOptional.
Default is true.
If set to true, the window stays on top of the other windows, except for those who have the same attribute. In that case, the window who have the focus is in front of the others.
BOOLescapeCloseOptional.
Default is true.
If set to true, the window can be closed with the ESC key when the window has the focus.
BOOLrightClickCloseOptional.
Default is true.
If set to true, the user can close the window with a right click.
BOOLcanGoOutOptional.
Default is false.
If this parameter is set to true, the window can be moved outside of the area of the window (the area of the new window outside of the parent window is not visible).


Return value

Window ID or null if failure.



Description

This function creates a new window in the window specified by ID.

To create a floating window: window.create.

The function returns a window ID that can be used with various functions: draw..., window... or mouse....

It is possible to create 255 windows.




MioScript Sample Code

// Shows the main window in red, and a second window in blue.
event.load
    window.main.pos.now(100,100,200,200)
    draw.main.rect(0,0,200,200,num.rgb(255,0,0))
    draw.main.paint()
    
    &WID= window.main.create()
    window.&WID.pos.now(20,20,160,160)
    draw.&WID.rect(0,0,200,200,num.rgb(0,0,255))
event.end