WideStudio/MWT Class Reference

WideStudio/MWT Home
Up to


Class Name

WSCdirTree

Specification of methods



setSelectedDirName Function Description

Form
long setSelectedDirName(char* dirname,WSCbool opened = True)
Function
Specify the selected directory
Description
When opened is True, the specified directory is extracted.
Parameters
(in)char* dirname Directory name
(in)WSCbool opened Display status
Return value
WS_NO_ERR= Normal, otherwise error
Notice
Samples
#include <WSCdirTree.h>
void sample_proc(WSCbase* object){
  WSCdirTree* dirtree = (WSCdirTree*)object->cast("WSCdirTree");
  if (dirtree == NULL){
    return;
  }
  dirtree->setSelectedDirName("/home/users");
}



getSelectedDirName Function Description

Form
char* getSelectedDirName()
Function
Obtain a directory that has selected status.
Description
Obtain a directory currently selected.
Parameters
None.
Return value
Directory name
Notice
Do not release the returned directory name
Samples
#include <WSCdirTree.h>
void sample_proc(WSCbase* object){
  WSCdirTree* dirtree = (WSCdirTree*)object->cast("WSCdirTree");
  if (dirtree == NULL){
    return;
  }
  char* selected_dir = dirtree->getSelectedDirName();
}


Document Release 3.90

For use with WideStudio/MWT Release 3.90, Summer 2005


WideStudio/MWT Home | Up to

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: June 25, 2005