Graph
|
![]() ![]() ![]() |
Define and Properties |
CREATE GRAPH cName | (cVarName) | &(cExpression) | ||||||
[ PARENT cParentName ] | ![]() | Parent window for this widget | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ ROW nRow ] | ![]() | Row position on container desktop in pixels coordinates | ||||
[ COL nCol ] | ![]() | Col position on container desktop in pixels coordinates | ||||
[ WIDTH nWidth ] | ![]() | The desired width size of the window in pixels | ||||
[ HEIGHT nHeight ] | ![]() | The desired height size of the window in pixels | ||||
[ ROWBOTTOM nRow ] | ![]() | Bottom Row position on container desktop in pixels coordinates. This property adjust the HEIGHT property according the ROW property. | ||||
[ COLRIGHT nCol ] | ![]() | Right Col position on container desktop in pixels coordinates. This property adjust the WIDTH property according the COL property. | ||||
[ TOROW nBottom ] | ![]() | Bottom ROW. Usually used with ROW, COL and TOCOL | ||||
[ TOCOL nRight ] | ![]() | Right COL. Usually used with ROW, COL and TOROW | ||||
[ COORD { nLeft , nTop , nRight , nBottom } ] | ![]() | Coordenates to painter area | ||||
[ FROMXY { nLeft , nTop } ] | ![]() | Coordenates to painter area (Usually used with TOXY property) | ||||
[ TOXY { nRight , nBottom } ] | ![]() | Coordenates to painter area (Usually used with FROMXY property) | ||||
[ TITLE cTitle ] | ![]() | Set graph title | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the DRAW area. Go to to learn more about it. | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide DRAW area (like methods SHOW and HIDE) | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ COLORS {aColors} | aVarColors ] | ![]() | Color array for series. e.g. { {255,0,0} , {0,255,0} , {0,0,255} } | ||||
[ SERIENAMES {aSerieNames} | aVarSerieNames ] | ![]() | Name for series. e.g. { "serie 1" , "serie 2" , "serie 3" } | ||||
[ SERIEVALUES {aSerieValues} | aVarSerieValues ] | ![]() | Values for series. e.g. for "BARS": { {14280,20420,12870} , {8350,10315,15870} , {12345,-8945,10560} } e.g. for "PIE": {1500,1800,200,500,800} | ||||
[ TYPE cType ] | ![]() | Graph type. Valid types are: "BARS", "LINES", "POINTS" and "PIE" | ||||
[ XVALUES {aXValues} | aVarXValues ] | ![]() | Labels for 'X' values. e.g. { "Jan" , "Feb" , "Mar" , "Apr" , "May" } | ||||
[ YVALUES nYCantLabels ] | ![]() | Cant of 'Y' labels | ||||
[ SHOWXVALUES .T. | .F. ] | ![]() | Show/Hide 'X' values | ||||
[ SHOWYVALUES .T. | .F. ] | ![]() | Show/Hide 'Y' values | ||||
[ SHOWGRID .T. | .F. ] | ![]() | Show/Shide graph grid | ||||
[ SHOWLEGENDS .T. | .F. ] | ![]() | Show/Hide graph legends | ||||
[ 3DVIEW .T. | .F. ] | ![]() | Show GRAPH in 3D | ||||
[ DEPTH nDepth ] | ![]() | Depth for 3D graph | ||||
[ NOBORDER .T. | .F. ] | ![]() | Hide/Show graph border | ||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END GRAPH |
Jump to Context Menu topic |
Methods |
RELEASE | ![]() | Release DRAW area | ||||
HIDE | ![]() | Hide DRAW area. | ||||
SHOW | ![]() | Show DRAW area. | ||||
REFRESH | ![]() | This method is used to refresh the control content. | ||||
SAVETOFILE cFileName | ![]() | This method is used to save GRAPH control to file. The image file type will be chosen from fileName's suffix. Default image type is 'png' and allowed types are: 'bmp', 'jpeg', 'jpg' and 'png'. Warning: by default, the GRAPH control has a transparent BACKCOLOR, some image programs will show 'transparent backcolor' as black. | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the DRAW area to default (Qt_ArrowCursor). Go to to learn more about it. |
Marinas-GUI Version 03.06 and Marinas-IDE Version 05.06 and LEX Files Version 02.06 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- last update: April 27 2017 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ![]() A Harbour/QT framework to make multiplatform programs (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes) CarozoDeQuilmes@gmail.com 2009-2017 Beta tester and full English translator: Bruno Luciani Bruno.Luciani@gmail.com 2014-2015 Final English corrector: David Worboys DavidWorboys@hotmail.com --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- www.marinas-gui.org |
|
![]() ![]() ![]() |