# Drawing Area resource panel

The Drawing Area resource panel is a simple dialog used to set the resources specific to Drawing Area widgets.

The resources specific to a Drawing Area widget fall into three categories: Margins, Resize Policy and Callbacks.

The Margin width and height can be set to explicitly specify the size of the margin around the Drawing Area.

Resize Policy can be set to indicate how a widget is to react to ConfigureNotify events. There are three basic policies: None, Any and Grow. A Policy of None means that the Drawing Area should remain at fixed size. Grow should only expand the widget and Any should shrink or expand the widget as circumstances require.

Drawing Area specific Callbacks are of three types: Expose, Input and Resize. An Expose callback is called whenever an Expose Event is generated for the widget; the callback should repaint all or part of the contents of the Drawing Area depending on the exposed area. An Input callback can be used for managing input events within the Drawing Area; you could for example use the callback to create an interactive drawing program. The Resize callback is called whenever a ConfigureNotify event occurs as the result of the widget being resized.

You can register such callbacks within WorkShop Visual by pressing on the relevant resource button and completing the Callbacks dialog which is then displayed.

If you cannot find the resource you want to set in the Drawing Area resource panel, it may be found in the Core Resources Panel (in the Widget menu at the top of the WorkShop Visual display).

See also:

- Drawing Area widget
- Resource Panels
- Callbacks (Define Methods) dialog
- Core Resources panel
- About WorkShop Visual