Home | Products | Download | Purchase | Support 


   

TableTest Sample

 

The TableTest sample demonstrates how to create a microsoft word like table control on the canvas, E-XD++ Enterprise Edition provides a rich set of formatting options for tables, cells and text contained within table cells, this is a much Microsoft Word like table shape. All the features of this table shape can be customized. You can change the font, the text alignment, the fill colors of the cells, you can also lock the selected cells from text editing.
Tables can be inserted into canvas using the
integrated dialog box or directly from program code. Frames and shading can be applied to cells and the cell contents can be formatted using any of E-XD++ Enterprise Edition's formatting options.
You can also add the table shape into the canvas by using a drop picker like Microsoft Word.
Cells can be full formatted, you can join all the selected cells to one single cell or split the select cell to multiple cells.
Table cells can be accessed in a grid-like manner, enabling developers to fill in their contents from a database and perform calculations on the contents of rows and columns.  

By default the following features is shipped:

      1).      Insert one row before the select row.  
2).      Insert one row after the select row.  
3). 
    
Insert one column after the select column.  
4).  
   
Insert one column before the select column.  
5).  
   
Join the selected cells.  
6).  
   
Split the selected cells.  
7). 
    
Change the fill mode of the cells.  
8). 
    
Change the font and text alignment of the cells.  
9).  
   
Select one row with mouse.  
10). 
Select one column with mouse.  
11). 
Select cells within a tracking rectangle.  
12). 
Enter text within the cell.  
13).  Resize and move the table shape  
14). 
All the features can be full customized.  
15).
 
Create the table shape by codes.  
16). 
Create the table shape from a setting dialog.  
17).
 
Create the table shape from a drop picker like Microsoft word.  
18). 
etc.

The class of this table shape is CFOPTableShape

Steps:

1. Create drop - down table selector window:

m_wndToolBar.ChangeToDropTablePickerButton(ID_FO_DRAW_TABLE_SHAPE,ID_FO_DRAWTABLE_ARROW,
BS_OWNERDRAWN|BS_DROPARROWHORZ,FALSE);
 

2. Send table selection message:

ON_MESSAGE(WM_FO_SETPARAMS, OnTableSelectOK)

LONG CMainFrame::OnTableSelectOK(UINT wParam, LONG lParam)
{
	CView* pView = FOGetActiveView();
	if(pView != NULL)
	{
		pView->PostMessage(WM_FO_SETPARAMS,wParam,lParam);
	}
	
	return 0L;
}


[ Home | Products | Download Area | Purchase | SupportContact us ]


Copyright ?1998-2007 UCanCode.Net Software, all rights reserved.
Other product and company names herein may be the trademarks of their respective owners.

Please direct your questions or comments to webmaster@ucancode.com