ComponentOne Query 8.0
ShowCustomEditor Event

Syntax

C1QueryFrame_ShowCustomEditor (Field As Field, Value, ValueText As String, ControlObj As Object, ControlHWND As Long)

Arguments

Field is the Field object describing the field whose constant value is about to be edited.

Value is the value of the constant, stored in the query item, as it is before editing.

ValueText is the textual representation of the constant, displayed in the query item, as it is before editing.

ControlObjis empty on entering the event procedure. You must set it to the control object that you want to use as your custom editor. Custom editor must always be a single control residing on the same form with your C1QueryFramecontrol. It must be a window control (have the hWnd property). If you want to use multiple controls (for example, an edit box and a spin button), put them inside a container control (for example, a PictureBox) and use the container as your custom editor.

ControlHWNDis 0 on entering the event procedure. You must set it to the window handle of the control that you want to use as your custom editor. Usually, you can write ControlHWND = ControlObj.hWnd.

Description

The ShowCustomEditor event occurs immediately after the BeforeEdit event, if you set the CustomEditing argument to True in BeforeEdit.

In response to this event you must initialize your custom editor control with the value you want to display to the user, using Value and ValueText arguments, and show the custom editor control setting its Visible property to True.

You do not need to position the custom editor control. C1QueryFrame will automatically position it for in-place editing.

See Also

Custom Editing

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback