/*
<BLUEPRINT_FORM>
    <FORM>Usage</FORM>
    <DATABASE>Memory Usage</DATABASE>
</BLUEPRINT_FORM>
*/

local targetFormName
define targetFormName,"Usage"

makenewform targetFormName
setwindowrectangle rectanglesize(132,498,384,494),"NoHorzScroll NoVertScroll"
openform targetFormName

restoreFormFromBlueprint:

/* <BLUEPRINT_FORM_PROPERTIES> */

setformoptions "",targetFormName,
    "ALTERNATINGBACKGROUNDCOLORS",0,
    "AUTOMATICDISABLEDFIELDS",0,
    "BACKGROUNDCOLOR",htmlrgb("FFFFFF"),
    "EVENTCODE","nop
if info(""formevent"") = ""OPEN""
    call ""Calculate Usage""
elseif info(""formevent"") = ""FRONT""
    call ""Calculate Usage""
endif",
    "EVENTCODESYNTAXERROR","",
    "EXCLUDEFROMVIEWMENU",0,
    "INITIALDIMENSIONS","",
    "MAXIMUMHEIGHT",0.00,
    "MAXIMUMWIDTH",494.00,
    "MINIMUMHEIGHT",300.00,
    "MINIMUMWIDTH",494.00,
    "NOTES","",
    "REPORTCOLUMNDIRECTION","Down",
    "REPORTCOLUMNS","Automatic",
    "TABORDER","Natural",
    "TAG","",
    "USESERVERFORLOOKUP",0,
    "VARIABLETYPE","WindowGlobal",
    "VIEWASLISTBACKGROUNDCOLORS","",
    "VIEWASLISTGRIDSTYLE","None",
    "VIEWASLISTHILIGHTCOLOR","",
    "VIEWMODE","Individual Pages",
    "WINDOWHEIGHT",384.00,
    "WINDOWLEFTEDGE",498.00,
    "WINDOWOPTIONS","NoHorzScroll NoVertScroll",
    "WINDOWTOPEDGE",132.00,
    "WINDOWWIDTH",494.00

/* </BLUEPRINT_FORM_PROPERTIES> */

makeFormObjectsFromBluePrint:

/* <BLUEPRINT_FORM_OBJECTS> */

newformobject "TextListObject",
    "rectangle",rectanglesize(110, 8, 239, 473),
    "color",htmlrgb("000000"),
    "name","",
    "$TextListAutoSelectFirstCell","0",
    "Tags","",
    "$TextListColumns","Database∆25c
Fields∆8c∆align=right
Records∆9c∆align=right
Data∆8c∆align=right
%∆6.3c∆align=right
",
    "Expandable","0",
    "$TextListPassThru","0",
    "$TextListMatrixSeparator","",
    "$ShadowDepth","2",
    "$TextListAllowMultipleRowSelection","0",
    "Opacity","100 %",
    "$TextListAllowHeaderClicks","0",
    "$TextListScanDatabase","",
    "$TextListBorder","Bezel",
    "$TextListFirstRowColumnNames","0",
    "$DropShadow","1",
    "$ShadowBlur","10",
    "$Stroke","None",
    "$TextListQueryFormula","",
    "$ToolTip","",
    "Font","#LabelFont",
    "$TextListGridVerticalSolid","0",
    "$TextListHeightTweak","0",
    "$TextListRichText","0",
    "$TextListQueryBackground","0",
    "LineWidth","1 px",
    "$BorderLeftMargin","0 px",
    "$TextListKeyboardSelection","0",
    "$TextListValueSeparator","",
    "ExpandShrink","0",
    "Procedure","call databaseListClick
