TChDirDialog Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Dialog used to change current directory More...

#include <stddlg.h>

Inherits: TDialog

Public Members

Protected Members


Detailed Description

This is a standard dialog used to change the current working directory.

See Also: TDialog


TChDirDialog( ushort aOptions, ushort histId ) [public]

Constructor.

`aOptions' is a bitmap of the following bits:

0x00 cdNormal - a normal dialog

0x01 cdNoLoadDir - don't load directory list at startup

0x02 cdHelpButton - don't show the help button

`histId' is an arbitrary positive integer used to identify which history set to use. The library can use multiple history sets and all views with the same history identifier will share the same history set.

See Also:
THistory

ushort dataSize() [public virtual]

Returns the size of the data record of this dialog.

Default return value is 0.

See Also:
TGroup::dataSize

void getData( void *rec ) [public virtual]

Reads the data record of this dialog.

Does nothing.

See Also:
TGroup::getData

void handleEvent( TEvent& ) [public virtual]

Standard TChDirDialog event handler.

See Also:
TDialog::handleEvent

void setData( void *rec ) [public virtual]

Writes the data record of this dialog.

Does nothing.

See Also:
TGroup::setData

Boolean valid( ushort command ) [public virtual]

Checks if the command `command' is valid.

The return value is True if `command' is not cmOK. Otherwise the return value depends on path existence. The function returns True if the path exists. Otherwise an error message box will be showed with the string "Invalid directory" as standard message.

See Also:
TDialog::valid

void shutDown() [public virtual]

Releases TChDirDialog resources.

This method releases all the resources allocated by the TChDirDialog dialog. It sets pointers `dirList', `dirInput', `okButton', and `chDirButton' to 0 and then calls TDialog::shutDown().

See Also:
TGroup::shutDown

TStreamable* build() [public static]

Creates a new TChDirDialog.

Used to recover the view from a stream.

TChDirDialog( StreamableInit ) [protected]

Constructor.

Used to recover the view from a stream.

void write( opstream& os ) [protected virtual]

Used to store the view in a stream.

void* read( ipstream& is ) [protected virtual]

Used to recover the view from a stream.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc