rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvPageMarginDialog Class Reference

Dialog to initialize or modify the margins of a printer. More...

#include <ilviews/printing/dialogs.h>

Inheritance diagram for IlvPageMarginDialog:
IlvDialog IlvGadgetContainer IlvContainer IlvDrawingView IlvView IlvAbstractView IlvSystemPort IlvPort

List of all members.

Public Member Functions

 IlvPageMarginDialog (IlvDisplay *display, IlvSystemView transientFor=0)
 Constructor.
IlBoolean get (IlBoolean grab=IlFalse, IlvCursor *cursor=0)
 Shows the dialog and returns the result.
void getMargins (IlFloat &left, IlFloat &right, IlFloat &top, IlFloat &bottom) const
 Gets the selected margin values.
void setMargins (IlFloat left, IlFloat right, IlFloat top, IlFloat bottom)
 Sets the default border values.

Detailed Description

Dialog to initialize or modify the margins of a printer.

Library: ilvprtdlg


Constructor & Destructor Documentation

IlvPageMarginDialog::IlvPageMarginDialog ( IlvDisplay display,
IlvSystemView  transientFor = 0 
)

Constructor.

Initializes a new instance of an IlvPageMarginDialog

Parameters:
display The connection to the display.

Member Function Documentation

IlBoolean IlvPageMarginDialog::get ( IlBoolean  grab = IlFalse,
IlvCursor cursor = 0 
)

Shows the dialog and returns the result.

Parameters:
grab A Boolean value specifying whether the dialog should be system modal, that is, grabs input events on the whole system so that, until the function returns, other applications will not be able to get any keyboard or mouse event. In this case, you can specify the cursor to be displayed in the parameter cursor. If grab is set to IlFalse (the default), the dialog is application modal, that is, the application does not receive input events in other windows.
cursor The cursor used to choose the color when the dialog is system modal.
Warning:
[note] Some operating systems, such as Windows NT and Windows 95, do not allow system modal dialogs. On these operating systems, dialogs are always application modal.
void IlvPageMarginDialog::getMargins ( IlFloat left,
IlFloat right,
IlFloat top,
IlFloat bottom 
) const

Gets the selected margin values.

Parameters:
left The left border value.
right The right border value.
top The top border value.
bottom The bottom border value.
void IlvPageMarginDialog::setMargins ( IlFloat  left,
IlFloat  right,
IlFloat  top,
IlFloat  bottom 
)

Sets the default border values.

Parameters:
left The default left border value.
right The default right border value.
top The default top border value.
bottom The default bottom border value.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.