11. Adding, Changing or setting User
Property Value.
With UCanCode ActiveX
Control, we known the User data of any shapes will be very very important
for you, so we takes this feature from the great E-XD++ Component, we make
it is very easy to add any user data to any shape, just call the following
few methods:
BOOL AddBoolUserProperty(long shape, long nPropID, BOOL bValue);
BOOL AddStringUserProperty(long shape, long nPropID, LPCTSTR strValue);
BOOL AddIntUserProperty(long shape, long nPropID, long nValue);
BOOL AddFloatUserProperty(long shape, long nPropID, float fValue);
BOOL AddDoubleUserProperty(long shape, long nPropID, double dValue);
BOOL AddDateUserProperty(long shape, long nPropID, DATE dtTime);
BOOL AddColorUserProperty(long shape, long nPropID, long crColor);
BOOL AddDWordUserProperty(long shape, long nPropID, long dwData);
Then
all the user data can be done the same with the default properties, such
as change property value or obtain the property values. As below:
1.
Supports Undo / Redo for changing:
void ChangeSingleShapeBoolProp(long shape, BOOL bValue, long nPropID);
void ChangeSingleShapeStringProp(long shape, LPCTSTR strValue, long nPropID);
void ChangeSingleShapeIntProp(long shape, long nValue, long nPropID);
void ChangeSingleShapeUINTProp(long shape, long nValue, long nPropID);
void ChangeSingleShapeFloatProp(long shape, float fValue, long nPropID);
void ChangeSingleShapeDoubleProp(long shape, double dValue, long nPropID);
void ChangeSingleShapeDateTimeProp(long shape, DATE dtValue, long nPropID);
void ChangeSingleShapeColorProp(long shape, long crValue, long nPropID);
void ChangeSingleShapeDWordProp(long shape, long dwValue, long nPropID);
2.
No undo / Redo supports, by calling:
void ChangeShapeBoolWithoutUndo(long shape, long nPropID, BOOL bValue);
void ChangeShapeStringWithoutUndo(long shape, long nPropID, LPCTSTR strValue);
void ChangeShapeIntWithoutUndo(long shape, long nPropID, long nValue);
void ChangeShapeFloatWithoutUndo(long shape, long nPropID, float fValue);
void ChangeShapeDoubleWithoutUndo(long shape, long nPropID, double dValue);
void ChangeShapeDWordWithoutUndo(long shape, long nPropID, long dwValue);
void ChangeShapeColorWithoutUndo(long shape, long nPropID, long crColor);
void ChangeShapeDateWithoutUndo(long shape, long nPropID, DATE dtValue);
3.
Obtain the property value, by calling:
BOOL GetShapeBoolProp(long shape, long nPropID);
CString GetShapeStringProp(long shape, long nPropID);
long GetShapeIntProp(long shape, long nPropID);
short GetShapeUINTProp(long shape, long nPropID);
float GetShapeFloatProp(long shape, long nPropID);
double GetShapeDoubleProp(long shape, long nPropID);
DATE GetShapeDateTimeProp(long shape, long nPropID);
long GetShapeColorProp(long shape, long nPropID);
long GetShapeDwordProp(long shape, long nPropID);
That's
all, very easily.
1.
Over 130 Default shapes that can be used for building your own
application.
2.
With shape designer you can create any kind of composite shapes that
supports drag and drop.
3.
UCanCode ActiveX ships a Visio 2007 like toolbox window.
4.
UCanCode ActiveX has the world leading drawing, editing , layout features.
5.
UCanCode ActiveX supports full control of printing for any drawing.
6.
Export any drawing to emf, bitmap or wmf files.
7.
Add as many connect points to any nodes.
8.
Create links between two connect points (Port).
9.
Navigate the links or nodes that linked.
10.
Multiple records Label print component or Report print.
11.
Adding, Changing or setting User Property Value.
12.
Running time and Design Mode.
13.
Why you need UCanCode ActiveX Component?
14.
Download
UCanCode ActiveX Control before you buy?
|