In Xbase++ 32-bit you can use any of the following versions:
/COM indicates the 32-bit edition of the ActiveX version
The application built using /COM version runs on any Windows 32 or 64-bit machine.
In Xbase++ 64-bit you can use any of the following versions:
/COM/64 indicates the 64-bit edition of the ActiveX version
The application built using /COM/64 version runs on Windows 64-bit machine only. The application built using /COM/64 version cannot run on Windows 32-bit machine.
If you want to use your application on 32 and 64-bit machines, you can go for:
/COM/ANY indicates the 32 and 64-bit editions of the ActiveX versions
The Xbase++ provides methods like setProperty / getProperty to
set or get a value for a specified COM property. :setProperty() is used to set a value of a property exposed by a COM/ActiveX component.
Calling :setProperty() is required when accessing a property of a COM/ActiveX component that has the same name as an instance variable of the AutomationObject. Using :setProperty() is also required to when more than one value must be passed to the property of the connected COM/ActiveX component (multiple parameters).
The Xbase++'s GraMakeRGBColor method calculates a RGB color value from color intensities of red, green and blue,
that's not compatible with /COM objects, using the OLE automation. You need
to use the AutomationTranslateColor function to convert the Xbase++'s color
to an OLE color like in the following sample:
The control's BackColor/ForeColor properties ( OLE_COLOR properties )
requires calling the SetProperty method, if using AutomationTranslateColor
method as in the following samples:
In conclusion, properties of Color type that belongs to the main object
can be set using the GraMakeRGBColor({aRGB}) without AutomationTranslateColor
method, and the AutomationTranslateColor(GraMakeRGBColor({aRGB})) for any
other property of Color type that belongs to inside objects like in the
following samples:
The Xbase++ provides the XbpFont class that can be used by control's Font
properties like: ItemFont, CellFont,, ... and so on like in the following
samples:
Also the controls support built-in HTML format which implements the <font>
HTML tag that can be used to change the font for a part of the caption like
in the following sample:
Usually, this exception is fired once a native method of Xbase++ is called
as a member of a COM object. For instance, the Copy method of the Bar
object, copies the bar to a new bar, while the Copy method of the Xbase++
copies the selection to a clipboard. You need to use the callMethod method
of Xbase++, to prevent the confusion, like in the following sample:
The exception is fired if the passed object to the PrintExt / PrintExts
property of the Exontrol.Print component can be used to provide Print and
Print Preview.
The XBase++ requires to specify the value for License field using the
control's runtime license key. The runtime license string is provided by us free of charge, at your request, while your maintenance or subscription is active ( NOT expired ). Your development license key is NOT the control's runtime license key.
Here's a short sample where runtime-license key should go:
where is "xxxxxxxxxx" is the control's runtime license
key. Once again, the runtime license string is provided by us free of charge, at your request, while your maintenance or subscription is active ( NOT expired ). Your development license key is NOT the control's runtime license key.