Wide Studio Application Builder User's Guide

Wide Studio Home
Up to


How to appoint class base for a new class



Default base class

By default,the class of top window of class application window becomes a base class for a new class. The application builder generates the following c++ source codes. [classwin] is name of the class application window.
  • [classwin].h
    A public header file for the class. You can add new members to this.
  • [classwin].cpp
    A public source file for the class. You can add new codes to this.
  • [classwin]P.h
    A private header file for the class. You do not edit it.
  • [classwin]P.cpp
    A private source file for the class. You do not edit it.



[Definition of class application window]

A sample "class1" of class application window in the figure derive from WSCwork window whick is a top window of it and becomes a c++ class "class1". Top window is used as base class by default,and you can appoint other base class with [Attributes] section on the inspector.

How to appoint a base class for a new class

For exsample, a part of class application window, "cla_form000" a form, I appoint it as a base class here. By default,it use top window as base class,but if some instance on the class application window is appointed, it becomes a base class.
(Notice) It is required that re-generating source code, if you change the base class. Delete the following file even if edited. ˇÎclasswinˇĎis name of class application window.
  • [classwin].h
  • [classwin].cpp



[Appointment of base class]

In this case, a new class:"class1" is created from the instance:"cla_form000" which is appointed as base class. So, the class:"class1" inherits WSCform. If there are children on the instance for the base class, they are included together in the new class.
Document Release 1.3

For Use with Wide Studio Release 1.3, Summer 2001


Wide Stuido Home | Up to

Copyright(C) T. Hirabayashi, 2000-2001 Last modified: August 20, 2001