A SERVICE OF

logo

BOOL SetProp(int propIndex, long value, int arrayIndex = -1);
BOOL SetProp(int propIndex, HPIC value, int arrayIndex = -1);
BOOL SetProp(int propIndex, float value, int arrayIndex = -1);
BOOL SetProp(int propIndex, const string& value, int arrayIndex = -1);
BOOL SetProp(int propIndex, const char far* value, int arrayIndex = -1);
// set properties by name
BOOL SetProp(const char far* name, int value, int arrayIndex = -1);
BOOL SetProp(const char far* name, long value, int arrayIndex = -1);
BOOL SetProp(const char far* name, HPIC value, int arrayIndex = -1);
BOOL SetProp(const char far* name, float value, int arrayIndex = -1);
BOOL SetProp(const char far* name, const string& value, int arrayIndex = -1);
BOOL SetProp(const char far* name, const char far* value, int arrayIndex = -1);
In the versions where the first parameter is an int, you specify the property
by passing in the property index. In the versions where the first parameter
is a
char *, you specify the property by passing in the property name.
The second parameter is the value to which the property should be set.
The third parameter is the index of an array property which you should,
supply if required by your control. Y u can find whether you need too
supply this parameter and the required values by consulting the
documentation for your VBX control. The function ignores this parameter if
it is –1.
Although there are five different data types you can pass in to GetP op,r
SetP op provides for six different data types. This is because the last twor
versions use both a
char * and the ANSI string class to represent a string.
This provides you with more flexibility when you’re passing a character
string into a control. In the GetP op version, casting is provided to allow ar
char * to function effectively as a string object.
Methods are functions contained in each VBX control that you can use to
VBX control
call into the control and cause an action to take place. TVbxControl provides
methods
compatibility with the methods contained in Visual Basic 1.0-compatible
controls:
Move(int x, int y int w int h), ,
Refresh()
AddItem(int index, const char far *item)
RemoveItem(int index)
The Move function moves the control to the coordinates x, y and resizes the
control to w pixels wide by h pixels high.
The Refresh function refreshes the control’ display area.s
342
OWL P ogrammer’ Guider s