Click here to Skip to main content
14,209,015 members
Click here to Skip to main content
Posted 30 Dec 2005

Stats

300.1K views
79.2K downloads
227 bookmarked

Form Designer

,
Rate this:
4.96 (54 votes)
Please Sign up or sign in to vote.
4.96 (54 votes)
1 Aug 2009     CPOL    
Component for adding scriptable forms capabilities to an application.
MFCDemo.exe
CSDemo
App.ico
Bmp
ABottom.bmp
About.bmp
ALeft.bmp
ARight.bmp
ATop.bmp
AX.bmp
BringFront.bmp
Button.bmp
Center.bmp
Check.bmp
Combo.bmp
Copy.bmp
Cut.bmp
Delete.bmp
Down.bmp
Edit.bmp
Frame.bmp
Grid.bmp
GridSettings.bmp
HCenter.bmp
HScroll.bmp
HSL.bmp
HSpace.bmp
HSS.bmp
Left.bmp
List.bmp
New.bmp
Open.bmp
Paste.bmp
Picture.bmp
Preview.bmp
Progress.bmp
Props.bmp
Radio.bmp
Rectangle.bmp
Redo.bmp
Right.bmp
Save.bmp
SelAll.bmp
SelNone.bmp
SendBack.bmp
SL.bmp
Slider.bmp
Spin.bmp
SS.bmp
Tab.bmp
Text.bmp
Undo.bmp
Up.bmp
Validate.bmp
VCenter.bmp
VScroll.bmp
VSL.bmp
VSpace.bmp
VSS.bmp
Wand.bmp
CSDemo.suo
DaeDoe.bmp
MFCDemo
MFCDemo.dsp
MFCDemo.odl
MFCDemo.reg
res
DaeDoe.bmp
MFCDemo.ico
MFCDemoDoc.ico
Toolbar1.bmp
Toolbar2.bmp
Toolbar3.bmp
Wand.bmp
VBDemo
Bmp
ABottom.bmp
About.bmp
ALeft.bmp
ARight.bmp
ATop.bmp
AX.bmp
BringFront.bmp
Button.bmp
Center.bmp
Check.bmp
Combo.bmp
Copy.bmp
Cut.bmp
Delete.bmp
Down.bmp
Edit.bmp
Frame.bmp
Grid.bmp
GridSettings.bmp
HCenter.bmp
HScroll.bmp
HSL.bmp
HSpace.bmp
HSS.bmp
Left.bmp
List.bmp
New.bmp
Open.bmp
Paste.bmp
Picture.bmp
Preview.bmp
Progress.bmp
Props.bmp
Radio.bmp
Rectangle.bmp
Redo.bmp
Right.bmp
Save.bmp
SelAll.bmp
SelNone.bmp
SendBack.bmp
SL.bmp
Slider.bmp
Spin.bmp
SS.bmp
Tab.bmp
Text.bmp
Undo.bmp
Up.bmp
Validate.bmp
VCenter.bmp
VScroll.bmp
VSL.bmp
VSpace.bmp
VSS.bmp
Wand.bmp
DaeDoe.bmp
VBDemo.vbp
DDForms.chm
DDForms
Archive
FormEditorItems.rgs
vssver.scc
Constants.scr
DaeDoe.bmp
DDForms.def
DDForms.vcproj
DDForms.vcproj.vspscc
EventSinkPassThrough.rgs
FormEditor.bmp
FormEditor.rgs
FormEditorItemCollection.rgs
FormEditorItemDetails.rgs
FormViewer.bmp
FormViewer.rgs
FormViewerItemCollection.rgs
FormViewerItemDetails.rgs
mssccprj.scc
PropPageExtended.rgs
PropPageFormEditor.rgs
PropPageFormViewer.rgs
PropPageSimpleScriptEditor.rgs
SimpleScriptEditor.bmp
SimpleScriptEditor.rgs
vssver.scc
DDFormsTools
CodeMaxDriver
CodeMaxDriver.rgs
CodeMaxDriver.vcproj
CodeMaxDriver.vcproj.vspscc
CodeMaxDriverps.def
CodeMaxDriverPS.vcproj
CodeMaxDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
CodeSenseDriver
CodeSenseDriver.rgs
CodeSenseDriver.vcproj
CodeSenseDriver.vcproj.vspscc
CodeSenseDriverps.def
CodeSenseDriverPS.vcproj
CodeSenseDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
DDPropPageAll
DDPropPageAll.def
DDPropPageAll.vcproj
DDPropPageAll.vcproj.vspscc
mssccprj.scc
PropPageAll.rgs
vssver.scc
DDUnlock
DDUnlock.vcproj
DDUnlock.vcproj.vspscc
mssccprj.scc
vssver.scc
DDControlPack
DDButton.bmp
DDCheckBox.bmp
DDComboBox.bmp
DDControlPack.rgs
DDControlPack.vcproj
DDControlPack.vcproj.vspscc
DDHorzScrollBar.bmp
DDLabel.bmp
DDListBox.bmp
DDPicture.bmp
DDRadioButton.bmp
DDTextBox.bmp
DDVertScrollBar.bmp
mssccprj.scc
vssver.scc
Redistributables
Ansi
CodeMaxDriver.dll
CodeSenseDriver.dll
DDControlPack.dll
DDForms.dll
DDPropPageAll.dll
Unicode
CodeMaxDriver.dll
CodeSenseDriver.dll
DDControlPack.dll
DDForms.dll
DDPropPageAll.dll
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""winres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "1 TYPELIB ""DDForms.tlb""\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,7,65535,65535
 PRODUCTVERSION 1,7,65535,65535
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x29L
#else
 FILEFLAGS 0x28L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080904b0"
        BEGIN
            VALUE "Comments", "DaeDoe Forms, Version 1.07"
            VALUE "CompanyName", "DaeDoe-Software"
            VALUE "FileDescription", "DDForms Module"
            VALUE "FileVersion", "1, 7, 65535, 65535"
            VALUE "InternalName", "DDForms"
            VALUE "LegalCopyright", "Copyright (c) 2002-2003, DaeDoe-Software"
            VALUE "LegalTrademarks", "None"
            VALUE "OLESelfRegister", "Yes"
            VALUE "OriginalFilename", "DDForms.DLL"
            VALUE "PrivateBuild", "None"
            VALUE "ProductName", "DDForms Module"
            VALUE "ProductVersion", "1, 7, 65535, 65535"
            VALUE "SpecialBuild", "None"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x809, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// REGISTRY
