Creating a canvas subwindow
Left-click on the canvas icon on the object palette, and left-click
again on the object editor, inside a frame object. The canvas properties
editor will be shown, with the following controls.
- Name
- The name of this canvas instance.
- Description
- A textual description of the canvas.
- Class name
- The name of the C++ class that will be created for
this canvas.
- Border
- If checked on, the canvas will have a border.
- Resize strategy
- One of Fixed, Proportional and Grow.
See subwindow tiling.
- Width
- The width of the canvas.
- Height
- The width of the canvas.
- % frame
- If Resize strategy is Proportional, this value specifies
the proportion of the frame for determining the subwindow size.
- Retained canvas
- If checked on, the canvas will be retained under X.
- Pixels/unit X
- The number of pixels per logical X unit. If zero,
no horizontal scrollbar will be shown.
- Pixels/unit Y
- The number of pixels per logical Y unit. If zero,
no vertical scrollbar will be shown.
- No units X
- The number of logical units in the X dimension.
- No units Y
- The number of logical units in the Y dimension.
- Units/page X
- The number of logical units per horizontal page.
- Units/page Y
- The number of logical units per vertical page.
- Use bitmap
- If on, will load a bitmap into the canvas.
- Edit bitmap properties
- Allows the user to change the name of the bitmap,
and the method of bitmap creation on each of the X and Windows platforms.
Displaying a bitmap
Displaying a bitmap
A Windows bitmap (or GIF under X) may be displayed in the canvas. For
code generation purposes, this facility should only be used if the
wxImage library (X) or DIB library (Windows) is available at your
site.