Author Archives: José Lalín

Case match

This time Ignacio brings to us a great addition to the IDE which will be ready for the next release: the case matching.

The animated GIF shows this feature: when typing nKey (declared as a formal method parameter) and nIndex (declared as a local variable) in lower case, the IDE itselfs updates the case of the variables, parameters and class members to make them match with its definition.

CaseMatch

Treeivew with custom colors

Several times we have been asked in the forums if there was any way to customize the individual items off a Treeview control.

treeviewcolor.png

The only difference of this component with the native Xailer Treeview is that it doesn’t have visual editor for aItems property and must be filled at design time with the context menu or at runtime with one of the following methods:

METHOD AddItem( cItem, xImage, xSelImage, lBold, lChecked, lParam, nClrText, nClrPane ) // --> oItem
METHOD InsertItem( cItem, xImage, xSelImage, lBold, lChecked, lParam, nClrText, nClrPane, nPos ) // --> oItem

As you can see, these methods add two new parameters to set the text and background color of each item and are fully compatible with standard Treeview, allowing the use of images, checkboxes, etc..

The attached ZIP treeviewcolor.zip includes the DLL for the IDE and the library to link to applications.

Update libraries

After a few weeks of using Xailer 2.0 in production and seeing that a large percentage of users already have updated and we have many others taking advantage of this new version (welcome to all), I have decided to update some libraries that were available only for version 1.9 and earlier.

The following links contains the updated ZIPs and a link to each component that includes a description of the properties, methods and a small example of each one.

    GDP, convert between different image formats. Post

    Note: This post is in Spanish, will try to publish an English version ASAP.

Regards,
José Lalín

Native Vista controls on Xailer

Vista has a new kind of control named CommandLink which behaves like a standar button, but enhances the user experience.

Look at the screenshot:

CommandLink

The control shows an image, a main text and a brief description of the action.

To understand how ity works we can see the source code to create the second button on the image above:

WITH OBJECT TCommandLink():New( oForm )
   :cText := "CommandLink"
   :cNote := "This is the new TCommandLink control"
   :lShield := .T.
   :Create()
END

The file vistacommandlink.zip
has all the control source code. Just compile it and add the OBJ to any project where you want to use it.

Regards.