---+ Chart Director API for APPX _This API can be used by an APPX designer to create business charts within an APPX application._ <br />%TOC% ---++ Overview Release 5.1.0 of the APPX Utility includes a new designer API which can be used to create charts within an APPX application. This API provides APPX Designers with a robust set of subroutines which can be used to dynamically create charts and embed them in menus, input screens, and PDF reports. ---++ Chart Initialization ---+++ Chart Specifications ---++++ Chart Routines - General ---+++++ [[CDChartInitialize][.CHART INITIALIZE]] Initialize a chart. ---+++++ [[CDChartSetCurrent][.CHART SET CURRENT]] Set the "current" chart to be a previously initialized chart. ---+++++ [[CDChartGetName][.CHART GET NAME]] Get the name of the "current" chart. ---+++++ [[CDChartRender][.CHART RENDER]] Render the "current" chart. ---+++++ [[CDChartSetTitle][.CHART SET TITLE]] Set the title of the "current" chart. ---+++++ [[CDChartSetSize][.CHART SET SIZE]] Set the size (height and width) of the "current" chart. ---+++++ [[CDChartSetSizeH][.CHART SET SIZE:H]] Set the height of the "current" chart. ---+++++ [[CDChartSetSizeW][.CHART SET SIZE:W]] Set the width of the "current" chart. ---+++++ [[CDChartSetBGColor][.CHART SET BG COLOR]] Set the background color of the chart to the "current" color. ---+++++ [[CDChartSetEdgeColor][.CHART SET EDGE COLOR]] Set the edge color of the chart. ---+++++ [[CDChartSetEdgeEffect][.CHART SET EDGE EFFECT]] Set the edge effect of the chart. ---+++++ [[CDChartSetEdgeWidth][.CHART SET EDGE WIDTH]] Set the edge width of the chart. ---++++ Pie Chart Routines - General ---+++++ [[CDPieSetView][.PIE SET VIEW]] Set the view of the pie to be 2D or 3D. ---+++++ [[CDPieSetShape][.PIE SET SHAPE]] Set the shape of the pie to be Standard or Donut. ---+++++ [[CDPieSetOrigin][.PIE SET ORIGIN]] Set the x and y coordinates (horizonal and vertical) of the center of the pie. ---+++++ [[CDPieSetOriginX][.PIE SET ORIGIN:X]] Set the x coordinate (horizontal) of the center of the pie. ---+++++ [[CDPieSetOriginY][.PIE SET ORIGIN:Y]] Set the y coordinate (vertical) of the center of the pie. ---+++++ [[CDPieSetRadius][.PIE SET RADIUS]] Set the radius of the pie. ---+++++ [[CDPieSetRadiusOuter][.PIE SET RADIUS:OUTER]] Set the outer radius of a Donut pie. ---+++++ [[CDPieSetRadiusInner][.PIE SET RADIUS:INNER]] Set the inner radius of a Donut pie. ---+++++ [[CDPieSet3DMode][.PIE SET 3D MODE]] Set the 3D mode to be Standard or Shadow. ---+++++ [[CDPieSet3DDepth][.PIE SET 3D DEPTH]] Set the 3D depth of the pie. ---+++++ [[CDPieSet3DViewAngle][.PIE SET 3D VIEW ANGLE]] Set the 3D viewing angle of the pie. ---++++ Pie Chart Sector Routines - All Sectors ---+++++ [[CDPieSetExplode][.PIE SET EXPLODE]] Set all pie sectors to be exploded. ---+++++ [[CDPieSetExplodeMode][.PIE SET EXPLODE:MODE]] Set the Explode Mode of the pie to be None, All, or Range. ---+++++ [[CDPieSetExplodeDistance][.PIE SET EXPLODE:DIST]] Set the Explosion Depth. ---+++++ [[CDPieSetExplodeRange][.PIE SET EXPLODE:RANGE]] Set the beginning and ending sector numbers of the range of sectors to explode. ---+++++ [[CDPieSetExplodeBeg][.PIE SET EXPLODE:BEG]] Set the beginning sector number of the range of sectors to explode. ---+++++ [[CDPieSetExplodeEnd][.PIE SET EXPLODE:END]] Set the ending sector number of the range of sectors to explode. ---+++++ [[CDPieSetSectorLayout][.PIE SET LAYOUT]] Set the starting angle of the first sector in the pie and the layout direction for the pie sectors. ---+++++ [[CDPieSetSectorStartAngle][.PIE SET LAYOUT:ANGLE]] Set the starting angle of the first sector in the pie. ---+++++ [[CDPieSetSectorLayoutDir][.PIE SET LAYOUT:DIR]] Set the layout direction for the pie sectors. ---+++++ [[CDPieSetSectorStyle][.PIE SET STYLE]] Set the Shading Method, the Edge Color, and the Edge Width for the pie sectors. ---+++++ [[CDPieSetSectorStyleShading][.PIE SET STYLE:SHADING]] Set the Shading Method for the pie sectors. ---+++++ [[CDPieSetSectorStyleEdgeColor][.PIE SET STYLE:EDG CLR]] Set the Edge Color for the pie sectors ---+++++ [[CDPieSetSectorStyleEdgeWidth][.PIE SET STYLE:EDG W]] Set the Edge Width for the pie sectors [[CDPieSetLabelFormat][.PIE SET LABEL FORMAT]] Set the Format for the pie sector labels. [[CDPieSetLabelFontName][.PIE SET LB FONT NAME]] [[CDPieSetLabelFontStyle][.PIE SET LB FONT STYLE]] [[CDPieSetLabelFontIndex][.PIE SET LB FONT INDEX]] [[CDPieSetLabelFontColor][.PIE SET LB FONT COLOR]] [[CDPieSetLabelFontSize][.PIE SET LB FONT SZ]] [[CDPieSetLabelFontSizeHeight][.PIE SET LB FONT SZ:H]] [[CDPieSetLabelFontSizeWidth][.PIE SET LB FONT SZ:W]] ---++++ Pie Chart Sector Routines - Individual Sectors ---+++ Data Routines ---++++ Dataset Routines ---+++++ [[CDDatasetInitialize][.DATASET INITIALIZE]] Initialize a Dataset. ---+++++ [[CDDatasetSetCurrent][.DATASET SET CURRENT]] Set the "current" Dataset to be a previously initialized Dataset. ---+++++ [[CDDatasetGetName][.DATASET GET NAME]] Get the name of the "current" Dataset. ---++++ Dataset Point Routines ---+++++ [[CDPointAddNew][.POINT ADD NEW]] Add a new Point to the "current" Dataset. ---+++++ [[CDPointSetValue][.POINT SET VALUE]] Set the value of the "current" Point in the "current" Dataset. ---+++++ [[CDPointSetLabel][.POINT SET LABEL]] Set the Label of the "current" Point in the "current" Dataset. ---+++ Text Box Routines ---++++ General Text Box Routines ---+++++ [[CDTestInitialize][.TEXT INITIALIZE]] Initialize a Text Object ---+++++ [[CDTextSetCurrent][.TEXT SET CURRENT]] Set the "current" Text Object to be a previously initialized Text Object. ---+++++ [[CDTextGetName][.TEXT GET NAME]] Get the name of the "current" Text Object. ---++++ Font Routines ---+++++ [[CDTextSetFontName][.TEXT SET FONT NAME]] Set the font name and font index for the "current" Text Object. ---+++++ [[CDTextSetFontIndex][.TEXT SET FONT INDEX]] Set the font index. ---+++++ [[CDTextSetFontStyle][.TEXT SET FONT STYLE]] Set the font style (normal, bold, italic) for the "current" Text Object. ---+++++ [[CDTextSetFontSize][.TEXT SET FONT SZ]] Set the font size for the "current" Text Object. ---+++++ [[CDTextSetFontSizeH][.TEXT SET FONT SZ:H]] Set the height of the font for the "current" Text Object. ---+++++ [[CDTextSetFontSizeW][.TEXT SET FONT SZ:W]] Set the width of the font for the "current" Text Object. ---+++++ [[CDTextSetFontColor][.TEXT SET FONT CLR]] Set the font color for the "current" Text Object. ---++++ Text Box Routines ---+++++ [[CDTextSetBoxBGColor][.TEXT SET BX BG CLR]] Set the background color for the "current" Text Object. ---+++++ [[CDTextSetBoxEdgeColor][.TEXT SET BX EDGE CLR]] Set the edge color for the "current" Text Object. ---+++++ [[CDTextSetBoxEdgeEffect][.TEXT SET BX EDGE EFF]] Set the edge effect (Flat, Raised, or Depressed) of the "current" Text Object. ---+++++ [[CDTextSetBoxEdgeWidth][.TEXT SET BX EDGE W]] Set the edge width of the "current" Text Object. ---+++++ [[CDTextSetBoxCornerType][.TEXT SET BX CNR STYLE]] Set the corner style (Square or Rounded) of the "current" Text Object. ---+++++ [[CDTextSetBoxCornerRadius][.TEXT SET BX CNR R]] Set the corner radius' of the "current" Text Object. ---+++++ [[CDTextSetBoxCornerRadiusTL][.TEXT SET BX CNR R:TL]] Set the radius of the Top Left corner of the "current" Text Object]] ---+++++ [[CDTextSetBoxCornerRadiusTR][.TEXT SET BX CNR R:TR]] Set the radius of the Top Right corner of the "current" Text Object]] ---+++++ [[CDTextSetBoxCornerRadiusBR][.TEXT SET BX CNR R:BR]] Set the radius of the Bottom Right corner of the "current" Text Object]] ---+++++ [[CDTextSetBoxCornerRadiusBL][.TEXT SET BX CNR R:BL]] Set the radius of the Bottom Left corner of the "current" Text Object]] ---+++++ [[CDTextSetBoxLocation][.TEXT SET BX LOC]] Set the location (x and y) of the "current" Text Object. ---+++++ [[CDTextSetBoxLocationX][.TEXT SET BX LOC:X]] Set the x coordinate of the location of the "current" Text Object. ---+++++ [[CDTextSetBoxLocationY][.TEXT SET BX LOC:Y]] Set the y coordinate of the location of the "current" Text Object. ---+++++ [[CDTextSetBoxSize][.TEXT SET BX SZ]] Set the size (height and width) of the "current" Text Object. ---+++++ [[CDTextSetBoxSizeHeight][.TEXT SET BX SZ:H]] Set the height of the "current" Text Object. ---+++++ [[CDTextSetBoxSizeWidth][.TEXT SET BX SZ:W]] Set the width of the "current" Text Object. ---+++++ [[CDTextSetBoxZOrder][.TEXT SET BX Z ORDER]] Set the Z Order of the "current" Text Object. ---++++ Text Format Routines ---+++++ [[CDTextSetTextMaxSize][.TEXT SET TXT MAX SZ]] Set the maximum size (width and height) of the text that can be displayed in the "current" Text Object. ---+++++ [[CDTextSetTextMaxSizeWidth][.TEXT SET TXT MAX SZ:W]] Set the maximum width (in pixels) of the text that can be displayed in the "current" Text Object. ---+++++ [[CDTextSetTextMaxSizeHeight][.TEXT SET TXT MAX SZ:H]] Set the maximum height (in lines) of the text that can be displayed in the "current" Text Object. ---+++++ [[CDTextSetTextMargin][.TEXT SET TXT MARGIN]] Set the margins for the text in the "current" Text Object. ---+++++ [[CDTextSetTextMarginLeft][.TEXT SET TXT MARGIN:L]] Set the Left margin for the text in the "current" Text Object. ---+++++ [[CDTextSetTextMarginRight][.TEXT SET TXT MARGIN:R]] Set the Right margin for the text in the "current" Text Object. ---+++++ [[CDTextSetTextMarginTop][.TEXT SET TXT MARGIN:T]] Set the Top margin for the text in the "current" Text Object. ---+++++ [[CDTextSetTextMarginBottom][.TEXT SET TXT MARGIN:B]] Set the Bottom margin for the text in the "current" Text Object. ---+++++ [[CDTextSetTextRotation][.TEXT SET TXT ROTATION]] Set the rotation angle for the text in the "current" Text Object. ---+++++ [[CDTextSetTextAlignment][.TEXT SET TXT ALIGN]] Set the alignment of the text in the "current" Text Object. ---+++++ [[CDTextSetTextLayout][.TEXT SET TXT LAYOUT]] Set the layout direction of the text(horizontal or Vertical) in the "current" Text Object. ---+++ Color Routines ---++++ [[CDColorInitialize][.COLOR INITIALIZE]] Initialize a Color Object. ---++++ [[CDColorSetCurrent][.COLOR SET CURRENT]] Set the "current" Color Object to be a previously initialized Color Object. ---++++ [[CDColorGetName][.COLOR GET NAME]] Get the name of the "current" Color Object. ---++++ [[CDColorSetDefault][.COLOR SET DEFAULT]] Clear the "current" Color Object. ---++++ [[CDColorSetColor][.COLOR SET COLOR]] Set the color of the "current" Color Object. ---++++ [[CDColorSetColor:RGB][.COLOR SET COLOR:RGB]] Set the individual colors of the "current" Color Object. ---++++ [[CDColorSetColor:R][.COLOR SET COLOR:R]] Set the Red value of the "current" Color Object. ---++++ [[CDColorSetColor:G][.COLOR SET COLOR:G]] Set the Green value of the "current" Color Object. ---++++ [[CDColorSetColor:B][.COLOR SET COLOR:B]] Set the Blue value of the "current" Color Object. ---++++ [[CDColorSetColor:A][.COLOR SET COLOR:A]] Set the Alpha value of the "current" Color Object. ---++++ [[CDColorSetTransparent][.COLOR SET TRANSPARENT]] Set the alpha channel of the "current" Color Object to be Transparent. ---++++ [[CDColorSetOpaque][.COLOR SET OPAQUE]] Set the alpha channel of the "current" Color Object to be Opaque. -- Main.SteveFrizzell - 2010-02-14
This topic: Main
>
CDChartDirectorDesignerAPI
Topic revision: r20 - 2010-03-22 - SteveFrizzell
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback