Derived from: BWindow
Declared in: simpleWindow.h
Library: libBeGUI.so
The SimpleWindow Class is a BWindow wrapper class. It knows nothing about LayoutMatrices and LayoutMatrixItems, so is only suited to very simple window creation. It recalls it's past position, so it will return to where you last put it.
This is the constructor. The parameter paramBound, lets the window know where to put itself on screen. This value is stored by the preference routine (see Preferences) and you ask preferences for this value and pass it in as a parameter.
The parameter paramWindowTitle is the title which will display in the window's title tab. The window will try it's best to size itself to accommodate the length of the title, but will never exceed the maximum width of the screen.
The parameter paramNamePrefFrame is used by preferences to identify this window's stored data. It must be unique across all the application's windows.
The parameter paramPreferenceSet is used to declare in which preference file this window's frame will be stored. If this is an internal BeGUI library preference window, you pass in the libBeGUI.so PreferenceSet, otherwise you pass in the application's PreferenceSet.
The parameter paramHasMenu defaults to true, as most windows should have at least an about menu item. In rare situations the developer might want a window with no menu. In these cases the internal code must know not to take menu height into account. Set this parameter to false if you attach no menu to the window.
The parameter paramShowInInit defaults to true, as most windows should have all design work completed during the Initialize() method. In some situations the developer might want to modify a window off-screen before it is Show()ed. Set this parameter to false if you need to adjust the window before Show()ing it.
This is the destructor. It just deletes the scroll view name.
This is the work horse of the class construction. It attaches it's menu (if it has one) and stores it's height. It then checks the stored bool to see if it should Show() itself.
This overrides the normal BWindow version and calls it inherited version if everything is normal. The window's preferred size and location are stored.
This overrides the normal BWindow version and calls it inherited version. You will also override this version in any derived class to get that window's specific messages, calling this version in your derived class for any messages you do not handle.
Overview
[method summary]
SimpleWindow()
SimpleWindow(BRect paramBound,
const char * paramWindowTitle,
const char * paramNamePrefFrame,
PreferenceSet * paramPreferenceSet,
bool paramHasMenu = true,
bool paramShowInInit = true);
~SimpleWindow()
~SimpleWindow();
Initialize()
bool Initialize(void);
QuitRequested()
bool QuitRequested(void);
MessageReceived()
void MessageReceived(BMessage * paramMessage);
for version 1.4.2
Copyright © 1998-1999 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified March 17, 1999.