//

IDR_SIMPLESCRIPTEDITOR  REGISTRY                "SimpleScriptEditor.rgs"
IDR_FORMEDITOR          REGISTRY                "FormEditor.rgs"
IDR_FORMVIEWER          REGISTRY                "FormViewer.rgs"
IDR_PROPPAGESIMPLESCRIPTEDITOR REGISTRY                "PropPageSimpleScriptEditor.rgs"
IDR_PROPPAGEFORMEDITOR  REGISTRY                "PropPageFormEditor.rgs"
IDR_PROPPAGEEXTENDED    REGISTRY                "PropPageExtended.rgs"
IDR_PROPPAGEFORMVIEWER  REGISTRY                "PropPageFormViewer.rgs"
IDR_FORMEDITORITEMDETAILS REGISTRY                "FormEditorItemDetails.rgs"
IDR_FORMEDITORITEMCOLLECTION REGISTRY                "FormEditorItemCollection.rgs"
IDR_FORMVIEWERITEMCOLLECTION REGISTRY                "FormViewerItemCollection.rgs"
IDR_FORMVIEWERITEMDETAILS REGISTRY                "FormViewerItemDetails.rgs"
IDR_EVENTSINKPASSTHROUGH REGISTRY                "EventSinkPassThrough.rgs"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_SIMPLESCRIPTEDITOR  BITMAP                  "SimpleScriptEditor.bmp"
IDB_FORMEDITOR          BITMAP                  "FormEditor.bmp"
IDB_FORMVIEWER          BITMAP                  "FormViewer.bmp"
IDB_DAEDOE              BITMAP                  "DaeDoe.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_PROPPAGESIMPLESCRIPTEDITOR DIALOG  0, 0, 271, 105
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "&Border",IDC_BORDER,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
                    WS_TABSTOP,5,5,37,10
END

IDD_ABOUT_FORMEDITOR DIALOGEX 0, 0, 197, 106
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Form Editor"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
    CONTROL         104,IDC_STATIC,"Static",SS_BITMAP,5,5,11,10
    LTEXT           "FormEditor",IDC_STATIC,20,6,170,8
    LTEXT           "Form Editor ActiveX Control, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,20,185,20
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,46,185,1
    LTEXT           "This component is part of DaeDoe Forms, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,50,185,19
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,71,185,1
    CONTROL         204,IDC_STATIC,"Static",SS_BITMAP,5,80,122,20
    DEFPUSHBUTTON   "OK",IDOK,135,85,55,15
