home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' FormDev.RLZ
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- IF QVar(%%FormDev) THEN
- INPUT "FormDev is already running.", "FormDev";
- EXIT PROGRAM
- END IF
- %%FormDev = 1
- fdRlzDir = QSys(_ProgDir)
-
- RUN "StdSys"
- SetHourglass
-
- TRUE = 1
- FALSE = 0
-
- scaleToolBmp = IF _HPxlPerInch > 100 THEN 1.5 ELSE 1
- scaleSplash = IF _HPxlPerInch > 100 THEN 2 ELSE 1
-
- IF TRUE THEN ' Default to using custom fonts.
- LOCAL fontSz
- fontSz = IF _HPxlPerInch > 100 THEN 10 ELSE 8
- font_B = FontQUnique()
- FontNew(font_B; "Helv", fontSz, _Bold)
- font_P = FontQUnique()
- FontNew(font_P; "Helv", fontSz)
- ELSE
- font_B = 0
- font_P = 0
- END IF
-
- ' Show the splash screen
- LOCAL fdTitleBox, objInfo, scaleF
-
- fdTitleBox = FormQUnique
- FormNew(fdTitleBox; "", _Frame)
- FormSetObject(1, _BitMap, QSys(_ProgDir) + "FormDev\Splash.BMP", 0, 0)
- objInfo = FormQObject(1)
- scaleF = IF _HPxlPerInch > 100 THEN 2 ELSE 1
- FormControl(_Size; _Center, _Center, objInfo[_FQO_Width] * scaleSplash +17, objInfo[_FQO_Height] * scaleSplash + 17)
- FormSetObject(1, _BitMap, QSys(_ProgDir) + "FormDev\Splash.BMP", _Center, _Center, objInfo[_FQO_Width] * scaleSplash, objInfo[_FQO_Height] * scaleSplash)
- FormModifyObject(1, _Gray)
- FormControl(_Show)
-
- RUN "StdBits"
- RUN "StdColor"
- RUN "StdArray"
- RUN "StdMsgBx"
- RUN "StdStrng"
- RUN "CCLib1"
-
- PROC SetupPaths
- SetSys(_LoadDir, fdOpenPath + ";" + theform.bitmapdir)
- SetSys(_MacroDir, fdMacroDir + ";" + theform.linkdir)
- END PROC
-
- RESET _SysVar
- fdMacroDir = fdRlzDir + "lib;" + fdRlzDir + "FormDev\"
- fdOpenPath = fdRlzDir + "Utility\FDSample\"
- fdClipArtPath = fdRlzDir + "ClipArt\"
- fdOpenBmpPath = fdClipArtPath
- fdCurrentBmpPath = ""
- fdCurrentBmpFN = ""
-
- theform.bitmapdir = ""
- theform.linkdir = ""
- SetupPaths
-
- ItemNames = {"DefButton", "Button", "TextBox", "CheckBox", "OptionButton", "GroupBox"}
- ItemNames = {ItemNames, "CaptionLeft", "CaptionCenter", "CaptionRight", "Frame", "Bitmap", "BitmapButton"}
- ItemNames = {ItemNames, "ListBox", "ComboBox", "DropDownCombo", "DropDownList", "Log", "Chart", "Sheet", "DigitalClock"}
-
- ItemNums = {_DefButton, _Button, _TextBox, _CheckBox, _OptionButton, _GroupBox}
- ItemNums = {ItemNums, _CaptionLeft, _CaptionCenter, _CaptionRight, _Frame, _Bitmap, _BitmapButton}
- ItemNums = {ItemNums, _ListBox, _ComboBox, _DropDownCombo, _DropDownList, _Log, _Chart, _Sheet, -20}
-
- RUN "misc.rlz"
- RUN "reorder.rlz"
- RUN "modifier.rlz"
- RUN "formchar.rlz"
- RUN "setup.rlz"
- RUN "items.rlz"
- RUN "menus.rlz"
- RUN "menufile.rlz"
- RUN "menuedit.rlz"
- RUN "menuform.rlz"
- RUN "menualgn.rlz"
- RUN "savefile.rlz"
- RUN "generate.rlz"
- RUN "project.rlz"
- RUN "units.rlz"
- RUN "mainform.rlz"
- RUN "additem.rlz"
- RUN "fonts.rlz"
- RUN "sizevals.rlz"
- RUN "action.rlz"
- RUN "forms.rlz"
- RUN "Visual.rlz"
- RUN "StdBmp.rlz"
-
- lastFrameNum = 0
- fdMain = FormQUnique
- fdChanged = 0
- fdFormSaved = 0
-
- InitMenus
- InitBrowserMenu("&ClipArt", fdAlignMenu)
- InitVisualForms
- InitTool
-
- MainFormNew
- MainFormCreate
-
- FormSelect(fdTitleBox)
- FormControl(_Close)
- FormSelect(toolForm)
- FormControl(_Show)
- FormSelect(fdMain)
- FormControl(_Show)
-
- ResetHourglass
-