Home | Products | Download | Purchase | Support 


   

ProtoLogic Sample

 

The ProtoLogic sample demonstrates how to create a proto logic application, it can be used to create very complex diagram, a pan window is designed for navigate this diagram. It also demos of how to create up - right - round -corner link line. This link line can be broken at any segment.

Steps:

1. Create a new CMyToolBoxBar that use CFOPControlBar as base class.

2. Initial the canvas:


void CProtoLogicView::InitLinkShape()
{
	m_drawshape = FO_COMP_UPRIGHTLINK;
	m_bUpRightMode = FALSE;
	SetCurrentDrawingCursor(IDC_FO_DRAWLINK_CURSOR);
}

void CProtoLogicView::OnInitialUpdate()
{
	SetCurrentModel(GetDocument()->m_pDataModel);
	CFODrawView::OnInitialUpdate();

	GetCurrentModel()->ShowGrid(FALSE);

}



[ 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