if error nop endif",
    "$ShadowOpacity","44%",
    "$TextListResizableColumns","0",
    "$TextListDisplayHeader","1",
    "Locked","0",
    "$ShadowAngle","45°",
    "$BorderBottomMargin","0 px",
    "$TextListMaxCellCount","0",
    "$TextListThinScroll","1",
    "$BorderRightMargin","0 px",
    "$TextListHorizontalScroll","0",
    "TextSize","18 px",
    "$TextListNoFocusRing","0",
    "$TextListSize","Medium",
    "$TextListNavigator","0",
    "$TextListGridHorizontalSolid","0",
    "Alignment","Left",
    "$TextListAlternatingColors","1",
    "$BorderTopMargin","0 px",
    "Formula","catcherror("""",usageStatistics)",
    "$ShadowBrightness","0%",
    "$TextListAllowEmptySelection","0",
    "$TextListClickRelease","1",
    "$TextListGridHorizontalDashed","0",
    "$TextListQueryProgressRoot","",
    "$TextListSorting","None",
    "$Fill","Hollow",
    "$TextListField","memoryDatabase"

newformobject "RectangleShapeObject",
    "rectangle",rectanglesize(9, 8, 86, 473),
    "color",htmlrgb("B2B2B2"),
    "name","",
    "Tags","",
    "$ShadowOpacity","44%",
    "Opacity","100 %",
    "$ShadowDepth","1",
    "$ShadowBlur","10",
    "$Stroke","Solid",
    "Procedure","",
    "Expandable","0",
    "$Fill","Outline",
    "LineWidth","1 px",
    "$ShadowAngle","45°",
    "$DropShadow","1",
    "ExpandShrink","0",
    "Locked","0",
    "$ToolTip","",
    "$ShadowBrightness","0%"

newformobject "LevelIndicatorObject",
    "rectangle",rectanglesize(49, 33, 18, 411),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","max(catcherror(0,totalDataBytes)*1024/info(""ram""),4)",
    "TextSize","16 px",
    "$BorderRightMargin","0 px",
    "$LevelIndicatorWarningValue","0",
    "Opacity","100 %",
    "Locked","0",
    "$ShadowDepth","6",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "Tags","",
    "$LevelIndicatorSize","Regular",
    "$ToolTip","",
    "$LevelIndicatorStyle","Capacity",
    "$ShadowBrightness","0%",
    "$LevelIndicatorTickMarks","5",
    "Alignment","Left",
    "Font","#SystemFont",
    "$LevelIndicatorTickMarkPosition","Below",
    "$ShadowAngle","45°",
    "$LevelIndicatorMinValue","0",
    "$ShadowOpacity","75%",
    "$LevelIndicatorImagePath","max(catcherror(0,totalDataBytes)*1024/info(""ram""),4)",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$LevelIndicatorMajorTickMarks","0",
    "$LevelIndicatorMaxValue","1024",
    "$Stroke","None",
    "LineWidth","1 px",
    "$LevelIndicatorCriticalValue","0",
    "$BorderTopMargin","0 px"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(72, 418, 18, 49),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","info(""ram"")/(2^30)+"" GB""",
    "TextSize","9 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(72, 317, 18, 49),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","3/4*info(""ram"")/(2^30)+"" GB""",
    "TextSize","9 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(72, 216, 18, 49),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","1/2*info(""ram"")/(2^30)+"" GB""",
    "TextSize","9 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(72, 112, 18, 49),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","1/4*info(""ram"")/(2^30)+"" GB""",
    "TextSize","9 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(72, 11, 18, 49),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","""0 GB""",
    "TextSize","9 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "TextDisplayObject",
    "rectangle",rectanglesize(21, 33, 18, 411),
    "color",htmlrgb("000000"),
    "name","",
    "$ShadowBlur","10",
    "$DropShadow","0",
    "$BorderLeftMargin","0 px",
    "Formula","""Total Data Usage: ""+bytepattern(catcherror(0,totalDataBytes))+"" (""+pattern(catcherror(0,totalDataBytes)*100/info(""ram""),""#.##"")+""%)""",
    "TextSize","11 px",
    "$BorderRightMargin","0 px",
    "$TextDisplayHorizontalScroll","0",
    "$TextDisplayFormulaMode","Formula",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "Locked","0",
    "$TextDisplayLineBreakMode","Word Wrap",
    "$TextDisplayThinScroll","0",
    "$Fill","Hollow",
    "Procedure","",
    "ExpandShrink","0",
    "$TextDisplayAutoScaleSize","1",
    "Tags","",
    "$TextDisplayAutoHideScroll","0",
    "$TextDisplayAutoScale","0",
    "$TextDisplaySelectable","0",
    "$TextBackgroundFill","",
    "$TextDisplayVerticalScroll","0",
    "$TextDisplayVerticalTextAlignment","Top",
    "$ShadowBrightness","0%",
    "$ToolTip","",
    "$TextDisplayDontWrap","0",
    "Alignment","Center",
    "Font","#LabelFont",
    "$ShadowAngle","45°",
    "$ShadowOpacity","75%",
    "$TextDisplayBorderStyle","None",
    "Expandable","0",
    "$BorderBottomMargin","0 px",
    "$TextDisplayCollapseBlankLines","0",
    "$Stroke","None",
    "LineWidth","1 px",
    "$TextDisplayAutoScrollToBottom","0",
    "$BorderTopMargin","0 px",
    "$TextDisplayRichText","0"

newformobject "ElasticWindowObject",
    "rectangle",rectanglesize(175, 364, 186, 129),
    "color",htmlrgb("000000"),
    "name","",
    "$ElasticAreaMode","Clones Only",
    "Tags","",
    "$ShadowOpacity","75%",
    "Opacity","100 %",
    "$ShadowDepth","6",
    "$ShadowBlur","10",
    "Procedure","",
    "Expandable","0",
    "$ShadowAngle","45°",
    "$DropShadow","0",
    "ExpandShrink","0",
    "Locked","0",
    "$ToolTip","",
    "$ShadowBrightness","0%"

selectnoobjects

/* </BLUEPRINT_FORM_OBJECTS> */