END

IDD_ABOUT_FORMVIEWER DIALOGEX 0, 0, 197, 106
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Form Viewer"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
    CONTROL         106,IDC_STATIC,"Static",SS_BITMAP,5,5,11,10
    LTEXT           "FormViewer",IDC_STATIC,20,6,170,8
    LTEXT           "Form Viewer ActiveX Control, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,20,185,20
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,46,185,1
    LTEXT           "This component is part of DaeDoe Forms, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,50,185,19
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,71,185,1
    CONTROL         204,IDC_STATIC,"Static",SS_BITMAP,5,80,122,20
    DEFPUSHBUTTON   "OK",IDOK,135,85,55,15
END

IDD_ABOUT_SIMPLESCRIPTEDITOR DIALOGEX 0, 0, 197, 106
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Simple Script Editor"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
    CONTROL         102,IDC_STATIC,"Static",SS_BITMAP,5,5,11,10
    LTEXT           "SimpleScriptEditor",IDC_STATIC,20,6,170,8
    LTEXT           "Simple Script Editor ActiveX Control, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,20,185,20
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,46,185,1
    LTEXT           "This component is part of DaeDoe Forms, Version 1.07.\nCopyright (C) 2002-2003, DaeDoe-Software.",
                    IDC_STATIC,5,50,185,19
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME,5,71,185,1
    CONTROL         204,IDC_STATIC,"Static",SS_BITMAP,5,80,122,20
    DEFPUSHBUTTON   "OK",IDOK,135,85,55,15
END

IDD_PROPPAGEFORMEDITOR DIALOG  0, 0, 271, 105
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "&Border",IDC_BORDER,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
                    WS_TABSTOP,5,5,50,10
    LTEXT           "Form &width",IDC_STATIC,5,20,40,8
    EDITTEXT        IDC_FORM_WIDTH,5,30,40,14,ES_AUTOHSCROLL | ES_NUMBER | 
                    WS_GROUP
    CONTROL         "Spin1",IDC_FORM_WIDTH_SPIN,"msctls_updown32",
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,45,30,11,14
    LTEXT           "Form &height",IDC_STATIC,50,20,40,8
    EDITTEXT        IDC_FORM_HEIGHT,50,30,40,14,ES_AUTOHSCROLL | ES_NUMBER | 
                    WS_GROUP
    CONTROL         "Spin3",IDC_FORM_HEIGHT_SPIN,"msctls_updown32",
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,90,30,11,14
    CONTROL         "&Grid visible",IDC_GRID,"Button",BS_AUTOCHECKBOX | 
                    WS_GROUP | WS_TABSTOP,5,55,50,10
    LTEXT           "Grid w&idth",IDC_STATIC,5,70,40,8
    EDITTEXT        IDC_GRID_WIDTH,5,80,40,14,ES_AUTOHSCROLL | ES_NUMBER | 
                    WS_GROUP
    CONTROL         "Spin4",IDC_GRID_WIDTH_SPIN,"msctls_updown32",
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,45,80,11,14
    LTEXT           "Grid h&eight",IDC_STATIC,50,70,40,8
    EDITTEXT        IDC_GRID_HEIGHT,50,80,40,14,ES_AUTOHSCROLL | ES_NUMBER | 
                    WS_GROUP
    CONTROL         "Spin2",IDC_GRID_HEIGHT_SPIN,"msctls_updown32",
                    UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | 
                    UDS_ARROWKEYS | UDS_NOTHOUSANDS,90,80,11,14
END

IDD_PROPPAGEEXTENDED DIALOG  0, 0, 271, 105
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "&Name",IDC_STATIC,5,5,140,8
    EDITTEXT        IDC_NAME,5,15,140,14,ES_AUTOHSCROLL | WS_GROUP
END

