Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv25748/include/smartwin/widgets
Modified Files:
WidgetButton.h
Log Message:
Add way to specify the control id, which is needed for IDOK and IDCANCEL buttons in Dialogs: void setControlId( int id )
Index: WidgetButton.h
===================================================================
RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetButton.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- WidgetButton.h 7 Dec 2006 13:43:26 -0000 1.28
+++ WidgetButton.h 18 Mar 2007 13:22:57 -0000 1.29
@@ -115,6 +115,11 @@
/// Doesn't fill any values
Seed( DontInitialize )
{}
+
+ /// Needed for IDOK and IDCANCEL buttons in Dialogs.
+ void setControlId( int id ) {
+ menuHandle= id;
+ }
};
/// Default values for creation
|