
HMG/WEB ALPHA 011 REFERENCE (Under Construction) - Roberto Lopez (mail.box.hmg@gmail.com)
-----------------------------------------------------------------------------------------



FORM
----

	Syntax:


	Define Form [ <properties> ]


	End Form


	Properties:


	- Header:
	- Footer:
	- Action:
	- WidgetSize:
	- MaxWidth:
	- PageStyle:
	- Theme:


	EXAMPLE:


	Define Form Header 'Hi!' Footer 'Bye!' Action 'serverproc.cgi'


	End Form

ENDFORM
........................................................................


TEXT
----


	Syntax:


	Define Text <cName>

		<Properties>

	End Text


	Properties:


	- Name:
	- Value:
	- Label:
	- InputMask:
	- AutoFocus:
	- Placeholder
	- MaxLength
	- SpellCheck
	- aDataList
	- Required


	Example:


	Define Text 'text_1'
		Value	'default value'
		Label	'Input Text:'
	End Text

ENDTEXT
........................................................................


CURRENCY
--------


	Syntax:


	Define Currency <cName>

		<Properties>

	End Currency


	Properties:


	- Name:
	- Value:
	- Label:
	- Sign:
	- Decimal:
	- Separator:
	- AutoFocus:


	Example:


	Define Currency 'currency_1'
		Value	'1,234.56'
		Label	'Input Number:'
		Sign	'$'
	End Currency

ENDCURRENCY
........................................................................


PASSWORD
--------


	Syntax:


	Define Password <cName>

		<Properties>

	End Password


	Properties:


	- Name:
	- Value:
	- Label:


	Example:


	Define Password 'pass_1'
		Value	'secret'
		Label	'Input Password:'
	End Password

ENDPASSWORD
........................................................................


FLIP
----


        Syntax:
	

	Define Flip <cName>

		<Properties>

	End Flip


	Properties:


	- Name:
	- Value: 
	- Label:
	- Options:


	Example:


	Define Flip 'flip_1'
		Value	.F.
		Label	'Click Me!'
		Options	{'Yes','No'}
	End Flip

ENDFLIP
........................................................................


RADIO
-----


	Syntax:


	Define Radio <cName>

		<Properties>

	End Radio


	Properties:


	- Name:
	- Options:
	- Default:
	- Label:


	Example:


	Define Radio 'radio_1'
		Default	2
		Label	'Select an Option:'
		Options	{'Yes','No'}
	End Radio

ENDRADIO
........................................................................


CHECKBOX
--------


	Syntax:


	Define CheckBox <cName>

		<Properties>

	End CheckBox


	Properties:


	- Name:
	- Value:
	- Label:


	Example:


	Define CheckBox 'check_1'
		Value	.T.
		Label	'Select an Option:'
	End CheckBox

ENDCHECKBOX
........................................................................


TEXTAREA
--------


	Syntax:


	Define TextArea <cName>


	End TextArea


	Properties:

	
	- Name:
	- Value:
	- Label:
	- AutoFocus:
	- SpellCheck:
	- Required:

	Example:


	Define TextArea 'textarea_1'
		Value	"I'm a TextArea"
		Label	'Input Text:'
	End TextArea

ENDTEXTAREA
........................................................................


LABEL
-----


	Syntax:


	Define Label <cName>

		<Properties>

	End Label


	Properties:


	- Name:
	- Value:
	- Centered:


	Example:


	Define Label 'label_1'
		Value	'Hello World!'
	End Label
	
ENDLABEL

........................................................................


SUBMIT
------


	Syntax:


	Define Submit <cName>

		<Properties>

	End Submit


	Properties:


	- Name:
	- Value:
	- Inline:
	- Icon:
	- IconPos:
	- Action:


	Example:


	Define Submit 'submit_1'
		Value	'Send Data To Server'
		Inline	.T.
	End Submit

ENDSUBMIT

........................................................................


RESET
-----


	Syntax:


	Define Reset <cName>

		<Properties>

	End Reset


	Properties:


	- Name:
	- Value:
	- Inline:
	- Icon:
	- IconPos:


	Example:


	Define Reset 'submit_1'
		Value	'Undo Changes'
	End Reset

ENDRESET
........................................................................


BACKBUTTON
----------


	Syntax:


	Define BackButton <cName>

		<Properties>

	End BackButton


	Properties:	


	- Name:
	- Value:
	- Inline:
	- Icon:
	- IconPos:


	Example:


	Define BackButton 'back_1'
		Value	'Back To Previous Page'
	End Reset

ENDBACKBUTTON
........................................................................


DATE
----

	Syntax:


	Define Date <cName>

		<Properties>

	End Date


	Properties:


	- Name:
	- Value:
	- Label:


	Example:


	Define Date 'date_1'
		Value	d"2014-02-01"
		Label	'Input Date:'
	End Date

ENDDATE

........................................................................


NUMBER
------


	Syntax:

	
	Define Number <cName>

		<Properties>

	End Number


	Properties:


	- Name:
	- Min:
	- Max:
	- Value:
	- Label:
	- AutoFocus:


	Example:


	Define Number 'num_1'
		Label	'Input Number:'
		Value	5
		Min	1
		Max	10
	End Date

ENDNUMBER
........................................................................


SELECT
------


	Syntax:


	Define Select <cName>

		<Properties>

	End Select


	Properties:


	- Name:
	- Options:
	- Size:
	- Default:
	- Label:


	Example:


	Define Select 'select_1'
	        Options	{ 'One' , 'Two' , 'Three' }
		Default	2		
		Label	'Select an Option:'
	End Select

ENDSELECT
........................................................................


TABLE
-----


	Syntax:


	Define Table <cName>

		<Properties>

	End Table


	Properties:


	- Name:
	- DataSource:
	- Headers:
	- Selectable:
	- Height


	Example:


	Local aData := {}

	AADD (aData , { '1,1' , '1,2' ,'1,3' } )
	AADD (aData , { '2,1' , '2,2' ,'2,3' } )
	AADD (aData , { '3,1' , '3,2' ,'3,3' } )
	AADD (aData , { '4,1' , '4,2' ,'4,3' } )

	Define Table 'table_1'
		DataSource	aData
		Headers		{'Column 1','Column 2','Column 3'}
		Selectable	.T.
	End Table

ENDTABLE
........................................................................


IMAGE
-----


	Syntax:


	Define Image <cName>

		<Properties>

	End Image


	Properties:


	- Name:
	- Value: 
	- Centered:
	- Width:
	- Height:


	Define Image 'image_1'
		Value	'hmg.gif'
	End Image

ENDIMAGE
........................................................................


LINKBUTTON
----------


	Syntax:


	Define LinkButton <cName>

		<Properties>

	End LinkButton


	Properties:


	- Name:
	- Value:
	- Link:
	- Icon:
	- IconPos:


	Example:


	Define LinkButton 'link_1'
		Value	'Click Here!'
		Link	'http://www.hmgforum.com'
	End LinkButton

ENDLINKBUTTON
........................................................................


HYPERLINK
---------


	Syntax:


	Define HyperLink

		<Properties>

	End HyperLink


	Properties:


	- Name:
	- Value:
	- Link:


	Example:


	Define HyperLink 'link_1'
		Value	'Go To Google!'
		Link	'http://www.google.com'
	End HyperLink

ENDHYPERLINK

........................................................................


LISTVIEW
--------


	Syntax:


	Define ListView <cName>

		<Properties>

	End ListView


	Properties:


	- Name:
	- DataSource:
	- LinkSource:
	- FilterPlaceHolder:
	- Thumbnails:
	- CountBubbles:

	Example:


	Define ListView 'list_1'
		DataSource	{ 'Item 1' , 'Item 2' , 'Item 3' }
		LinkSOurce	{ 'listview_b.cgi' , 'listview_c.cgi' , 'listview_d.cgi' }
	End ListView

ENDLISTVIEW

........................................................................


PANEL
-----


	Syntax:


	Define Panel <cName>

		<Panel Content>

	End Panel


	Example:


	Define LinkButton 'Link_1'
		Value	'Open Panel'
		Link	'#mypanel'
	End LinkButton

	Define Panel "mypanel"

		Define Label 'label_1'
			Value 'Clicking the link that opened the panel, swiping left or right, or tapping the Esc key will close the panel.Panels can also be closed clicking outside the panel onto the page contents.'
		End Label

		Break

		Define LinkButton 'Link_Close'
			Value	'Close Panel'
			Link	'#'
		End LinkButton

	End Panel

ENDPANEL
------------------------------------------------------------------------
LAYOUT
------------------------------------------------------------------------


LINE
----

	Syntax:


	Line


........................................................................


CENTER
------


	Syntax:


	Begin Center

		<widget definitions>

	End Center

ENDLAYOUT
........................................................................


GRID
----


	Syntax:


	Begin Grid <nColumnCount>

		Begin Column <ColumnNumber>

			<widget definitions>

		End Column

		Begin Column <ColumnNumber>

			<widget definitions>

		End Column

		...

	End Grid

ENDGRID
........................................................................


NAVBAR
------


	Syntax:


	Begin NavBar

		<widget definitions>

	End NavBar

ENDNAVBAR
........................................................................


BREAK
-----

	Syntax:


	Break [<nCount>]


	Example:


	Break 2

ENDBREAK
------------------------------------------------------------------------
DATA MANAGEMENT
------------------------------------------------------------------------


GETVALUE
--------


	GETVALUE( cControlName )


	- cControlName:
ENDGETVALUE
........................................................................


SETFORMDATA
-----------


	SETFORMDATA ( cName , cValue )


	- cName:
	- cValue:

ENDSETFORMDATA
------------------------------------------------------------------------
SESSION MANAGEMENT
------------------------------------------------------------------------


CLOSESESSION
------------


	CLOSESESSION()

ENDCLOSESESSION
........................................................................


SETGLOBAL
---------


	SETGLOBAL( cName , xValue )


	- cName:
	- xValue:

ENDSETGLOBAL
........................................................................


GETGLOBAL
---------


	GETGLOBAL( cName )


	- cName:

ENDGETGLOBAL
------------------------------------------------------------------------
REPORT MANAGEMENT
------------------------------------------------------------------------


	Report Basics
	-------------


	- DefineReport ( cPDFFile, nOrientation, nPaperSize, nPaperLength, nPaperWidth )

	- StartReport() 

	- StartPage()

	- EndPage()

	- EndReport()

	- Text ( nRow, nCol, cText, cFontName, nFontSize, nRColor, nGColor, nBColor, lBold, lItalic, lUnderline, lStrikeout, lColor, lFont, lSize, cAlign )

	- TextMultiLine ( nRow, nCol, nToRow, nToCol, cText, cFontName, nFontSize, nRColor, nGColor, nBColor, lBold, lItalic, lUnderline, lStrikeout, lColor, lFont, lSize, cAlign ) 

	- Image ( cImage, nRow, nCol, nImageheight, nImageWidth, lStretch ) 

	- Line ( nRow , nCol , nToRow, nToCol, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor ) 

	- Rectangle ( nRow, nCol, nToRow, nToCol, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor, lFilled ) 

	- RoundRectangle( nRow , nCol , nToRow , nToCol , nLineWidth, nRColor , nGColor , nBColor , lWidth , lColor, lFilled, nRoundness ) 

	- PageCount()

	- PageNo()


	Advanced
	--------


	- AbortReport()

	- InsertPage( nPage )

	- GoToPage( nPage )

	- Circle( nRow, nCol, nR, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor, lFilled )

	- Ellipse( nRow, nCol, nHR, nVR, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor, lFilled )

	- Arc( nRow, nCol, nR, nFromAngle, nToAngle, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor )
   
	- Curve ( nRow , nCol , nFromRow, nFromCol, nToRow, nToCol, nLineWidth, nRColor, nGColor, nBColor, lWidth, lColor ) 

	- SetReportEncoding( cEncoding )
   
	- SetReportPassword( cOwnerPass, cUserPass )

	- SetReportCompression( cMode )

	- SetReportPermission( cMode )

	- SetReportPageMode( cMode )

	- ReportRootOutline( cTitle, cName, cParent )

	- ReportPageOutline( cTitle, cParent, cName )

	- ReportSetTextAnnot( nRow, nCol, cToolTip, cIcon )

	- ReportSetPageLink( nRow, nCol, cText, nPage, cFontName, nFontSize, nRColor, nGColor, nBColor, cAlign, lColor, lFont, lSize, lBorder, lWidth, nBorderWidth )

	- ReportSetURLLink( nRow, nCol, cText, cLink, cFontName, nFontSize, nRColor, nGColor, nBColor, cAlign, lColor, lFont, lSize  )

	- ReportSetLineSpacing( nSpacing )

	- ReportSetInfo( cAttrib, xValue, cTime )

	- ReportGetInfo( cAttrib )

	- ReportSetPageLabel( nPage, cStyle, cCase, cPrefix )
   
ENDREPORT MANAGEMENT
........................................................................