IDD_INSERT_ITEM DIALOG  0, 0, 202, 135
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Insert Item"
FONT 8, "MS Sans Serif"
BEGIN
    LISTBOX         IDC_ITEM_LIST,5,5,130,125,LBS_NOINTEGRALHEIGHT | 
                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_HSCROLL | WS_GROUP | 
                    WS_TABSTOP
    DEFPUSHBUTTON   "OK",IDOK,145,5,50,15,WS_GROUP
    PUSHBUTTON      "Cancel",IDCANCEL,145,25,50,15,WS_GROUP
END

IDD_PROPPAGEFORMVIEWER DIALOG  0, 0, 271, 105
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "&Border",IDC_BORDER,"Button",BS_AUTOCHECKBOX | WS_GROUP | 
                    WS_TABSTOP,5,5,50,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUT_FORMEDITOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 190
        TOPMARGIN, 7
        BOTTOMMARGIN, 99
    END

    IDD_ABOUT_FORMVIEWER, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 190
        TOPMARGIN, 7
        BOTTOMMARGIN, 99
    END

    IDD_ABOUT_SIMPLESCRIPTEDITOR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 190
        TOPMARGIN, 7
        BOTTOMMARGIN, 99
    END

    IDD_INSERT_ITEM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 195
        TOPMARGIN, 7
        BOTTOMMARGIN, 128
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_CTXMENU_FORMEDITOR MENU 
BEGIN
    POPUP "Menu"
    BEGIN
        MENUITEM "Cu&t",                        ID_CUT
        MENUITEM "&Copy",                       ID_COPY
        MENUITEM "&Paste",                      ID_PASTE
        MENUITEM "&Delete",                     ID_DELETE
        MENUITEM SEPARATOR
        MENUITEM "Send To &Back",               ID_SENDTOBACK
        MENUITEM "Bring To &Front",             ID_BRINGTOFRONT
        MENUITEM SEPARATOR
        MENUITEM "&Events",                     ID_EVENTS
        MENUITEM SEPARATOR
        MENUITEM "E&xposed Objs",               ID_EXPOSED_OBJECTS
        MENUITEM SEPARATOR
        MENUITEM "&Insert ActiveX...",          ID_INSERT_ACTIVEX
        MENUITEM SEPARATOR
        MENUITEM "P&roperties...",              ID_PROPERTIES
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// SCRIPT
//

IDR_SCRIPT_CONSTANTS    SCRIPT                  "Constants.scr"

/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDA_SIMPLESCRIPTEDITOR ACCELERATORS 
BEGIN
    "C",            ID_COPY,                VIRTKEY, CONTROL, NOINVERT
    "V",            ID_PASTE,               VIRTKEY, CONTROL, NOINVERT
    "X",            ID_CUT,                 VIRTKEY, CONTROL, NOINVERT
    "Z",            ID_UNDO,                VIRTKEY, CONTROL, NOINVERT
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_PROJNAME            "DDForms"
    IDS_TITLEPropPageSimpleScriptEditor "General"
    IDS_HELPFILEPropPageSimpleScriptEditor "None"
    IDS_DOCSTRINGPropPageSimpleScriptEditor "General properties"
END

STRINGTABLE 
BEGIN
    IDS_TITLEPropPageFormEditor "General"
    IDS_HELPFILEPropPageFormEditor "None"
    IDS_DOCSTRINGPropPageFormEditor "General properties"
    IDS_EMPTY               "Empty"
    IDS_TITLEPropPageExtended "Extended"
    IDS_HELPFILEPropPageExtended "None"
    IDS_DOCSTRINGPropPageExtended "Extended properties"
END

STRINGTABLE 
BEGIN
    ID_CUT                  "Cuts the selection to the clipboard"
    ID_COPY                 "Copies the selection to the clipboard"
    ID_PASTE                "Pastes the contents of the clipboard"
    ID_PROPERTIES           "Modifies the selection properties"
    ID_DELETE               "Deletes the selection"
END

STRINGTABLE 
BEGIN
    IDS_TITLEPropPageFormViewer "General"
    IDS_HELPFILEPropPageFormViewer "None"
    IDS_DOCSTRINGPropPageFormViewer "General properties"
END

STRINGTABLE 
BEGIN
    ID_SENDTOBACK           "Sends the selection to the back"
    ID_BRINGTOFRONT         "Brings the selection to the front"
END

#endif    // English (U.K.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "DDForms.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

DaveShep
Web Developer
United Kingdom United Kingdom
No Biography provided

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.190617.1 | Last Updated 1 Aug 2009
Article Copyright 2005 by DaveShep
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid