home *** CD-ROM | disk | FTP | other *** search
- Save Format v1.3
- @begin Form "TabFileParts"
- Exported 0;
-
- @begin Object "WModelessDialog"
- WSChild 1;
- WSVisible 1;
- Font "8.MS Sans Serif";
- FormPositionType "Centered";
- FormAbsTop "23";
- FormAbsLeft "8";
- FDXStructName "TabFilePartsFDXStruct";
- Text "Using GetFileParts()";
- @begin Event "Create"
- GencodeSrcLine 239;
- FunctionName "TabFileParts::TabFileParts_Create";
- @end;
- @begin UserFunction "TabFileParts()"
- Compiler 1;
- GencodeSrcLine 251;
- FunctionName "TabFileParts::TabFileParts()";
- @end;
- @begin UserFunction "~TabFileParts()"
- Compiler 1;
- GencodeSrcLine 255;
- FunctionName "TabFileParts::~TabFileParts()";
- @end;
- ResID 103;
- DesignName TabFileParts;
- TabIndex 0;
- DesignRect 38,149,236,216;
- @end;
-
- @begin Object "WTextBox"
- WTextBoxAutoHScroll 1;
- WSBorder 1;
- WSChild 1;
- WSMinimizeBox 1;
- WSMaximizeBox 1;
- WSGroup 1;
- WSTabStop 1;
- WSExClientEdge 1;
- WSVisible 1;
- ResID 101;
- DesignName textb_1;
- TabIndex 0;
- DesignRect 5,20,170,15;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Enter a file path:";
- ResID 102;
- DesignName label_1;
- TabIndex 1;
- DesignRect 5,5,160,10;
- @end;
-
- @begin Object "WCommandButton"
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- Pressed "0";
- FDXFieldName "cb_1_data";
- FDXFieldType "WBool";
- Text "&Get Parts";
- @begin Event "Click"
- GencodeSrcLine 259;
- FunctionName "TabFileParts::cb_1_Click";
- @end;
- ResID 103;
- DesignName cb_1;
- TabIndex 2;
- DesignRect 180,20,45,15;
- @end;
-
- @begin Object "WGroupBox"
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WCCSNoResize 1;
- WSChild 1;
- WSVisible 1;
- Text "Individual parts";
- ResID 104;
- DesignName groupb_1;
- TabIndex 3;
- DesignRect 5,50,220,75;
- @end;
-
- @begin Object "WGroupBox"
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WCCSNoResize 1;
- WSChild 1;
- WSVisible 1;
- Text "Multiple parts";
- ResID 105;
- DesignName groupb_2;
- TabIndex 4;
- DesignRect 5,135,220,75;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Drive:";
- ResID 106;
- DesignName label_2;
- TabIndex 5;
- DesignRect 15,65,45,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Filename:";
- ResID 107;
- DesignName label_3;
- TabIndex 6;
- DesignRect 15,95,45,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Directory:";
- ResID 108;
- DesignName label_4;
- TabIndex 7;
- DesignRect 15,80,45,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Extension:";
- ResID 109;
- DesignName label_5;
- TabIndex 8;
- DesignRect 15,110,45,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- ResID 110;
- DesignName label_Drive;
- TabIndex 9;
- DesignRect 65,65,156,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- ResID 111;
- DesignName label_Dir;
- TabIndex 10;
- DesignRect 65,80,156,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- ResID 112;
- DesignName label_Fname;
- TabIndex 11;
- DesignRect 65,95,156,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- ResID 113;
- DesignName label_Ext;
- TabIndex 12;
- DesignRect 65,110,156,10;
- @end;
-
- @begin Object "WCheckBox"
- WBSAutoCheckBox 1;
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- FDXFieldName "checkbox_1_data";
- FDXFieldType "WULong";
- Text "Drive";
- Checked "0";
- ResID 114;
- DesignName checkbox_Drive;
- TabIndex 13;
- DesignRect 55,150,45,10;
- @end;
-
- @begin Object "WCheckBox"
- WBSAutoCheckBox 1;
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- FDXFieldName "checkbox_1_data";
- FDXFieldType "WULong";
- Text "Filename";
- Checked "0";
- ResID 115;
- DesignName checkbox_Fname;
- TabIndex 14;
- DesignRect 111,150,44,10;
- @end;
-
- @begin Object "WCheckBox"
- WBSAutoCheckBox 1;
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- FDXFieldName "checkbox_1_data";
- FDXFieldType "WULong";
- Text "Directory";
- Checked "0";
- ResID 116;
- DesignName checkbox_Dir;
- TabIndex 15;
- DesignRect 55,165,45,10;
- @end;
-
- @begin Object "WCheckBox"
- WBSAutoCheckBox 1;
- WCCSTop 1;
- WCCSNoMoveY 1;
- WCCSBottom 1;
- WSChild 1;
- WSMaximizeBox 1;
- WSTabStop 1;
- WSVisible 1;
- FDXFieldName "checkbox_1_data";
- FDXFieldType "WULong";
- Text "Extension";
- Checked "0";
- ResID 117;
- DesignName checkbox_Ext;
- TabIndex 16;
- DesignRect 111,165,44,10;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- ResID 118;
- DesignName label_10;
- TabIndex 17;
- DesignRect 45,190,170,15;
- @end;
-
- @begin Object "WLabel"
- WSSLeftNoWordWrap 1;
- WSSNotify 1;
- WCCSNoResize 1;
- WCCSNoParentAlign 1;
- WSChild 1;
- WSVisible 1;
- Text "Parts:";
- ResID 119;
- DesignName label_6;
- TabIndex 18;
- DesignRect 10,190,30,15;
- @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 78;
- @end;
-
- @begin-code GeneratedClassContents
-
- TabFileParts();
- ~TabFileParts();
-
- @end-code;
-
- @begin-code Code "TabFileParts::TabFileParts()"
-
- @@CLASSNAME@::@CLASSNAME@()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "TabFileParts::~TabFileParts()"
-
- @@CLASSNAME@::~@CLASSNAME@()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "TabFileParts::TabFileParts_Create"
-
- WBool @CLASSNAME@::TabFileParts_Create(
- WObject * source,
- WCreateEventData * event )
- {
- // set the initial state of the controls on the dialog
- textb_1->SetText( WString( WTEXT( "c:\\programs\\optima.exe" ) ) );
- checkbox_Drive->SetChecked( TRUE );
- checkbox_Dir->SetChecked( TRUE );
- checkbox_Fname->SetChecked( TRUE );
- checkbox_Ext->SetChecked( TRUE );
- return FALSE;
- }
-
- @end-code;
-
- @begin-code Code "TabFileParts::cb_1_Click"
-
- WBool @CLASSNAME@::cb_1_Click(
- WObject * source,
- WEventData * event )
- {
- WFilePath fp;
- WString line;
- WUInt flags;
-
- fp = textb_1->GetText();
-
- // fill in the 'Individual parts' section of the dialog
- label_Drive->SetText( fp.GetDrive() );
- label_Dir->SetText( fp.GetDirectory() );
- label_Fname->SetText( fp.GetFileName() );
- label_Ext->SetText( fp.GetExtension() );
-
- // fill in the 'Multiple parts' section of the dialog
- flags = 0;
- if( checkbox_Drive->GetChecked() ) flags |= _WFILEPATH_DRIVE;
- if( checkbox_Dir->GetChecked() ) flags |= _WFILEPATH_DIR;
- if( checkbox_Fname->GetChecked() ) flags |= _WFILEPATH_FNAME;
- if( checkbox_Ext->GetChecked() ) flags |= _WFILEPATH_EXT;
- line = fp.GetFileParts( flags );
- label_10->SetText( line );
-
- return FALSE;
- }
-
- @end-code;
- @end;
-