setDialogRegion

Syntax

void setDialogRegion(region R)

Arguments

R
A visual region R of any shapes (see comments).

Return

Return nothing.

Description

Allows to reshape the dialog, by using a region. In the example code below, the dialog becomes circular.

Example

%ffp
Dialog:size=(300,300)
Dialog: Drag = Background	
ctl[CTL_CANCEL]:PUSHBUTTON,text="Cancel",pos=(55,150),size=(40,14)
ctl[CTL_OK]:PUSHBUTTON,text="OK",pos=(100,150),size=(40,14)
ctl[CTL_PREVIEW]:Modify,pos=(65,25),Size=(100,100)
	
OnFilterStart:{
	setDialogRegion(createCircularRgn(20,20,200));
	return false;	
}

//------ Any effect ....
R:255-R
G:255-G
B:255-B

Also see

refreshRgn,createRectRgn,createRoundRectRgn, createCircularRgn, createEllipticRgn, createPolyRgn

Comments

"region" correspond to a particular FM type or object that might need to be better documented or defined. You can't directly cast it to an integer, despite it behaves like an integer.

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.