Graph

HC GUI programming Graphs Graph
Graphs GraphDestroy

Graph parent
(Graph parent style pos size name)


Operation which outputs a new Graph, a Logo drawing area.

parent can be a Frame or a Graph.

style can be a combination of the standard Window Styles, but probably will be just wxFULL_REPAINT_ON_RESIZE, which is the default value and will also be set if style is the empty list [].

pos is a list of two integer numbers representing x and y position.

size is a list of two integer numbers representing width and height.

Like all window or control positions and sizes the value -1 for a coordinate means that wxWidgets will use the default value. This is especially useful when you use sizers, so you mostly don't need to figure out the coordinates yourself, for i.e. Buttons or other controls.

name is the internal name of the window, it's mostly unused.

Output is the created Graph.

Example:

f=(Frame [][MyFrame]
	wxResize_Border+wxCaption+wxSystem_Menu+wxClose_Box
	+wxFull_Repaint_on_Resize+wxStay_on_Top
	;wxDefault_Frame_Style+wxStay_on_Top)
	[100 100][400 300])
FrameSetClientSize f 400 300
g=(Graph f
	wxDefault_Frame_Style+wxFull_Repaint_on_Resize+wxStay_on_Top
	[0 0][400 300][Graph])

Examples:

References:

Graphs GraphDestroy