ComponentOne Query 8.0
BeforeMenu Event

Syntax

C1QueryFrame_BeforeMenu (MenuType As MenuTypeEnum, ShowCustomMenu As Boolean, X As Double, Y As Double)

Arguments

MenuType specifies the menu that has been used for user selection. It is one of the following values:

Constant Value

Name

0

c1qMenuMain

1

c1qMenuConnective

2

c1qMenuComparison

3

c1qMenuFields

4

c1qMenuSort

5

c1qMenuFunction

6

c1qMenuKind

ShowCustomMenu is a Boolean value that is set to False when the event is triggered. You can set it to True in you event procedure to override the default menu. If you set ShowCustomMenu to True, your event procedure can open its own menu or a dialog box. In this case you perform all necessary changes to the query item in code, when your menu or dialog box is closed, see Accessing and Modifying Query Items.

X, Y are the screen coordinates where the menu is about to be shown. If you set ShowCustomMenu to True, you can use these coordinates to show your own menu or dialog box.

Description

The BeforeMenu event occurs after a menu item has been chosen from a menu. This event can be used to perform actions on query change.

See Also

Events on changing a query item

 

 


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

Product Support Forum  |  Documentation Feedback