home *** CD-ROM | disk | FTP | other *** search
- Save Format v1.3
- @begin Form "HotKeyDialog"
- Exported 0;
-
- @begin Object "WDialog"
- WSCaption 1;
- WSDlgBorder 1;
- WSSysMenu 1;
- WSSystemMenu 1;
- WSMinimizeBox 1;
- WSMaximizeBox 1;
- WSGroup 1;
- WSTabStop 1;
- WSVisible 1;
- Icon "WIcon( WResourceID( ICON_01 ) )";
- FormPositionType "Centered";
- FormAbsTop "268";
- FormAbsLeft "25";
- FDXStructName "HotKeyDialogFDXStruct";
- Font "8.MS Sans Serif";
- Text "Hot Key Dialog";
- @begin Event "Create"
- GencodeSrcLine 154;
- FunctionName "HotKeyDialog::HotKeyDialog_Create";
- @end;
- @begin UserFunction "HotKeyDialog()"
- Compiler 1;
- GencodeSrcLine 174;
- FunctionName "HotKeyDialog::HotKeyDialog()";
- @end;
- @begin UserFunction "~HotKeyDialog()"
- Compiler 1;
- GencodeSrcLine 178;
- FunctionName "HotKeyDialog::~HotKeyDialog()";
- @end;
- ResID 102;
- DesignName HotKeyDialog;
- TabIndex 0;
- DesignRect 216,107,163,67;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSMinimizeBox 1;
- WSGroup 1;
- WSVisible 1;
- AutoSize "1";
- Text "Hot key:";
- ResID 101;
- DesignName label_1;
- TabIndex 0;
- DesignRect 10,10,27,8;
- @end;
-
- @begin Object "WHotKey"
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSExStaticEdge 1;
- WSVisible 1;
- ResID 102;
- DesignName hotkey_1;
- TabIndex 1;
- DesignRect 10,20,70,13;
- @end;
-
- @begin Object "WCommandButton"
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- Default "1";
- Text "OK";
- @begin Event "Click"
- GencodeSrcLine 182;
- FunctionName "HotKeyDialog::cb_OK_Click";
- @end;
- ResID 103;
- DesignName cb_OK;
- TabIndex 2;
- DesignRect 105,10,45,14;
- @end;
-
- @begin Object "WCommandButton"
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- Cancel "1";
- Text "Cancel";
- @begin Event "Click"
- GencodeSrcLine 205;
- FunctionName "HotKeyDialog::cb_Cancel_Click";
- @end;
- ResID 104;
- DesignName cb_Cancel;
- TabIndex 3;
- DesignRect 105,30,45,14;
- @end;
-
- @begin HPPPrefixBlock
- @begin-code HPPPrefix
-
- // Declarations added here will be included at the top of the .HPP file
-
- @end-code;
- GencodeSrcLine 10;
- @end;
-
- @begin CPPPrefixBlock
- @begin-code CPPPrefix
-
- // Code added here will be included at the top of the .CPP file
-
- // Include definitions for resources.
- #include "WRes.h"
-
- @end-code;
- GencodeSrcLine 10;
- @end;
-
- @begin ClassContentsBlock
- @begin-code ClassContents
-
- public:
- // add your public instance data here
- private:
- // add your private instance data here
- protected:
- // add your protected instance data here
-
- @end-code;
- GencodeSrcLine 49;
- @end;
-
- @begin-code GeneratedClassContents
-
- HotKeyDialog();
- ~HotKeyDialog();
-
- @end-code;
-
- @begin-code Code "HotKeyDialog::HotKeyDialog()"
-
- HotKeyDialog::HotKeyDialog()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "HotKeyDialog::~HotKeyDialog()"
-
- HotKeyDialog::~HotKeyDialog()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "HotKeyDialog::HotKeyDialog_Create"
-
- WBool HotKeyDialog::HotKeyDialog_Create(
- WObject * source,
- WCreateEventData * event )
- {
-
- void * userData;
- WHotKeyInfo hotKey;
-
- // get the user data pointer (contains hot key info
- userData = GetUserData();
-
- // assign the hot key stored in the user data
- hotKey = *(WHotKeyInfo *)userData;
-
- // set the hotkey for the hotkey control
- hotkey_1->SetHotKey( hotKey );
-
-
- return FALSE;
- }
-
- @end-code;
-
- @begin-code Code "HotKeyDialog::cb_OK_Click"
-
- WBool HotKeyDialog::cb_OK_Click(
- WObject * source,
- WEventData * event )
- {
- void *userData;
- WHotKeyInfo hotKey;
- WHotKeyInfo *hotKeyPointer;
-
- // get the currently selected HotKey
- hotKey = hotkey_1->GetHotKey();
-
- // get the user data pointer
- userData = GetUserData();
-
- // assign a new value to the user data
- hotKeyPointer = (WHotKeyInfo *)userData;
- *hotKeyPointer = hotKey;
-
- // dismiss this dialog
- Dismiss( 1 );
-
- return FALSE;
- }
-
- @end-code;
-
- @begin-code Code "HotKeyDialog::cb_Cancel_Click"
-
- WBool HotKeyDialog::cb_Cancel_Click(
- WObject * source,
- WEventData * event )
- {
- Dismiss( 0 );
- return TRUE;
- }
-
- @end-code;
- @end;
-