home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pwrgu2.zip
/
POWERGU2.EXE
/
CANVAS
/
SETLUNCH
/
PUSHBTNS.HPP
< prev
next >
Wrap
Text File
|
1995-07-25
|
1KB
|
49 lines
#ifndef _PUSHBTNS_
#define _PUSHBTNS_
//************************************************************
// Canvas - Lunch dialog using an ISetCanvas
//
// Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
// All Rights Reserved.
//************************************************************
#include <ipushbut.hpp>
#include <isetcv.hpp>
#include <isysmenu.hpp>
class MyStandardPushButtons : public ISetCanvas {
public:
MyStandardPushButtons ( unsigned long id,
IWindow* parentAndOwner )
: ISetCanvas( id, parentAndOwner, parentAndOwner ),
ok( 1, this, this ),
cancel( ISystemMenu::idClose, this, this ),
help( 10, this, this )
{
(*this)
.setMargin( ISize() )
.setPackType( ISetCanvas::expanded );
// Make all buttons the same size.
ok
.enableDefault()
.setText( "OK" )
.enableTabStop()
.enableGroup();
cancel
.enableSystemCommand() // For ISystemMenu::idClose.
.setText( "Cancel" );
help
.enableHelp()
.disableMouseClickFocus()
.setText( "Help" );
}
private:
IPushButton
ok,
cancel,
help;
MyStandardPushButtons ( const MyStandardPushButtons&);
MyStandardPushButtons& operator=( const MyStandardPushButtons&);
};
#endif // _PUSHBTNS_