Get_Max_Width

variable <- Get_Max_Width

 

Get_Max_Width is a function that returns the maximum width, in pixels, with which a RaptorGraph window can be opened. It is essentially the width of the entire screen minus any space reserved for Windows.

 

A graphics window need NOT be open when you call Get_Max_Width. In fact, Get_Max_Width will normally be called just before Open_Graph_Window.

 

Because Get_Max_Width returns a value, calls to Get_Max_Width are normally done in Assignment boxes, NOT as procedure calls in Call symbols.

 

One way to open the largest possible Raptorgraph window is to use an Open_Graph_Window Call with Get_Max_Width and Get_Max_Height as arguments:

 

Open_Graph_Window(Get_Max_Width,Get_Max_Height)

 

Get_Window_Width and Get_Window_Height can then be called to determine how big the resulting window is.

 

Below is an example of Get_Max_Width being used in an assignment: