Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | window.ID.transparency 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.transparency

Language: MioScript
Product: MioFactory


Syntax

window.ID.transparency(maskColor, opacity, invisibleMouse)


Parameters

COLORmaskColorOptional.
If a color is set, the pixels of this color will be invisible.
INTopacityOptional.
Level of opacity from 0 to 255.
0 is invisible, 255 is opaque.
BOOLinvisibleMouseOptional.
Default value is false.
If set to true, the window is invisible to the mouse, so the mouse clicks over the window are received by the applications behind the window.


Return value

No value is returned.


Description

Set the transparency of the specified window.

When a window is set to be transparent, the part behind the window remains visible.

When the parameter invisibleMouse is set to true and when the user click on the window, the mouse click is ignored by the window and is received by the application behind the window.

To remove any transparency to a window, call the function with no parameter, as follow:

window.main.transparency()



Important: This feature is only available with Windows 2000, XP or later. With older versions of Windows, this function is ignored.




MioScript Sample Code

// An elliptic window fading in and out

event.load
    draw.main.ellipse(0,0,150,150, num.rgb(100,200,255))
    draw.main.ellipse(0,0,150,150, num.rgb(50,100,150),10)
    window.main.shape.elliptic(0,0,150,150)
    window.main.pos.now(100,100,150,150)
    draw.main.paint()

    &alpha = 100
    &alphaDir = 5

    doEvent.loop()
event.end

event.loop
    &alpha = num.compute(&alphaDir + &alpha)
    if(&alpha < 100 || &alpha > 240)
        &alphaDir = num.compute(0 - &alphaDir)
    if.end
    window.main.transparency(null, &alpha)
    doEvent.loop(25)
event.end