Help Contents / GUI programming / Frames / FrameSetShape

FrameSetShape aframe ashape

Command to set the shape of the Frame aframe to the shape ashape. 

ashape must be a list of positions. 

A position in this context is a list of two integer numbers representing x and y. [0 0] is at the top left position of the client area. 

Example: 

	f=(Frame [][MyFrame] 
		wxdefault_frame_style+wxFRAME_SHAPED 
		[100 200][200 100]) 
	b=(Button f [Close][ern "f  GC] 0 [-1 -1][200 100]) 
	FrameSetClientSize f 200 100 
	FrameSetShape f [[0 0][200 0][100 100]] 


previous: FrameSetFontWeight	next: FrameSetSizer
