wxErlang

Reference Manual

Version 2.1

Table of Contents

wxPreviewControlBar

Module

wxPreviewControlBar

Module Summary

Functions for wxPreviewControlBar class

Description

This is the default implementation of the preview control bar, a panel with buttons and a zoom control.

You can derive a new class from this and override some or all member functions to change the behaviour and appearance; or you can leave it as it is.

See: wxPreviewFrame, wxPreviewCanvas, wxPrintPreview

This class is derived (and can use functions) from: wxPanel wxWindow wxEvtHandler

wxWidgets docs: wxPreviewControlBar

new(Preview, Buttons, Parent) -> wxPreviewControlBar()

Types

Buttons = integer()
new(Preview, Buttons, Parent, Options :: [Option]) ->
       wxPreviewControlBar()

Types

Buttons = integer()
Option =
    {pos, {X :: integer(), Y :: integer()}} |
    {size, {W :: integer(), H :: integer()}} |
    {style, integer()}

Constructor.

The buttons parameter may be a combination of the following, using the bitwise 'or' operator:

destroy(This :: wxPreviewControlBar()) -> ok

Destructor.

createButtons(This) -> ok

Types

Creates buttons, according to value of the button style flags.

getPrintPreview(This) -> wxPrintPreview:wxPrintPreview()

Types

Gets the print preview object associated with the control bar.

getZoomControl(This) -> integer()

Types

Gets the current zoom setting in percent.

setZoomControl(This, Percent) -> ok

Types

Percent = integer()

Sets the zoom control.