wxRuby Documentation Home

Wx::DocMDIChildFrame

The DocMDIChildFrame class provides a default frame for displaying documents
on separate windows. This class can only be used for MDI child frames.

The class is part of the document/view framework supported by Widgets,
and cooperates with the View, Document,
DocManager and DocTemplate classes.

See the example application in samples/docview.

Derived from

MDIChildFrame

Frame

Window

EvtHandler

Object

Methods

See also

Document/view overview, MDIChildFrame

DocMDIChildFrame.new

DocMDIChildFrame.new(%(arg-type)Document% doc, View view, Frame parent, Integer id, String title, Point pos = DEFAULT_POSITION, Size size = DEFAULT_SIZE, Integer style = DEFAULT_FRAME_STYLE, String name = “frame”)

Constructor.

DocMDIChildFrame#get_document

Document get_document()

Returns the document associated with this frame.

DocMDIChildFrame#get_view

View get_view()

Returns the view associated with this frame.

DocMDIChildFrame#on_activate

on_activate(%(arg-type)ActivateEvent% event)

Sets the currently active view to be the frame’s view. You may need
to override (but still call) this function in order to set the keyboard
focus for your subwindow.

DocMDIChildFrame#on_close_window

on_close_window(%(arg-type)CloseEvent% event)

Closes and deletes the current view and document.

DocMDIChildFrame#set_document

set_document(%(arg-type)Document% doc)

Sets the document for this frame.

DocMDIChildFrame#set_view

set_view(%(arg-type)View% view)

Sets the view for this frame.

[This page automatically generated from the Textile source at 2023-06-09 00:45:29 +0000]